Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_RESOLVER
Supplied
EntityResolver for Schema and/or DTD validation |
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 |
SAX_PARSER_FACTORY
Supplied
SaxParserFactory |
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 and Description |
---|
XMLHandlerHints() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,? extends Object> other) |
Object |
remove(Object key) |
int |
size() |
static EntityResolver |
toEntityResolver(Map<String,Object> hints)
Looks up
ENTITY_RESOLVER instance in provided hints, defaulting to setting provided
by GeoTools.getEntityResolver(org.geotools.util.factory.Hints) (usually PreventLocalEntityResolver unless otherwise configured). |
Collection<Object> |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final String NAMESPACE_MAPPING
public static final String FLOW_HANDLER_HINT
public static final String STREAM_HINT
public static final String FILTER_COMPLIANCE_STRICTNESS
public static final String ENTITY_RESOLVER
EntityResolver
for Schema and/or DTD validationpublic static final String SAX_PARSER_FACTORY
SaxParserFactory
public static final Integer VALUE_FILTER_COMPLIANCE_LOW
public static final Integer VALUE_FILTER_COMPLIANCE_MEDIUM
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.
public static final Integer VALUE_FILTER_COMPLIANCE_HIGH
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.
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public boolean equals(Object o)
public int hashCode()
public static EntityResolver toEntityResolver(Map<String,Object> hints)
ENTITY_RESOLVER
instance in provided hints, defaulting to setting provided
by GeoTools.getEntityResolver(org.geotools.util.factory.Hints)
(usually PreventLocalEntityResolver
unless otherwise configured).hints
- Hints.ENTITY_RESOLVER
.Copyright © 1996–2019 Geotools. All rights reserved.