T - the generic typepublic abstract class XmlElementParser<T>
extends java.lang.Object
| Constructor and Description |
|---|
XmlElementParser() |
| Modifier and Type | Method and Description |
|---|---|
T |
parseChild(XmlElementParsable childElement)
Returns a parsed object of type T from the given XML element.
|
protected abstract T |
parseChildImpl(XmlElementParsable childElement)
The implementation of the parseChild method.
|
java.util.List<T> |
parseChildren(XmlElementParsable root,
java.lang.String tag)
Returns parsed children of the give root node.
|
public final java.util.List<T> parseChildren(XmlElementParsable root, java.lang.String tag)
root - the root node with a childrentag - name of the child nodes to parse into the list, all other
nodes will be ignored. To parse all children set the name to
null.public final T parseChild(XmlElementParsable childElement)
childElement - the XML element to parse to the defined object of type Tprotected abstract T parseChildImpl(XmlElementParsable childElement)
childElement - the XML element to parse to the defined object of type T