|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IdentifierHandler<T extends Identifier>
Provides generic access to marshal and unmarshal a Identifier
implementation from or to Element
representation.
Method Summary | |
---|---|
T |
fromElement(Element el)
Create a Identifier instance from the given Element . |
Class<T> |
handles()
|
Element |
toElement(Identifier i,
Document doc)
Create a Element instance representing the given Identifier . |
Method Detail |
---|
Element toElement(Identifier i, Document doc) throws MarshalException
Element
instance representing the given Identifier
.
i
- the Identifier
doc
- the root Document
where the element is to be added.
An implementation must not add the element to the given Document
.
Element
representation of the given Identifier
.
MarshalException
- If some constraints for the Identifier
are not fullfilled.T fromElement(Element el) throws UnmarshalException
Identifier
instance from the given Element
.
el
- the Element
instance
Identifier
instance representation of the given Element
,
or null if this IdentifierHandler
was not able to parse
the given Element
.
UnmarshalException
- If some constraint of the Identifier
was
not fulfilled. Note, if this handler is not responsible for the
given XML, null has to be returned.Class<T> handles()
Class
object for the Identifier
implementation
this implementation is able to handle.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |