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.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.
|
@Nullable public Unmarshaller getUnmarshaller(@Nullable QName key)
key
- the key the unmarshaller was registered under@Nullable public Unmarshaller getUnmarshaller(@Nullable Element domElement)
domElement
- the element to retrieve the unmarshaller for@Nonnull public Map<QName,Unmarshaller> getUnmarshallers()
public void registerUnmarshaller(@Nonnull QName key, @Nonnull Unmarshaller unmarshaller)
key
- the key the unmarshaller was registered underunmarshaller
- the Unmarshaller@Nullable public Unmarshaller deregisterUnmarshaller(@Nonnull QName key)
key
- the key the unmarshaller was registered underCopyright © 2016 JBoss by Red Hat. All rights reserved.