Superclass for Filter version 1 parsers.
OpenLayers. Format. Filter.v1 | Superclass for Filter version 1 parsers. |
Properties | |
namespaces | {Object} Mapping of namespace aliases to namespace URIs. |
defaultPrefix | |
schemaLocation | {String} Schema location for a particular minor version. |
Constructor | |
OpenLayers. Format. Filter.v1 | Instances of this class are not created directly. |
Functions and Properties | |
read | |
readers | Contains public functions, grouped by namespace prefix, that will be applied when a namespaced node is found matching the function name. |
readOgcExpression | Limited support for OGC expressions. |
write | |
writers | As a compliment to the readers property, this structure contains public writing functions grouped by namespace alias and named like the node names they produce. |
getFilterType | |
filterMap | {Object} Contains a member for each filter type. |
getNamespacePrefix | Get the namespace prefix for a given uri from the namespaces object. |
readChildNodes | |
writeNode | Shorthand for applying one of the named writers and appending the results to a node. |
createElementNSPlus | Shorthand for creating namespaced elements with optional attributes and child text nodes. |
setAttributes | Set multiple attributes given key value pairs from an object. |
Instances of this class are not created directly. Use the OpenLayers.Format.Filter constructor instead.
options | {Object} An optional object whose properties will be set on this instance. |
read: function( data )
data | {DOMElement} A Filter document element. |
{OpenLayers.Filter} A filter object.
write: function( filter )
filter | {OpenLayers.Filter} A filter object. |
{DOMElement} An ogc:Filter element.
getNamespacePrefix: function( uri )
Get the namespace prefix for a given uri from the namespaces object.
{String} A namespace prefix or null if none found.
writeNode: function( parent, name, obj )
Shorthand for applying one of the named writers and appending the results to a node. If a qualified name is not provided for the second argument (and a local name is used instead), the namespace of the parent node will be assumed.
parent | {DOMElement} Result will be appended to this node. |
name | {String} The name of a node to generate. If a qualified name (e.g. “pre:Name”) is used, the namespace prefix is assumed to be in the writers group. If a local name is used (e.g. “Name”) then the namespace of the parent is assumed. |
obj | {Object} Structure containing data for the writer. |
{DOMElement} The child node.
setAttributes: function( node, obj )
Set multiple attributes given key value pairs from an object.
node | {Element} An element node. |
obj | {Object || Array} An object whose properties represent attribute names and values represent attribute values. If an attribute name is a qualified name (“prefix:local”), the prefix will be looked up in the parsers {namespaces} object. If the prefix is found, setAttributeNS will be used instead of setAttribute. |
read: function( data )
Limited support for OGC expressions.
readOgcExpression: function( node )
write: function( filter )
getFilterType: function( filter )
Get the namespace prefix for a given uri from the namespaces object.
getNamespacePrefix: function( uri )
readChildNodes: function( node, obj )
Shorthand for applying one of the named writers and appending the results to a node.
writeNode: function( parent, name, obj )
Shorthand for creating namespaced elements with optional attributes and child text nodes.
createElementNSPlus: function( name, options )
Set multiple attributes given key value pairs from an object.
setAttributes: function( node, obj )