|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentReader
Reads XML document.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||