crystalspace.jbind.impl.engine.sector
Class csSectorList

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.sector.csSectorList
All Implemented Interfaces:
iBase, iPointer, iSectorList

public class csSectorList
extends csBase
implements iSectorList

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csSectorList(iPointer nPointer)
           
 
Method Summary
 int add(iSector obj)
          Add a sector.
 int find(iSector obj)
          Find a sector and return its index.
 iSector findByName(java.lang.String Name)
          Find a sector by name.
 iSector get(int n)
          Return a sector by index.
 int getCount()
          Return the number of sectors 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)
           
 boolean remove(int n)
          Remove the nth sector.
 boolean remove(iSector obj)
          Remove a sector.
 void removeAll()
          Remove all sectors.
 
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

csSectorList

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

add

public int add(iSector obj)
Description copied from interface: iSectorList
Add a sector.

Specified by:
add in interface iSectorList
Parameters:
obj -
Returns:
See Also:
iSectorList.add(crystalspace.jbind.interfaces.iengine.sector.iSector)

find

public int find(iSector obj)
Description copied from interface: iSectorList
Find a sector and return its index.

Specified by:
find in interface iSectorList
Parameters:
obj -
Returns:
See Also:
iSectorList.find(crystalspace.jbind.interfaces.iengine.sector.iSector)

findByName

public iSector findByName(java.lang.String Name)
Description copied from interface: iSectorList
Find a sector by name.

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

get

public iSector get(int n)
Description copied from interface: iSectorList
Return a sector by index.

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

getCount

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

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

remove

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

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

remove

public boolean remove(iSector obj)
Description copied from interface: iSectorList
Remove a sector.

Specified by:
remove in interface iSectorList
Parameters:
obj -
Returns:
See Also:
iSectorList.remove(crystalspace.jbind.interfaces.iengine.sector.iSector)

removeAll

public void removeAll()
Description copied from interface: iSectorList
Remove all sectors.

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