crystalspace.jbind.impl.engine.collectn
Class csCollection

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.collectn.csCollection
All Implemented Interfaces:
iBase, iCollection, iPointer

public class csCollection
extends csBase
implements iCollection

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csCollection(iPointer nPointer)
           
 
Method Summary
 void addObject(iObject obj)
          Add an object to the collection.
 iObject findObject(java.lang.String name)
          Find an object with the given name inside this collection.
 java.lang.String getName()
          Return the name of the interface
 iObject getObject(int i)
          Get an object by index (function version).
 int getObjectCount()
          Get the number of objects in this collection.
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 iObject queryObject()
          Query the iObject for this collection.
 
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

csCollection

public csCollection(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)

queryObject

public iObject queryObject()
Description copied from interface: iCollection
Query the iObject for this collection.

Specified by:
queryObject in interface iCollection
Returns:
See Also:
iCollection.queryObject()

findObject

public iObject findObject(java.lang.String name)
Description copied from interface: iCollection
Find an object with the given name inside this collection.

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

getObjectCount

public int getObjectCount()
Description copied from interface: iCollection
Get the number of objects in this collection.

Specified by:
getObjectCount in interface iCollection
Returns:
See Also:
iCollection.getObjectCount()

addObject

public void addObject(iObject obj)
Description copied from interface: iCollection
Add an object to the collection.

Specified by:
addObject in interface iCollection
Parameters:
obj -
See Also:
iCollection.addObject(crystalspace.jbind.interfaces.iutil.object.iObject)

getObject

public iObject getObject(int i)
Description copied from interface: iCollection
Get an object by index (function version).

Specified by:
getObject in interface iCollection
Parameters:
i -
Returns:
See Also:
iCollection.getObject(int)