crystalspace.jbind.impl.csutil.object
Class csObjectIterator

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.csutil.object.csObjectIterator
All Implemented Interfaces:
iBase, iObjectIterator, iPointer

public class csObjectIterator
extends csBase
implements iObjectIterator

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csObjectIterator(iPointer nPointer)
           
 
Method Summary
 iObject findName(java.lang.String name)
          traverses all csObjects and looks for an object with the given name returns object if found.
 java.lang.String getName()
          Return the name of the interface
 iObject getParentObj()
          Get the parent object.
 int getVersion()
          Return the version of the interface
 boolean hasNext()
          Check if we have any more children of requested type.
protected  boolean isNativePointerValidSafe(long pointer)
           
 iObject next()
          Move forward.
 void reset()
          Reset the iterator to the beginning.
 
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Constructor Detail

csObjectIterator

public csObjectIterator(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase
See Also:
iBase.getVersion()

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase
See Also:
iBase.getName()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
csNativeObject.isNativePointerValidSafe(long)

findName

public iObject findName(java.lang.String name)
Description copied from interface: iObjectIterator
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.

Specified by:
findName in interface iObjectIterator
Parameters:
name -
Returns:
See Also:
iObjectIterator.findName(java.lang.String)

getParentObj

public iObject getParentObj()
Description copied from interface: iObjectIterator
Get the parent object.

Specified by:
getParentObj in interface iObjectIterator
Returns:
See Also:
iObjectIterator.getParentObj()

hasNext

public boolean hasNext()
Description copied from interface: iObjectIterator
Check if we have any more children of requested type.

Specified by:
hasNext in interface iObjectIterator
Returns:
See Also:
iObjectIterator.hasNext()

next

public iObject next()
Description copied from interface: iObjectIterator
Move forward.

Specified by:
next in interface iObjectIterator
Returns:
See Also:
iObjectIterator.next()

reset

public void reset()
Description copied from interface: iObjectIterator
Reset the iterator to the beginning.

Specified by:
reset in interface iObjectIterator
See Also:
iObjectIterator.reset()