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 TypeMethodDescriptionvoidclose()Close the reader, if necessary.protected abstract Elementprotected abstract Integerprotected abstract ElementbooleanDoes the node have any more children remaining that have not yet been read?booleanChecks of end of xml document.voidmoveDown()Select the current child as current node.voidmoveUp()Select the parent node as current node.protected abstract voidreassignCurrentElement(Element current) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DocumentReaderClose the reader, if necessary.- Specified by:
closein interfaceDocumentReader
-
hasMoreChildren
public boolean hasMoreChildren()Description copied from interface:DocumentReaderDoes the node have any more children remaining that have not yet been read?- Specified by:
hasMoreChildrenin interfaceDocumentReader- Returns:
- True if element has the children nodes.
-
isEndOfDocument
public boolean isEndOfDocument()Description copied from interface:DocumentReaderChecks of end of xml document.- Specified by:
isEndOfDocumentin interfaceDocumentReader- Returns:
- True if end of document.
-
moveDown
public void moveDown()Description copied from interface:DocumentReaderSelect the current child as current node. A call to this function must be balanced with a call toDocumentReader.moveUp().- Specified by:
moveDownin interfaceDocumentReader
-
moveUp
public void moveUp()Description copied from interface:DocumentReaderSelect the parent node as current node.- Specified by:
moveUpin interfaceDocumentReader
-
getChildCount
-
getParent
-
getChild
-
reassignCurrentElement
-