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(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.
|
boolean |
isImmutableValueType(java.lang.Class type)
Whether this type is a simple immutable value (int, boolean, String, URL, etc).
|
boolean |
isReferenceable(java.lang.Class type)
Whether this type is referenceable in a stream.
|
java.lang.String |
serializedClass(java.lang.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 java.lang.String serializedClass(java.lang.Class type)
Mapper
serializedClass
in interface Mapper
serializedClass
in class MapperWrapper
public boolean isImmutableValueType(java.lang.Class type)
Mapper
isImmutableValueType
in interface Mapper
isImmutableValueType
in class MapperWrapper
public boolean isReferenceable(java.lang.Class type)
Mapper
isReferenceable
in interface Mapper
isReferenceable
in class MapperWrapper
public 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 fieldpublic 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 void flushCache()
flushCache
in interface Caching
Copyright © 2004–2024 XStream. All rights reserved.