T - target typepublic class DomParserAdapter<T> extends java.lang.Object implements DomValueParser<T>
| Constructor and Description |
|---|
DomParserAdapter(ValueParser<T> vp) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<T> |
getType()
Returns the
Class of object this parser returns with it's
DomValueParser.parse(Node) method is invoked. |
T |
parse(org.w3c.dom.Node valueNode)
Parses the specified Node and constructs the appropriate object out of
it.
|
public DomParserAdapter(ValueParser<T> vp)
public java.lang.Class<T> getType()
DomValueParserClass of object this parser returns with it's
DomValueParser.parse(Node) method is invoked. The returned class will be the
exact Class (i.e. not a subclass) of this
ValueParser's typegetType in interface DomValueParser<T>DomValueParserpublic T parse(org.w3c.dom.Node valueNode) throws ValueParseException
DomValueParserparse in interface DomValueParser<T>ValueParseExceptionvalueNode - Node to parsevalueNode