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, ornullif none.booleanisLoggable(LogRecord warning) Reports a warning represented by the given log record.voidForwards StAX warnings toDataStorelisteners.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, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, ornullif none.- Specified by:
getin interfaceMap<String,Object> - Parameters:
key- one ofXML.LOCALE,XML.TIMEZONEorXML.WARNING_FILTER.- Returns:
- the configuration for the given key, or
nullif none or if the given key is invalid.
-
entryIterator
Returns an iterator over all entries in this map.- Specified by:
entryIteratorin classAbstractMap<String,Object> - Returns:
- an iterator over the entries in this map, or
null.
-
report
Forwards StAX warnings toDataStorelisteners. This method is invoked byXMLStreamReaderwhen needed.- Specified by:
reportin 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:
isLoggablein interfaceFilter- Parameters:
warning- the warning as a log record.
-
toString
Do not format all properties for avoiding a never-ending loop.- Overrides:
toStringin classAbstractMap<String,Object> - Returns:
- a string representation of this map.
-