public class POBNodeBuilder
extends java.lang.Object
| Constructor and Description |
|---|
POBNodeBuilder(org.w3c.dom.Node node)
Constructor to instantiate the class object with provided argument
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttributeValue(java.lang.String attPath)
Returns the value of current node attribute for provided attribute name
|
org.w3c.dom.Node |
getNode(java.lang.String path)
Retrieves a sub-node at provide xpath and returns it.
|
java.lang.String |
getNodeName()
Returns the name of current node
|
<T extends POBXMLNodeListener> |
getNodeObject(java.lang.String path,
java.lang.Class<T> elementType)
Creates and returns an instance of provided class type for provided xPath
|
java.lang.String |
getNodeValue()
Returns the value of current node
|
java.lang.String |
getNodeValue(java.lang.String path)
Returns the value of sub-node
|
<T extends POBXMLNodeListener> |
getObjectList(java.lang.String path,
java.lang.Class<T> elementType)
Creates and returns a list of provided class type for provided xPath
|
java.util.List<java.lang.String> |
getStringList(java.lang.String path)
Creates and returns a list of node values with provided xPath
|
public POBNodeBuilder(org.w3c.dom.Node node)
node - xml nodepublic org.w3c.dom.Node getNode(java.lang.String path)
path - relative xpath of sub-node from current nodepublic java.lang.String getNodeName()
public java.lang.String getNodeValue()
public <T extends POBXMLNodeListener> java.util.List<T> getObjectList(java.lang.String path, java.lang.Class<T> elementType)
path - sub-node relative xpath of sub-node from current nodeelementType - class of which instance to be createdpublic java.util.List<java.lang.String> getStringList(java.lang.String path)
path - sub-node relative xpath of sub-node from current nodepublic java.lang.String getNodeValue(java.lang.String path)
path - sub-node relative xpath of sub-node from current nodepublic <T extends POBXMLNodeListener> T getNodeObject(java.lang.String path, java.lang.Class<T> elementType)
path - sub-node relative xpath of sub-node from current nodeelementType - class of which list to be createdpublic java.lang.String getAttributeValue(java.lang.String attPath)
attPath - attribute xpath from current node