ilog.rules.xml.util

Class IlrXmlDefaultDataTypeMapper

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


    public class IlrXmlDefaultDataTypeMapper
    extends java.lang.Object
    implements IlrXmlDataTypeMapper
    The default implementation of an XML data type mapper.
    • Constructor Detail

      • IlrXmlDefaultDataTypeMapper

        public IlrXmlDefaultDataTypeMapper(IlrObjectModel objectModel)
    • Method Detail

      • setUseDynamicSimpleType

        public void setUseDynamicSimpleType(boolean dynamicSimpleTypeFlag)
      • setMapFacetAsStaticMethod

        public void setMapFacetAsStaticMethod(boolean facetAsStaticMethodFlag)
      • 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.

© Copyright IBM Corp. 1987, 2017