public class LocalConversionMapper extends MapperWrapper
Mapper.ImplicitCollectionMapping, Mapper.Null
Constructor and Description |
---|
LocalConversionMapper(Mapper wrapped)
Constructs a LocalConversionMapper.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Converter |
getLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName) |
void |
registerLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName,
Converter converter) |
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember
public LocalConversionMapper(Mapper wrapped)
wrapped
- public void registerLocalConverter(java.lang.Class definedIn, java.lang.String fieldName, Converter converter)
public Converter getLocalConverter(java.lang.Class definedIn, java.lang.String fieldName)
getLocalConverter
in interface Mapper
getLocalConverter
in class MapperWrapper
public SingleValueConverter getConverterFromAttribute(java.lang.Class definedIn, java.lang.String attribute, java.lang.Class type)
Mapper
getConverterFromAttribute
in interface Mapper
getConverterFromAttribute
in class MapperWrapper
definedIn
- the field's parentattribute
- the attribute nametype
- the type the converter should createpublic SingleValueConverter getConverterFromItemType(java.lang.String fieldName, java.lang.Class type, java.lang.Class definedIn)
Mapper
getConverterFromItemType
in interface Mapper
getConverterFromItemType
in class MapperWrapper
fieldName
- the field nametype
- the field typedefinedIn
- the type which defines this fieldCopyright © 2004–2024 XStream. All rights reserved.