class JdapiObjectChildIterator extends java.lang.Object implements JdapiIterator
Note that the iterator will reflect a snapshot of the state of the passed object's children at the time the method was called, so the Iterator will become incorrect if the objects children are subsequently changed. This, however, prevents a potential error condition such as an infinite iteration from arising.
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
m_children
Vector of JdapiObjects which are the subject's children.
|
Constructor and Description |
---|
JdapiObjectChildIterator(JdapiObject obj)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
goLast()
Moves the iterator to the end of the list.
|
void |
goStart()
Moves the iterator to the start of the list.
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
boolean |
hasPrevious()
Returns true if the iteration has previous elements.
|
java.lang.Object |
next()
Gets the next object.
|
java.lang.Object |
previous()
Gets the previous object.
|
void |
remove()
Removes the current object from the iteration.
|
protected java.util.Vector m_children
JdapiObjectChildIterator(JdapiObject obj)
obj
- array of metaproperties from metadata for
the requested objectpublic void goLast()
goLast
in interface JdapiIterator
public void goStart()
goStart
in interface JdapiIterator
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in interface JdapiIterator
public boolean hasPrevious()
hasPrevious
in interface JdapiIterator
public java.lang.Object next()
next
in interface java.util.Iterator
next
in interface JdapiIterator
public java.lang.Object previous()
previous
in interface JdapiIterator
public void remove()
remove
in interface java.util.Iterator
remove
in interface JdapiIterator