public class UnmarshallerFactory extends Object
Unmarshaller
s that can be used to convert W3C DOM
elements into XMLObject
s. Unmarshallers are stored and retrieved by a
QName
key. This key is either the XML Schema Type or element QName of the XML element
being unmarshalled.Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
private Map<QName,Unmarshaller> |
unmarshallers
Map of unmarshallers to the elements they are for.
|
Constructor and Description |
---|
UnmarshallerFactory()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Unmarshaller |
deregisterUnmarshaller(QName key)
Deregisters the unmarshaller for the given element.
|
Unmarshaller |
getUnmarshaller(Element domElement)
Retrieves the unmarshaller for the given element.
|
Unmarshaller |
getUnmarshaller(QName key)
Gets the Unmarshaller for a particular element or null if no unmarshaller is registered for an element.
|
Map<QName,Unmarshaller> |
getUnmarshallers()
Gets an immutable listing of all the Unarshallers currently registered.
|
void |
registerUnmarshaller(QName key,
Unmarshaller unmarshaller)
Registers an Unmarshaller with this factory.
|
private final org.slf4j.Logger log
private Map<QName,Unmarshaller> unmarshallers
public Unmarshaller getUnmarshaller(QName key)
key
- the key the unmarshaller was registered underpublic Unmarshaller getUnmarshaller(Element domElement)
domElement
- the element to retrieve the unmarshaller forpublic Map<QName,Unmarshaller> getUnmarshallers()
public void registerUnmarshaller(QName key, Unmarshaller unmarshaller)
key
- the key the unmarshaller was registered underunmarshaller
- the Unmarshallerpublic Unmarshaller deregisterUnmarshaller(QName key)
key
- the key the unmarshaller was registered underCopyright © 1999–2017. All rights reserved.