|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.xml.reader.AbstractDocumentReader com.epam.xml.reader.DOMReader
public final class DOMReader
The reader based on DOM parser.
Field Summary |
---|
Fields inherited from class com.epam.xml.reader.AbstractDocumentReader |
---|
current |
Method Summary | |
---|---|
void |
addUnmarshalerListener(UnmarshalerListener listener)
Assign unmarshaler listener to the document reader. |
static DocumentReader |
createReader(InputStream xml)
|
void |
execute()
|
String |
getAttribute(int index)
Get the value of an attribute of the current node, by index. |
String |
getAttribute(String name)
Get the value of an attribute of the current node. |
int |
getAttributeCount()
Number of attributes in current node. |
String |
getAttributeName(int index)
Name of attribute in current node. |
protected Element |
getChild(Integer pointer)
|
protected Integer |
getChildCount()
|
String |
getNodeName()
Get the name of the current node. |
protected Element |
getParent()
|
String |
getValue()
Get the value (text content) of the current node. |
protected void |
reassignCurrentElement(Element current)
|
Methods inherited from class com.epam.xml.reader.AbstractDocumentReader |
---|
close, hasMoreChildren, isEndOfDocument, moveDown, moveUp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentReader createReader(InputStream xml)
protected Element getChild(Integer pointer)
getChild
in class AbstractDocumentReader
protected void reassignCurrentElement(Element current)
reassignCurrentElement
in class AbstractDocumentReader
public String getAttribute(String name)
DocumentReader
name
- Name of attribute.public String getAttribute(int index)
DocumentReader
index
- Index of attribute.public int getAttributeCount()
DocumentReader
public String getAttributeName(int index)
DocumentReader
public String getNodeName()
DocumentReader
public String getValue()
DocumentReader
protected Integer getChildCount()
getChildCount
in class AbstractDocumentReader
protected Element getParent()
getParent
in class AbstractDocumentReader
public void addUnmarshalerListener(UnmarshalerListener listener)
DocumentReader
public void execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |