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).
|
boolean |
isReferenceable(Class type)
Whether this type is referenceable in a stream.
|
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, isIgnoredElement, lookupMapperOfType, realClass, realMember, serializedMember, shouldSerializeMember
@Deprecated public EnumMapper(Mapper wrapped, ConverterLookup lookup)
EnumMapper(Mapper)
public EnumMapper(Mapper wrapped)
public String serializedClass(Class type)
Mapper
serializedClass
in interface Mapper
serializedClass
in class MapperWrapper
public boolean isImmutableValueType(Class type)
Mapper
isImmutableValueType
in interface Mapper
isImmutableValueType
in class MapperWrapper
public boolean isReferenceable(Class type)
Mapper
isReferenceable
in interface Mapper
isReferenceable
in class MapperWrapper
public 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 fieldpublic 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 void flushCache()
flushCache
in interface Caching
Copyright © 2004–2017 XStream. All rights reserved.