public final class DOMReader extends AbstractDocumentReader
current
Modifier and Type | Method and Description |
---|---|
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) |
close, hasMoreChildren, isEndOfDocument, moveDown, moveUp
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()
Copyright © 2000–2022 EPAM Systems. All rights reserved.