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, setConverterLookup
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember
public 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 AttributeMapper
public SingleValueConverter getConverterFromItemType(java.lang.String fieldName, java.lang.Class type, java.lang.Class definedIn)
Mapper
getConverterFromItemType
in interface Mapper
getConverterFromItemType
in class AttributeMapper
fieldName
- 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)
Mapper
getConverterFromAttribute
in interface Mapper
getConverterFromAttribute
in class AttributeMapper
definedIn
- the field's parentattribute
- the attribute nametype
- the type the converter should create