org.apache.fop.fo

Class FObj.FObjIterator

Enclosing Class:
FObj
Implemented Interfaces:
FONode.FONodeIterator, ListIterator

public class FObj.FObjIterator
extends java.lang.Object
implements FONode.FONodeIterator

Constructor Summary

FObjIterator(FObj parent)

Method Summary

void
add(Object o)
FONode
firstNode()
Returns the first node in the list, and decreases the index, so that a subsequent call to hasPrevious() will return false
boolean
hasNext()
boolean
hasPrevious()
FONode
lastNode()
Returns the last node in the list, and advances the current position, so that a subsequent call to hasNext() will return false
Object
next()
int
nextIndex()
FONode
nextNode()
Convenience method with return type of FONode (should be semantically equivalent to (FONode) next();)
FObj
parentNode()
Object
previous()
int
previousIndex()
FONode
previousNode()
Convenience method with return type of FONode (should be semantically equivalent to (FONode) previous();)
void
remove()
void
set(Object o)

Constructor Details

FObjIterator

protected FObjIterator(FObj parent)

Method Details

add

public void add(Object o)
See Also:
java.util.ListIterator.add(Object)

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
Specified by:
firstNode in interface FONode.FONodeIterator
Returns:
the first node in the list

hasNext

public boolean hasNext()
See Also:
java.util.ListIterator.hasNext()

hasPrevious

public boolean hasPrevious()
See Also:
java.util.ListIterator.hasPrevious()

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
Specified by:
lastNode in interface FONode.FONodeIterator
Returns:
the last node in the list

next

public Object next()
See Also:
java.util.ListIterator.next()

nextIndex

public int nextIndex()
See Also:
java.util.ListIterator.nextIndex()

nextNode

public FONode nextNode()
Convenience method with return type of FONode (should be semantically equivalent to (FONode) next();)
Specified by:
nextNode in interface FONode.FONodeIterator
Returns:
the next node (if any), as a type FONode

parentNode

public FObj parentNode()
Specified by:
parentNode in interface FONode.FONodeIterator

previous

public Object previous()
See Also:
java.util.ListIterator.previous()

previousIndex

public int previousIndex()
See Also:
java.util.ListIterator.previousIndex()

previousNode

public FONode previousNode()
Convenience method with return type of FONode (should be semantically equivalent to (FONode) previous();)
Specified by:
previousNode in interface FONode.FONodeIterator
Returns:
the previous node (if any), as a type FONode

remove

public void remove()
See Also:
java.util.ListIterator.remove()

set

public void set(Object o)
See Also:
java.util.ListIterator.set(Object)

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.