org.geotools.xml
Class XMLHandlerHints

Object
  extended by XMLHandlerHints
All Implemented Interfaces:
Map

public class XMLHandlerHints
extends Object
implements Map

Hint object with known parameters for XML parsing.

Author:
Jesse

Nested Class Summary
 
Nested classes/interfaces inherited from interface Map
Map.Entry<K,V>
 
Field Summary
static String FILTER_COMPLIANCE_STRICTNESS
          Sets the level of compliance that the filter encoder should use
static String FLOW_HANDLER_HINT
          Declares a FlowHandler for the parser to use
static String NAMESPACE_MAPPING
          Declares the schemas to use for parsing.
static String STREAM_HINT
          Tells the parser to "Stream"
static Integer VALUE_FILTER_COMPLIANCE_HIGH
          The value so the parser will be compliant with the Filter 1.0.0 spec.
static Integer VALUE_FILTER_COMPLIANCE_LOW
          The value so that the parser will encode all Geotools filters with no modifications.
static Integer VALUE_FILTER_COMPLIANCE_MEDIUM
          The value so the parser will be slightly more compliant to the Filter 1.0.0 spec.
 
Constructor Summary
XMLHandlerHints()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set entrySet()
           
 boolean equals(Object o)
           
 Object get(Object key)
           
 int hashCode()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object arg0, Object arg1)
           
 void putAll(Map arg0)
           
 Object remove(Object key)
           
 int size()
           
 Collection values()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE_MAPPING

public static final String NAMESPACE_MAPPING
Declares the schemas to use for parsing. Value must be a java.util.Map of objects where String is the Namespace and URI is the URL to use to load the schema.

See Also:
Constant Field Values

FLOW_HANDLER_HINT

public static final String FLOW_HANDLER_HINT
Declares a FlowHandler for the parser to use

See Also:
Constant Field Values

STREAM_HINT

public static final String STREAM_HINT
Tells the parser to "Stream"

See Also:
Constant Field Values

FILTER_COMPLIANCE_STRICTNESS

public static final String FILTER_COMPLIANCE_STRICTNESS
Sets the level of compliance that the filter encoder should use

See Also:
Constant Field Values

VALUE_FILTER_COMPLIANCE_LOW

public static final Integer VALUE_FILTER_COMPLIANCE_LOW
The value so that the parser will encode all Geotools filters with no modifications.


VALUE_FILTER_COMPLIANCE_MEDIUM

public static final Integer VALUE_FILTER_COMPLIANCE_MEDIUM
The value so the parser will be slightly more compliant to the Filter 1.0.0 spec. It will encode:

  BBoxFilter
        or
  FidFilter
  
as

  <Filter><BBo>...</BBox><FidFilter fid="fid"/></Filter>
  
It will encode:

  BBoxFilter
        and
  FidFilter
  
as

  <Filter><FidFilter fid="fid"/></Filter>
  

IMPORTANT: If this compliance level is used and a non-strict FilterFactory is used to create the filter then the original filter must be ran on the retrieved feature because this hint will sometimes cause more features to be returned than is requested. Consider the following filter: not(fidFilter). this will return all features and so the filtering must be done on the client.


VALUE_FILTER_COMPLIANCE_HIGH

public static final Integer VALUE_FILTER_COMPLIANCE_HIGH
The value so the parser will be compliant with the Filter 1.0.0 spec. It will throw an exception with filters like: BBoxFilter or FidFilter It will encode:

  BBoxFilter
        and
  FidFilter
  
as

  <Filter><FidFilter fid="fid"/></Filter>
  

IMPORTANT: If this compliance level is used and a non-strict FilterFactory is used to create the filter then the original filter must be ran on the retrieved feature because this hint will sometimes cause more features to be returned than is requested. Consider the following filter:

not(fidFilter).

this will return all features and so the filtering must be done on the client.

Constructor Detail

XMLHandlerHints

public XMLHandlerHints()
Method Detail

clear

public void clear()
Specified by:
clear in interface Map

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

equals

public boolean equals(Object o)
Specified by:
equals in interface Map
Overrides:
equals in class Object

get

public Object get(Object key)
Specified by:
get in interface Map

hashCode

public int hashCode()
Specified by:
hashCode in interface Map
Overrides:
hashCode in class Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

put

public Object put(Object arg0,
                  Object arg1)
Specified by:
put in interface Map

putAll

public void putAll(Map arg0)
Specified by:
putAll in interface Map

remove

public Object remove(Object key)
Specified by:
remove in interface Map

size

public int size()
Specified by:
size in interface Map

values

public Collection values()
Specified by:
values in interface Map


Copyright © 1996-2014 Geotools. All Rights Reserved.