crystalspace.jbind.interfaces.iengine.collectn
Interface iCollection

All Superinterfaces:
iBase, iPointer
All Known Implementing Classes:
csCollection

public interface iCollection
extends iBase

A collection object is for convenience of the script language. It is simply a collection of other objects.

Author:
Quentin Anciaux

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.
 iObject getObject(int i)
          Get an object by index (function version).
 int getObjectCount()
          Get the number of objects in this collection.
 iObject queryObject()
          Query the iObject for this collection.
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Method Detail

queryObject

public iObject queryObject()
Query the iObject for this collection.

Returns:

findObject

public iObject findObject(java.lang.String name)
Find an object with the given name inside this collection.

Parameters:
name -
Returns:

getObjectCount

public int getObjectCount()
Get the number of objects in this collection.

Returns:

addObject

public void addObject(iObject obj)
Add an object to the collection.

Parameters:
obj -

getObject

public iObject getObject(int i)
Get an object by index (function version).

Parameters:
i -
Returns: