Rule Execution Server API

ilog.rules.xml.util
Class IlrXmlDefaultDataTypeMapper

java.lang.Object
  extended by ilog.rules.xml.util.IlrXmlDefaultDataTypeMapper
All Implemented Interfaces:
IlrXmlDataTypeMapper

public class IlrXmlDefaultDataTypeMapper
extends Object
implements IlrXmlDataTypeMapper

The default implementation of an XML data type mapper.


Nested Class Summary
 
Nested classes/interfaces inherited from interface ilog.rules.xml.util.IlrXmlDataTypeMapper
IlrXmlDataTypeMapper.CollectionMapper
 
Constructor Summary
IlrXmlDefaultDataTypeMapper(IlrObjectModel objectModel)
           
 
Method Summary
 IlrXmlDataTypeMapper.CollectionMapper getCollectionMapper(IlrType componentXomType)
          Gets the collection mapping that describes how the collection field of a schema should be mapped on a Java type.
 boolean mapEnumerationAsStaticFields(IlrType type)
          Determines if static fields are generated for representing simple type enumerations.
 boolean mapFacetAsStaticMethod()
          Determines if static methods is generated for representing simple type facets.
 void setDefaultCollectionMapper(IlrXmlDataTypeMapper.CollectionMapper collectionMapper)
          Set the collection mapper.
 void setMapFacetAsStaticMethod(boolean facetAsStaticMethodFlag)
           
 void setUseArrayCollection(boolean useArrayCollectionFlag)
           
 void setUseDynamicSimpleType(boolean dynamicSimpleTypeFlag)
           
 boolean supportDynamicSimpleTyping(IlrType type)
          Determines if a dynamic simple field of the XOM could be mapped on a simple dynamic type and not directly on a Java type.
 boolean useArrayCollection()
          Determines if collections are mapped on arrays.
 boolean useDynamicSimpleType()
          Determines if a dynamic simple field of the XOM could be mapped on a simple dynamic type and not directly on a Java type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrXmlDefaultDataTypeMapper

public IlrXmlDefaultDataTypeMapper(IlrObjectModel objectModel)
Method Detail

setUseDynamicSimpleType

public void setUseDynamicSimpleType(boolean dynamicSimpleTypeFlag)

setMapFacetAsStaticMethod

public void setMapFacetAsStaticMethod(boolean facetAsStaticMethodFlag)

mapFacetAsStaticMethod

public boolean mapFacetAsStaticMethod()
Description copied from interface: IlrXmlDataTypeMapper
Determines if static methods is generated for representing simple type facets.

Specified by:
mapFacetAsStaticMethod in interface IlrXmlDataTypeMapper

mapEnumerationAsStaticFields

public boolean mapEnumerationAsStaticFields(IlrType type)
Description copied from interface: IlrXmlDataTypeMapper
Determines if static fields are generated for representing simple type enumerations.

Specified by:
mapEnumerationAsStaticFields in interface IlrXmlDataTypeMapper

supportDynamicSimpleTyping

public boolean supportDynamicSimpleTyping(IlrType type)
Description copied from interface: IlrXmlDataTypeMapper
Determines if a dynamic simple field of the XOM could be mapped on a simple dynamic type and not directly on a Java type.

Specified by:
supportDynamicSimpleTyping in interface IlrXmlDataTypeMapper

useDynamicSimpleType

public boolean useDynamicSimpleType()
Determines if a dynamic simple field of the XOM could be mapped on a simple dynamic type and not directly on a Java type.

Specified by:
useDynamicSimpleType in interface IlrXmlDataTypeMapper

setUseArrayCollection

public void setUseArrayCollection(boolean useArrayCollectionFlag)

useArrayCollection

public boolean useArrayCollection()
Determines if collections are mapped on arrays. If true, the getCollectionMapper method is not invoked to determine the collection type.

Specified by:
useArrayCollection in interface IlrXmlDataTypeMapper

getCollectionMapper

public IlrXmlDataTypeMapper.CollectionMapper getCollectionMapper(IlrType componentXomType)
Gets the collection mapping that describes how the collection field of a schema should be mapped on a Java type. This method is not called when useArrayCollection is true.

Specified by:
getCollectionMapper in interface IlrXmlDataTypeMapper
Parameters:
componentXomType - The XOM type of the collection component.
Returns:
The collection mapper.

setDefaultCollectionMapper

public void setDefaultCollectionMapper(IlrXmlDataTypeMapper.CollectionMapper collectionMapper)
Set the collection mapper.

Parameters:
collectionMapper - The new collection mapper.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013