Package com.epam.xml.reader
Class AbstractDocumentReader
java.lang.Object
com.epam.xml.reader.AbstractDocumentReader
- All Implemented Interfaces:
DocumentReader
- Direct Known Subclasses:
DOMReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the reader, if necessary.protected abstract Element
protected abstract Integer
protected abstract Element
boolean
Does the node have any more children remaining that have not yet been read?boolean
Checks of end of xml document.void
moveDown()
Select the current child as current node.void
moveUp()
Select the parent node as current node.protected abstract void
reassignCurrentElement
(Element current) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.epam.xml.reader.DocumentReader
addUnmarshalerListener, execute, getAttribute, getAttribute, getAttributeCount, getAttributeName, getNodeName, getValue
-
Field Details
-
current
-
-
Constructor Details
-
AbstractDocumentReader
-
-
Method Details
-
close
public void close()Description copied from interface:DocumentReader
Close the reader, if necessary.- Specified by:
close
in interfaceDocumentReader
-
hasMoreChildren
public boolean hasMoreChildren()Description copied from interface:DocumentReader
Does the node have any more children remaining that have not yet been read?- Specified by:
hasMoreChildren
in interfaceDocumentReader
- Returns:
- True if element has the children nodes.
-
isEndOfDocument
public boolean isEndOfDocument()Description copied from interface:DocumentReader
Checks of end of xml document.- Specified by:
isEndOfDocument
in interfaceDocumentReader
- Returns:
- True if end of document.
-
moveDown
public void moveDown()Description copied from interface:DocumentReader
Select the current child as current node. A call to this function must be balanced with a call toDocumentReader.moveUp()
.- Specified by:
moveDown
in interfaceDocumentReader
-
moveUp
public void moveUp()Description copied from interface:DocumentReader
Select the parent node as current node.- Specified by:
moveUp
in interfaceDocumentReader
-
getChildCount
-
getParent
-
getChild
-
reassignCurrentElement
-