crystalspace.jbind.impl.engine.collectn
Class csCollectionList

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

public class csCollectionList
extends csBase
implements iCollectionList

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csCollectionList(iPointer nPointer)
           
 
Method Summary
 int add(iCollection obj)
          Add a collection.
 int find(iCollection obj)
          Find a collection and return its index.
 iCollection findByName(java.lang.String Name)
          Find a collection by name.
 iCollection get(int n)
          Return a collection by index.
 int getCount()
          Return the number of collections in this list.
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
protected  boolean isNativePointerValidSafe(long pointer)
           
 iCollection newCollection(java.lang.String name)
          Create a new collection.
 boolean remove(iCollection obj)
          Remove a collection.
 boolean remove(int n)
          Remove the nth collection.
 void removeAll()
          Remove all collections.
 
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

csCollectionList

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

newCollection

public iCollection newCollection(java.lang.String name)
Description copied from interface: iCollectionList
Create a new collection.

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

getCount

public int getCount()
Description copied from interface: iCollectionList
Return the number of collections in this list.

Specified by:
getCount in interface iCollectionList
Returns:
See Also:
iCollectionList.getCount()

get

public iCollection get(int n)
Description copied from interface: iCollectionList
Return a collection by index.

Specified by:
get in interface iCollectionList
Parameters:
n -
Returns:
See Also:
iCollectionList.get(int)

add

public int add(iCollection obj)
Description copied from interface: iCollectionList
Add a collection.

Specified by:
add in interface iCollectionList
Parameters:
obj -
Returns:
See Also:
iCollectionList.add(crystalspace.jbind.interfaces.iengine.collectn.iCollection)

remove

public boolean remove(iCollection obj)
Description copied from interface: iCollectionList
Remove a collection.

Specified by:
remove in interface iCollectionList
Parameters:
obj -
Returns:
See Also:
iCollectionList.remove(crystalspace.jbind.interfaces.iengine.collectn.iCollection)

remove

public boolean remove(int n)
Description copied from interface: iCollectionList
Remove the nth collection.

Specified by:
remove in interface iCollectionList
Parameters:
n -
Returns:
See Also:
iCollectionList.remove(int)

removeAll

public void removeAll()
Description copied from interface: iCollectionList
Remove all collections.

Specified by:
removeAll in interface iCollectionList
See Also:
iCollectionList.removeAll()

find

public int find(iCollection obj)
Description copied from interface: iCollectionList
Find a collection and return its index.

Specified by:
find in interface iCollectionList
Parameters:
obj -
Returns:
See Also:
iCollectionList.find(crystalspace.jbind.interfaces.iengine.collectn.iCollection)

findByName

public iCollection findByName(java.lang.String Name)
Description copied from interface: iCollectionList
Find a collection by name.

Specified by:
findByName in interface iCollectionList
Parameters:
Name -
Returns:
See Also:
iCollectionList.findByName(java.lang.String)