public class AttributeMapper extends MapperWrapper
SingleValueConverter for item types and attribute names.Mapper.ImplicitCollectionMapping, Mapper.Null| Constructor and Description |
|---|
AttributeMapper(Mapper wrapped)
Deprecated.
since 1.3
|
AttributeMapper(Mapper wrapped,
ConverterLookup converterLookup) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeFor(Class type) |
void |
addAttributeFor(Class definedIn,
String fieldName)
Tells this mapper to use an attribute for this field.
|
void |
addAttributeFor(Field field)
Tells this mapper to use an attribute for this field.
|
void |
addAttributeFor(String fieldName,
Class type) |
SingleValueConverter |
getConverterFromAttribute(Class definedIn,
String attribute)
Returns which converter to use for an specific attribute in a type.
|
SingleValueConverter |
getConverterFromAttribute(String attributeName)
Deprecated.
since 1.3, use
getConverterFromAttribute(Class, String) |
SingleValueConverter |
getConverterFromItemType(Class type)
Deprecated.
since 1.3, use
getConverterFromItemType(String, Class, Class) |
SingleValueConverter |
getConverterFromItemType(String fieldName,
Class type)
Deprecated.
since 1.3, use
getConverterFromItemType(String, Class, Class) |
SingleValueConverter |
getConverterFromItemType(String fieldName,
Class type,
Class definedIn)
Returns a single value converter to be used in a specific field.
|
protected SingleValueConverter |
getLocalConverterFromItemType(Class type) |
void |
setConverterLookup(ConverterLookup converterLookup)
Deprecated.
since 1.3
|
aliasForAttribute, aliasForAttribute, attributeForAlias, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, defaultImplementationOf, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMemberpublic AttributeMapper(Mapper wrapped)
public AttributeMapper(Mapper wrapped, ConverterLookup converterLookup)
public void setConverterLookup(ConverterLookup converterLookup)
public void addAttributeFor(Class type)
protected SingleValueConverter getLocalConverterFromItemType(Class type)
public SingleValueConverter getConverterFromItemType(String fieldName, Class type)
getConverterFromItemType(String, Class, Class)getConverterFromItemType in interface MappergetConverterFromItemType in class MapperWrapperpublic SingleValueConverter getConverterFromItemType(String fieldName, Class type, Class definedIn)
MappergetConverterFromItemType in interface MappergetConverterFromItemType in class MapperWrapperfieldName - the field nametype - the field typedefinedIn - the type which defines this fieldpublic SingleValueConverter getConverterFromItemType(Class type)
getConverterFromItemType(String, Class, Class)getConverterFromItemType in interface MappergetConverterFromItemType in class MapperWrapperpublic SingleValueConverter getConverterFromAttribute(String attributeName)
getConverterFromAttribute(Class, String)getConverterFromAttribute in interface MappergetConverterFromAttribute in class MapperWrapperpublic SingleValueConverter getConverterFromAttribute(Class definedIn, String attribute)
MappergetConverterFromAttribute in interface MappergetConverterFromAttribute in class MapperWrapperdefinedIn - the field's parentattribute - the attribute namepublic void addAttributeFor(Field field)
field - the field itselfpublic void addAttributeFor(Class definedIn, String fieldName)
definedIn - the declaring class of the fieldfieldName - the name of the fieldIllegalArgumentException - if the field does not existCopyright © 2021 Internet2. All rights reserved.