org.apache.fop.fo
Interface FONode.FONodeIterator
- ListIterator
- FObj.FObjIterator
public static interface FONode.FONodeIterator
extends ListIterator
Base iterator interface over a FO's children
FONode | firstNode() - Returns the first node in the list, and decreases the index,
so that a subsequent call to hasPrevious() will return false
|
FONode | lastNode() - Returns the last node in the list, and advances the
current position, so that a subsequent call to hasNext()
will return false
|
FONode | nextNode() - Convenience method with return type of FONode
(should be semantically equivalent to
(FONode) next(); )
|
FObj | parentNode() - Returns the parent node for this iterator's list
of child nodes
|
FONode | previousNode() - Convenience method with return type of FONode
(should be semantically equivalent to
(FONode) previous(); )
|
firstNode
public FONode firstNode()
Returns the first node in the list, and decreases the index,
so that a subsequent call to hasPrevious() will return false
- the first node in the list
lastNode
public FONode lastNode()
Returns the last node in the list, and advances the
current position, so that a subsequent call to hasNext()
will return false
- the last node in the list
nextNode
public FONode nextNode()
Convenience method with return type of FONode
(should be semantically equivalent to
(FONode) next();
)
- the next node (if any), as a type FONode
parentNode
public FObj parentNode()
Returns the parent node for this iterator's list
of child nodes
previousNode
public FONode previousNode()
Convenience method with return type of FONode
(should be semantically equivalent to
(FONode) previous();
)
- the previous node (if any), as a type FONode
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.