public abstract class AbstractDocumentReader extends Object implements DocumentReader
Modifier | Constructor and Description |
---|---|
protected |
AbstractDocumentReader(Element root) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the reader, if necessary.
|
protected abstract Element |
getChild(Integer pointer) |
protected abstract Integer |
getChildCount() |
protected abstract Element |
getParent() |
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.
|
protected abstract void |
reassignCurrentElement(Element current) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addUnmarshalerListener, execute, getAttribute, getAttribute, getAttributeCount, getAttributeName, getNodeName, getValue
protected Element current
protected AbstractDocumentReader(Element root)
public void close()
DocumentReader
close
in interface DocumentReader
public boolean hasMoreChildren()
DocumentReader
hasMoreChildren
in interface DocumentReader
public boolean isEndOfDocument()
DocumentReader
isEndOfDocument
in interface DocumentReader
public void moveDown()
DocumentReader
DocumentReader.moveUp()
.moveDown
in interface DocumentReader
public void moveUp()
DocumentReader
moveUp
in interface DocumentReader
protected abstract Integer getChildCount()
protected abstract Element getParent()
protected abstract void reassignCurrentElement(Element current)
Copyright © 2000–2022 EPAM Systems. All rights reserved.