|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.io.MarshallerFactory
public class MarshallerFactory
This thread-safe factory creates 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 Summary | |
---|---|
MarshallerFactory()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarshallerFactory()
Method Detail |
---|
public Marshaller getMarshaller(QName key)
key
- the key the marshaller was registered under
public Marshaller getMarshaller(XMLObject xmlObject)
xmlObject
- the XMLObject to retrieve the marshaller for
public 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 under
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |