Class StaxDataStore.Config
java.lang.Object
org.apache.sis.internal.util.AbstractMap<String,Object>
org.apache.sis.internal.storage.xml.stream.StaxDataStore.Config
- All Implemented Interfaces:
Filter
,Map<String,
,Object> XMLReporter
- Enclosing class:
StaxDataStore
private final class StaxDataStore.Config
extends AbstractMap<String,Object>
implements XMLReporter, Filter
Holds information that can be used for (un)marshallers configuration, and opportunistically
implement various listeners used by JAXB (actually the SIS wrappers) or StAX.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.util.AbstractMap
AbstractMap.EntryIterator<K,
V>, AbstractMap.IteratorAdapter<K, V>, AbstractMap.KeyIterator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractMap.EntryIterator
<String, Object> Returns an iterator over all entries in this map.Returns configuration associated to the given key, ornull
if none.boolean
isLoggable
(LogRecord warning) Reports a warning represented by the given log record.void
Forwards StAX warnings toDataStore
listeners.toString()
Do not format all properties for avoiding a never-ending loop.Methods inherited from class org.apache.sis.internal.util.AbstractMap
addKey, addValue, clear, containsKey, containsValue, entrySet, equals, getOrDefault, hashCode, isEmpty, keySet, put, putAll, remove, size, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
Config
Config()Fetches configuration information from the given object.
-
-
Method Details
-
get
Returns configuration associated to the given key, ornull
if none.- Specified by:
get
in interfaceMap<String,
Object> - Parameters:
key
- one ofXML.LOCALE
,XML.TIMEZONE
orXML.WARNING_FILTER
.- Returns:
- the configuration for the given key, or
null
if none or if the given key is invalid.
-
entryIterator
Returns an iterator over all entries in this map.- Specified by:
entryIterator
in classAbstractMap<String,
Object> - Returns:
- an iterator over the entries in this map, or
null
.
-
report
Forwards StAX warnings toDataStore
listeners. This method is invoked byXMLStreamReader
when needed.- Specified by:
report
in interfaceXMLReporter
- Parameters:
message
- the message to put in a logging record.errorType
- ignored.info
- ignored.location
- ignored.
-
isLoggable
Reports a warning represented by the given log record.- Specified by:
isLoggable
in interfaceFilter
- Parameters:
warning
- the warning as a log record.
-
toString
Do not format all properties for avoiding a never-ending loop.- Overrides:
toString
in classAbstractMap<String,
Object> - Returns:
- a string representation of this map.
-