public class IlrXmlDefaultDataTypeMapper extends java.lang.Object implements IlrXmlDataTypeMapper
IlrXmlDataTypeMapper.CollectionMapper| Constructor and Description |
|---|
IlrXmlDefaultDataTypeMapper(IlrObjectModel objectModel) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public IlrXmlDefaultDataTypeMapper(IlrObjectModel objectModel)
public void setUseDynamicSimpleType(boolean dynamicSimpleTypeFlag)
public void setMapFacetAsStaticMethod(boolean facetAsStaticMethodFlag)
public boolean mapFacetAsStaticMethod()
IlrXmlDataTypeMappermapFacetAsStaticMethod in interface IlrXmlDataTypeMapperpublic boolean mapEnumerationAsStaticFields(IlrType type)
IlrXmlDataTypeMappermapEnumerationAsStaticFields in interface IlrXmlDataTypeMapperpublic boolean supportDynamicSimpleTyping(IlrType type)
IlrXmlDataTypeMappersupportDynamicSimpleTyping in interface IlrXmlDataTypeMapperpublic boolean useDynamicSimpleType()
useDynamicSimpleType in interface IlrXmlDataTypeMapperpublic void setUseArrayCollection(boolean useArrayCollectionFlag)
public boolean useArrayCollection()
getCollectionMapper method is not invoked
to determine the collection type.useArrayCollection in interface IlrXmlDataTypeMapperpublic IlrXmlDataTypeMapper.CollectionMapper getCollectionMapper(IlrType componentXomType)
useArrayCollection is true.getCollectionMapper in interface IlrXmlDataTypeMappercomponentXomType - The XOM type of the collection component.public void setDefaultCollectionMapper(IlrXmlDataTypeMapper.CollectionMapper collectionMapper)
collectionMapper - The new collection mapper.© Copyright IBM Corp. 1987, 2017