public class UnmarshallerFactory extends Object
Unmarshallers that can be used to convert W3C DOM
elements into XMLObjects. 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.| 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.
|
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 © 2018 JBoss by Red Hat. All rights reserved.