public class PatternDomParser extends java.lang.Object implements DomValueParser<java.lang.String>, uk.ac.ed.epcc.webapp.Contexed
| Constructor and Description |
|---|
PatternDomParser(uk.ac.ed.epcc.webapp.AppContext c,
java.lang.String tag) |
| Modifier and Type | Method and Description |
|---|---|
uk.ac.ed.epcc.webapp.AppContext |
getContext() |
java.lang.Class<java.lang.String> |
getType()
Returns the
Class of object this parser returns with it's
DomValueParser.parse(Node) method is invoked. |
java.lang.String |
parse(org.w3c.dom.Node valueNode)
Parses the specified Node and constructs the appropriate object out of
it.
|
public PatternDomParser(uk.ac.ed.epcc.webapp.AppContext c,
java.lang.String tag)
public java.lang.Class<java.lang.String> 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<java.lang.String>DomValueParserpublic java.lang.String parse(org.w3c.dom.Node valueNode)
throws ValueParseException
DomValueParserparse in interface DomValueParser<java.lang.String>ValueParseExceptionvalueNode - Node to parsevalueNodepublic uk.ac.ed.epcc.webapp.AppContext getContext()
getContext in interface uk.ac.ed.epcc.webapp.Contexed