class UseAttributeForEnumMapper extends AttributeMapper
Mapper.ImplicitCollectionMapping, Mapper.Null| Constructor and Description |
|---|
UseAttributeForEnumMapper(Mapper wrapped) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Mapper |
createEnumMapper(Mapper mapper) |
SingleValueConverter |
getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute,
java.lang.Class type)
Returns which converter to use for an specific attribute in a type.
|
SingleValueConverter |
getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn)
Returns a single value converter to be used in a specific field.
|
static boolean |
isEnum(java.lang.Class type)
Deprecated.
only used for Java 1.4 support
|
boolean |
shouldLookForSingleValueConverter(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn) |
addAttributeFor, addAttributeFor, addAttributeFor, addAttributeFor, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, setConverterLookupaliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMemberpublic UseAttributeForEnumMapper(Mapper wrapped)
public static boolean isEnum(java.lang.Class type)
public boolean shouldLookForSingleValueConverter(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn)
shouldLookForSingleValueConverter in class AttributeMapperpublic SingleValueConverter getConverterFromItemType(java.lang.String fieldName, java.lang.Class type, java.lang.Class definedIn)
MappergetConverterFromItemType in interface MappergetConverterFromItemType in class AttributeMapperfieldName - the field nametype - the field typedefinedIn - the type which defines this fieldpublic SingleValueConverter getConverterFromAttribute(java.lang.Class definedIn, java.lang.String attribute, java.lang.Class type)
MappergetConverterFromAttribute in interface MappergetConverterFromAttribute in class AttributeMapperdefinedIn - the field's parentattribute - the attribute nametype - the type the converter should create