public class XmlElementParsable
extends java.lang.Object
| Constructor and Description |
|---|
XmlElementParsable(org.w3c.dom.Element element,
XmlParserHelper parser)
Instantiates a new xml element parsable.
|
| Modifier and Type | Method and Description |
|---|---|
XmlElementParsable |
getChild(java.lang.String string)
Gets the child.
|
java.util.List<XmlElementParsable> |
getChildren(java.lang.String childName)
Gets the children.
|
java.lang.String |
getChildText(java.lang.String childName)
Gets the child text.
|
boolean |
getChildTextAsBoolean(java.lang.String childName)
Gets the child text as boolean.
|
java.util.Date |
getChildTextAsDate(java.lang.String childName)
Gets the child text as date.
|
double |
getChildTextAsDouble(java.lang.String childName)
Gets the child text as double.
|
int |
getChildTextAsInt(java.lang.String childName)
Gets the child text as int.
|
java.lang.String |
getName()
Gets the name.
|
protected org.w3c.dom.Node |
getNode()
Returns the internal/wrapped node.
|
java.lang.String |
getText()
Gets the text.
|
boolean |
isEmpty()
Checks if is empty.
|
public XmlElementParsable(org.w3c.dom.Element element,
XmlParserHelper parser)
element - the elementparser - the parserpublic java.util.List<XmlElementParsable> getChildren(java.lang.String childName)
childName - the child namepublic java.lang.String getName()
public java.lang.String getText()
public java.lang.String getChildText(java.lang.String childName)
childName - the child namepublic int getChildTextAsInt(java.lang.String childName)
childName - the child namepublic double getChildTextAsDouble(java.lang.String childName)
childName - the child namepublic java.util.Date getChildTextAsDate(java.lang.String childName)
childName - the child namepublic boolean getChildTextAsBoolean(java.lang.String childName)
childName - the child namepublic XmlElementParsable getChild(java.lang.String string)
string - the stringpublic boolean isEmpty()
protected org.w3c.dom.Node getNode()