Class XMLHandlerHints
- Author:
 - Jesse
 
- 
Nested Class Summary
 - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSuppliedEntityResolverfor Schema and/or DTD validationstatic final StringSets the level of compliance that the filter encoder should usestatic final StringDeclares a FlowHandler for the parser to usestatic final StringDeclares the schemas to use for parsing.static final StringSuppliedSaxParserFactorystatic final StringTells the parser to "Stream"static final IntegerThe value so the parser will be compliant with the Filter 1.0.0 spec.static final IntegerThe value so that the parser will encode all Geotools filters with no modifications.static final IntegerThe value so the parser will be slightly more compliant to the Filter 1.0.0 spec. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleaninthashCode()booleanisEmpty()keySet()voidintsize()static EntityResolvertoEntityResolver(Map<String, Object> hints) Looks upENTITY_RESOLVERinstance in provided hints, defaulting to setting provided byGeoTools.getEntityResolver(org.geotools.util.factory.Hints)(usuallyPreventLocalEntityResolverunless otherwise configured).values()Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll 
- 
Field Details
- 
NAMESPACE_MAPPING
Declares the schemas to use for parsing. Value must be a java.util.Map of <String,URI> objects where String is the Namespace and URI is the URL to use to load the schema.- See Also:
 
 - 
FLOW_HANDLER_HINT
Declares a FlowHandler for the parser to use- See Also:
 
 - 
STREAM_HINT
Tells the parser to "Stream"- See Also:
 
 - 
FILTER_COMPLIANCE_STRICTNESS
Sets the level of compliance that the filter encoder should use- See Also:
 
 - 
ENTITY_RESOLVER
SuppliedEntityResolverfor Schema and/or DTD validation- See Also:
 
 - 
SAX_PARSER_FACTORY
SuppliedSaxParserFactory- See Also:
 
 - 
VALUE_FILTER_COMPLIANCE_LOW
The value so that the parser will encode all Geotools filters with no modifications. - 
VALUE_FILTER_COMPLIANCE_MEDIUM
The value so the parser will be slightly more compliant to the Filter 1.0.0 spec. It will encode:
asBBoxFilter or FidFilter
It will encode:<Filter><BBo>...</BBox><FidFilter fid="fid"/></Filter>
asBBoxFilter and FidFilter<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
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:
asBBoxFilter and FidFilter<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 Details
- 
XMLHandlerHints
public XMLHandlerHints() 
 - 
 - 
Method Details
- 
clear
public void clear() - 
containsKey
- Specified by:
 containsKeyin interfaceMap<String,Object> 
 - 
containsValue
- Specified by:
 containsValuein interfaceMap<String,Object> 
 - 
entrySet
 - 
equals
 - 
get
 - 
hashCode
public int hashCode() - 
isEmpty
public boolean isEmpty() - 
keySet
 - 
put
 - 
putAll
 - 
remove
 - 
size
public int size() - 
values
 - 
toEntityResolver
Looks upENTITY_RESOLVERinstance in provided hints, defaulting to setting provided byGeoTools.getEntityResolver(org.geotools.util.factory.Hints)(usuallyPreventLocalEntityResolverunless otherwise configured).- Returns:
 - EntityResolver provided by hints, or non-null default provided by 
Hints.ENTITY_RESOLVER. 
 
 -