crystalspace.jbind.interfaces.iutil.object
Interface iObjectIterator

All Superinterfaces:
iBase, iPointer
All Known Implementing Classes:
csObjectIterator

public interface iObjectIterator
extends iBase

This is an iterator for child objects of a csObject. Note that this iterator only contains type-independent functionality and is therefore a bit complicated to use (i.e. you'll have to do a lot of SCF_QUERY_INTERFACE_CALLS if you use it directly). Check out typed object iterators instead.

Author:
Java wrapper - Quentin Anciaux, c++ version - http://crystal.sourceforge.net/docs/online/devapi/structiObjectIterator.php

Method Summary
 iObject findName(java.lang.String name)
          traverses all csObjects and looks for an object with the given name returns object if found.
 iObject getParentObj()
          Get the parent object.
 boolean hasNext()
          Check if we have any more children of requested type.
 iObject next()
          Move forward.
 void reset()
          Reset the iterator to the beginning.
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Method Detail

findName

public iObject findName(java.lang.String name)
traverses all csObjects and looks for an object with the given name returns object if found. You can continue search by calling Next and then do an other FindName, if you like.

Parameters:
name -
Returns:

getParentObj

public iObject getParentObj()
Get the parent object.

Returns:

hasNext

public boolean hasNext()
Check if we have any more children of requested type.

Returns:

next

public iObject next()
Move forward.

Returns:

reset

public void reset()
Reset the iterator to the beginning.