crystalspace.jbind.impl.engine.sharevar
Class csSharedVariableList

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.sharevar.csSharedVariableList
All Implemented Interfaces:
iBase, iPointer, iSharedVariableList

public class csSharedVariableList
extends csBase
implements iSharedVariableList

Author:
Quentin Anciaux

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

csSharedVariableList

public csSharedVariableList(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(iSharedVariable obj)
Description copied from interface: iSharedVariableList
Add a SharedVariable.

Specified by:
add in interface iSharedVariableList
Parameters:
obj -
Returns:
See Also:
iSharedVariableList.add(crystalspace.jbind.interfaces.iengine.sharevar.iSharedVariable)

find

public int find(iSharedVariable obj)
Description copied from interface: iSharedVariableList
Find a SharedVariable and return its index.

Specified by:
find in interface iSharedVariableList
Parameters:
obj -
Returns:
See Also:
iSharedVariableList.find(crystalspace.jbind.interfaces.iengine.sharevar.iSharedVariable)

findByName

public iSharedVariable findByName(java.lang.String Name)
Description copied from interface: iSharedVariableList
Find a SharedVariable by name.

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

get

public iSharedVariable get(int n)
Description copied from interface: iSharedVariableList
Return a SharedVariable by index.

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

getCount

public int getCount()
Description copied from interface: iSharedVariableList
Return the number of Shared Variables in this list.

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

New

public iSharedVariable New()
Description copied from interface: iSharedVariableList
iSharedVariable Factory method. This does not add the new var to the list.

Specified by:
New in interface iSharedVariableList
Returns:
See Also:
iSharedVariableList.New()

remove

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

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

remove

public boolean remove(iSharedVariable obj)
Description copied from interface: iSharedVariableList
Remove a SharedVariable.

Specified by:
remove in interface iSharedVariableList
Parameters:
obj -
Returns:
See Also:
iSharedVariableList.remove(crystalspace.jbind.interfaces.iengine.sharevar.iSharedVariable)

removeAll

public void removeAll()
Description copied from interface: iSharedVariableList
Remove all SharedVariables.

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