public class EnumMapper extends MapperWrapper implements Caching
Mapper.ImplicitCollectionMapping, Mapper.Null| Constructor and Description |
|---|
EnumMapper(Mapper wrapped) |
EnumMapper(Mapper wrapped,
ConverterLookup lookup)
Deprecated.
As of 1.3.1, use
EnumMapper(Mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushCache() |
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.
|
boolean |
isImmutableValueType(Class type)
Whether this type is a simple immutable value (int, boolean, String, URL, etc.
|
String |
serializedClass(Class type)
How a class name should be represented in its serialized form.
|
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, lookupMapperOfType, realClass, realMember, serializedMember, shouldSerializeMember@Deprecated public EnumMapper(Mapper wrapped, ConverterLookup lookup)
EnumMapper(Mapper)public EnumMapper(Mapper wrapped)
public String serializedClass(Class type)
MapperserializedClass in interface MapperserializedClass in class MapperWrapperpublic boolean isImmutableValueType(Class type)
MapperisImmutableValueType in interface MapperisImmutableValueType 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 getConverterFromAttribute(Class definedIn, String attribute, Class type)
MappergetConverterFromAttribute in interface MappergetConverterFromAttribute in class MapperWrapperdefinedIn - the field's parentattribute - the attribute nametype - the type the converter should createpublic void flushCache()
flushCache in interface CachingCopyright © 2004-2014 XStream. All Rights Reserved.