|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.io.UnmarshallerFactory
public class UnmarshallerFactory
This thread-safe factory creates 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.
Field Summary | |
---|---|
private Logger |
log
Class logger. |
private Map<QName,Unmarshaller> |
unmarshallers
Map of unmarshallers to the elements they are for. |
Constructor Summary | |
---|---|
UnmarshallerFactory()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Logger log
private Map<QName,Unmarshaller> unmarshallers
Constructor Detail |
---|
public UnmarshallerFactory()
Method Detail |
---|
public Unmarshaller getUnmarshaller(QName key)
key
- the key the unmarshaller was registered under
public Unmarshaller getUnmarshaller(Element domElement)
domElement
- the element to retrieve the unmarshaller for
public 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 under
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |