|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.xml.util.IlrXmlCollectionMapperFactory.VectorMapper
public static class IlrXmlCollectionMapperFactory.VectorMapper
Implements a collection mapper using the java.util.Vector
class.
Constructor Summary | |
---|---|
IlrXmlCollectionMapperFactory.VectorMapper(IlrObjectModel model)
|
Method Summary | |
---|---|
void |
addComponent(Object collection,
Object component)
Adds a new component in the collection |
Object |
createCollection(Collection components)
Creates a new instance of the collection knowing its components |
Object |
createVoidCollection()
Creates a new instance of a void collection. |
Object |
getComponent(Object collection,
int ix)
Get a component of the collection knowing its index |
Class |
getImplementationType()
Gets the Java implementation class of the collection. |
Iterator |
getIterator(Object collection)
Get an iterator on the collection |
int |
getSize(Object collection)
Get the size of the collection |
IlrType |
getXomType()
Gets the Java collection type used in the XOM |
boolean |
isAddComponentSupported()
Determines if the collection accepts to add new component. |
void |
removeComponent(Object collection,
Object component)
Remove a component of a collection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrXmlCollectionMapperFactory.VectorMapper(IlrObjectModel model)
Method Detail |
---|
public IlrType getXomType()
IlrXmlDataTypeMapper.CollectionMapper
getXomType
in interface IlrXmlDataTypeMapper.CollectionMapper
public Class getImplementationType()
IlrXmlDataTypeMapper.CollectionMapper
getImplementationType
in interface IlrXmlDataTypeMapper.CollectionMapper
public Object createVoidCollection()
IlrXmlDataTypeMapper.CollectionMapper
createVoidCollection
in interface IlrXmlDataTypeMapper.CollectionMapper
public Object createCollection(Collection components)
IlrXmlDataTypeMapper.CollectionMapper
createCollection
in interface IlrXmlDataTypeMapper.CollectionMapper
components
- the components to be added in the new collection
public void addComponent(Object collection, Object component)
IlrXmlDataTypeMapper.CollectionMapper
addComponent
in interface IlrXmlDataTypeMapper.CollectionMapper
collection
- The collection.component
- The component.public Object getComponent(Object collection, int ix)
IlrXmlDataTypeMapper.CollectionMapper
getComponent
in interface IlrXmlDataTypeMapper.CollectionMapper
collection
- the collectionix
- index of the component in the collectionpublic void removeComponent(Object collection, Object component)
IlrXmlDataTypeMapper.CollectionMapper
removeComponent
in interface IlrXmlDataTypeMapper.CollectionMapper
collection
- the collectioncomponent
- the component to be removed from the collectionpublic Iterator getIterator(Object collection)
IlrXmlDataTypeMapper.CollectionMapper
getIterator
in interface IlrXmlDataTypeMapper.CollectionMapper
collection
- the collection to be iterated.
public int getSize(Object collection)
IlrXmlDataTypeMapper.CollectionMapper
getSize
in interface IlrXmlDataTypeMapper.CollectionMapper
collection
- the collection to be iterated.
public boolean isAddComponentSupported()
IlrXmlDataTypeMapper.CollectionMapper
isAddComponentSupported
in interface IlrXmlDataTypeMapper.CollectionMapper
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |