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(Class definedIn,
String attribute,
Class type)
Returns which converter to use for an specific attribute in a type.
|
SingleValueConverter |
getConverterFromItemType(String fieldName,
Class type,
Class definedIn)
Returns a single value converter to be used in a specific field.
|
Converter |
getLocalConverter(Class definedIn,
String fieldName) |
void |
registerLocalConverter(Class definedIn,
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(Class definedIn, String fieldName, Converter converter)
public Converter getLocalConverter(Class definedIn, String fieldName)
getLocalConverter
in interface Mapper
getLocalConverter
in class MapperWrapper
public SingleValueConverter getConverterFromAttribute(Class definedIn, String attribute, 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(String fieldName, Class type, 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–2017 XStream. All rights reserved.