Rule Execution Server API

ilog.rules.xml.util
Class IlrXmlCollectionMapperFactory

java.lang.Object
  extended by ilog.rules.xml.util.IlrXmlCollectionMapperFactory

public class IlrXmlCollectionMapperFactory
extends Object

This class is the default implementation of an XML data type mapper.


Nested Class Summary
static class IlrXmlCollectionMapperFactory.ArrayListMapper
          Implements a collection mapper using the java.util.ArrayList class.
static class IlrXmlCollectionMapperFactory.DynamicArrayMapper
          Implements a collection mapper using an array of Java Object class.
static class IlrXmlCollectionMapperFactory.JavaArrayMapper
          Implements a collection mapper using an array of Java Object class.
static class IlrXmlCollectionMapperFactory.VectorMapper
          Implements a collection mapper using the java.util.Vector class.
 
Constructor Summary
IlrXmlCollectionMapperFactory()
           
 
Method Summary
static IlrXmlDataTypeMapper.CollectionMapper createArrayMapper(IlrClass collectionXomType, Class compWrapperType)
          Creates a collection mapper knowing its implementation class.
static IlrXmlDataTypeMapper.CollectionMapper createCollectionMapper(Class collectionClass, IlrObjectModel model)
          Creates a collection mapper knowing its implementation class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrXmlCollectionMapperFactory

public IlrXmlCollectionMapperFactory()
Method Detail

createCollectionMapper

public static IlrXmlDataTypeMapper.CollectionMapper createCollectionMapper(Class collectionClass,
                                                                           IlrObjectModel model)
Creates a collection mapper knowing its implementation class.

Parameters:
collectionClass - The implementation class of the collection.
model - The model for which this mapper is used.
Returns:
The mapper. It may be null if the chosen mapper is not known.

createArrayMapper

public static IlrXmlDataTypeMapper.CollectionMapper createArrayMapper(IlrClass collectionXomType,
                                                                      Class compWrapperType)
Creates a collection mapper knowing its implementation class.

Parameters:
collectionXomType - The XOM type of the collection.
compWrapperType - The wrapper type for which this mapper is used.
Returns:
The mapper. It may be null if the choosen mapper is not known

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013