public static class IlrXmlCollectionMapperFactory.DynamicArrayMapper extends java.lang.Object implements IlrXmlDataTypeMapper.CollectionMapper
Object
class.| Constructor and Description |
|---|
DynamicArrayMapper(IlrObjectModel model,
IlrClass compXomClass,
java.lang.Class compJavaClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(java.lang.Object collection,
java.lang.Object component)
Adds a new component in the collection
|
java.lang.Object |
createCollection(java.util.Collection components)
Creates a new instance of the collection knowing its components
|
java.lang.Object |
createVoidCollection()
Creates a new instance of a void collection.
|
java.lang.Object |
getComponent(java.lang.Object collection,
int ix)
Get a component of the collection knowing its index
|
java.lang.Class |
getImplementationType()
Gets the Java implementation class of the collection.
|
java.util.Iterator |
getIterator(java.lang.Object collection)
Get an iterator on the collection
|
int |
getSize(java.lang.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(java.lang.Object collection,
java.lang.Object component)
Remove a component of a collection
|
public DynamicArrayMapper(IlrObjectModel model, IlrClass compXomClass, java.lang.Class compJavaClass)
public IlrType getXomType()
IlrXmlDataTypeMapper.CollectionMappergetXomType in interface IlrXmlDataTypeMapper.CollectionMapperpublic java.lang.Class getImplementationType()
IlrXmlDataTypeMapper.CollectionMappergetImplementationType in interface IlrXmlDataTypeMapper.CollectionMapperpublic java.lang.Object createVoidCollection()
IlrXmlDataTypeMapper.CollectionMappercreateVoidCollection in interface IlrXmlDataTypeMapper.CollectionMapperpublic java.lang.Object createCollection(java.util.Collection components)
IlrXmlDataTypeMapper.CollectionMappercreateCollection in interface IlrXmlDataTypeMapper.CollectionMappercomponents - the components to be added in the new collectionpublic void addComponent(java.lang.Object collection,
java.lang.Object component)
IlrXmlDataTypeMapper.CollectionMapperaddComponent in interface IlrXmlDataTypeMapper.CollectionMappercollection - The collection.component - The component.public java.lang.Object getComponent(java.lang.Object collection,
int ix)
IlrXmlDataTypeMapper.CollectionMappergetComponent in interface IlrXmlDataTypeMapper.CollectionMappercollection - the collectionix - index of the component in the collectionpublic void removeComponent(java.lang.Object collection,
java.lang.Object component)
IlrXmlDataTypeMapper.CollectionMapperremoveComponent in interface IlrXmlDataTypeMapper.CollectionMappercollection - the collectioncomponent - the component to be removed from the collectionpublic java.util.Iterator getIterator(java.lang.Object collection)
IlrXmlDataTypeMapper.CollectionMappergetIterator in interface IlrXmlDataTypeMapper.CollectionMappercollection - the collection to be iterated.public int getSize(java.lang.Object collection)
IlrXmlDataTypeMapper.CollectionMappergetSize in interface IlrXmlDataTypeMapper.CollectionMappercollection - the collection to be iterated.public boolean isAddComponentSupported()
IlrXmlDataTypeMapper.CollectionMapperisAddComponentSupported in interface IlrXmlDataTypeMapper.CollectionMapper© Copyright IBM Corp. 1987, 2024