|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.io.MarshallerFactory
public class MarshallerFactory
This thread-safe factory creates Marshallers that can be used to convert
XMLObjects 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(javax.xml.namespace.QName key)
Deregisters the marshaller for the given element. |
Marshaller |
getMarshaller(javax.xml.namespace.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. |
java.util.Map<javax.xml.namespace.QName,Marshaller> |
getMarshallers()
Gets an immutable listing of all the Marshallers currently registered. |
void |
registerMarshaller(javax.xml.namespace.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(javax.xml.namespace.QName key)
key - the key the marshaller was registered under
public Marshaller getMarshaller(XMLObject xmlObject)
xmlObject - the XMLObject to retrieve the marshaller for
public java.util.Map<javax.xml.namespace.QName,Marshaller> getMarshallers()
public void registerMarshaller(javax.xml.namespace.QName key,
Marshaller marshaller)
key - the key the marshaller was registered undermarshaller - the Marshallerpublic Marshaller deregisterMarshaller(javax.xml.namespace.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 | |||||||||