public class MarshallerFactory extends Object
Marshaller
s that can be used to convert
XMLObject
s into W3C DOM elements. Marshallers are stored and retrieved by a
QName
key. This key is either the XML Schema Type or element QName of the XML element the
XMLObject is marshalled into.Constructor and Description |
---|
MarshallerFactory()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Marshaller |
deregisterMarshaller(QName key)
Deregisters the marshaller for the given element.
|
Marshaller |
getMarshaller(QName key)
Gets the Marshaller for a particular element or null if no marshaller is registered for an element.
|
Marshaller |
getMarshaller(XMLObject xmlObject)
Retrieves the marshaller for the given XMLObject.
|
Map<QName,Marshaller> |
getMarshallers()
Gets an immutable listing of all the Marshallers currently registered.
|
void |
registerMarshaller(QName key,
Marshaller marshaller)
Registers a Marshaller with this factory.
|
public Marshaller getMarshaller(QName key)
key
- the key the marshaller was registered underpublic Marshaller getMarshaller(XMLObject xmlObject)
xmlObject
- the XMLObject to retrieve the marshaller forpublic Map<QName,Marshaller> getMarshallers()
public void registerMarshaller(QName key, Marshaller marshaller)
key
- the key the marshaller was registered undermarshaller
- the Marshallerpublic Marshaller deregisterMarshaller(QName key)
key
- the key the marshaller was registered underCopyright © 2018 JBoss by Red Hat. All rights reserved.