public interface DocumentReader
Modifier and Type | Method and Description |
---|---|
void |
addUnmarshalerListener(UnmarshalerListener listener)
Assign unmarshaler listener to the document reader.
|
void |
close()
Close the reader, if necessary.
|
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.
|
String |
getNodeName()
Get the name of the current node.
|
String |
getValue()
Get the value (text content) of the current node.
|
boolean |
hasMoreChildren()
Does the node have any more children remaining that have not yet been
read?
|
boolean |
isEndOfDocument()
Checks of end of xml document.
|
void |
moveDown()
Select the current child as current node.
|
void |
moveUp()
Select the parent node as current node.
|
boolean hasMoreChildren()
void moveDown()
moveUp()
.void moveUp()
String getNodeName()
String getValue()
String getAttribute(String name)
name
- Name of attribute.String getAttribute(int index)
index
- Index of attribute.int getAttributeCount()
String getAttributeName(int index)
void close()
boolean isEndOfDocument()
void addUnmarshalerListener(UnmarshalerListener listener)
listener
- void execute()
Copyright © 2000–2022 EPAM Systems. All rights reserved.