| java.lang.Object com.thoughtworks.xstream.mapper.MapperWrapper com.thoughtworks.xstream.mapper.AttributeMapper com.thoughtworks.xstream.mapper.EnumMapper
EnumMapper | public class EnumMapper extends AttributeMapper (Code) | | Mapper that handles the special case of polymorphic enums in Java 1.5. This renames MyEnum$1
to MyEnum making it less bloaty in the XML and avoiding the need for an alias per enum value
to be specified. Additionally every enum is treated automatically as immutable type and can
be written as attribute.
author: Joe Walnes author: Jörg Schaible |
EnumMapper | public EnumMapper(ClassMapper wrapped)(Code) | | #EnumMapper(Mapper, ConverterLookup)) |
isImmutableValueType | public boolean isImmutableValueType(Class type)(Code) | | |
Methods inherited from com.thoughtworks.xstream.mapper.MapperWrapper | public String aliasForAttribute(String attribute)(Code)(Java Doc) public String aliasForAttribute(Class definedIn, String fieldName)(Code)(Java Doc) public String attributeForAlias(String alias)(Code)(Java Doc) public String attributeForAlias(Class definedIn, String alias)(Code)(Java Doc) public String attributeForClassDefiningField()(Code)(Java Doc) public String attributeForEnumType()(Code)(Java Doc) public String attributeForImplementationClass()(Code)(Java Doc) public String attributeForReadResolveField()(Code)(Java Doc) public Class defaultImplementationOf(Class type)(Code)(Java Doc) public SingleValueConverter getConverterFromAttribute(String name)(Code)(Java Doc) public SingleValueConverter getConverterFromAttribute(Class type, String attribute)(Code)(Java Doc) public SingleValueConverter getConverterFromItemType(String fieldName, Class type)(Code)(Java Doc) public SingleValueConverter getConverterFromItemType(Class type)(Code)(Java Doc) public SingleValueConverter getConverterFromItemType(String fieldName, Class type, Class definedIn)(Code)(Java Doc) public String getFieldNameForItemTypeAndName(Class definedIn, Class itemType, String itemFieldName)(Code)(Java Doc) public ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType, String fieldName)(Code)(Java Doc) public Class getItemTypeForItemFieldName(Class definedIn, String itemFieldName)(Code)(Java Doc) public Converter getLocalConverter(Class definedIn, String fieldName)(Code)(Java Doc) public boolean isImmutableValueType(Class type)(Code)(Java Doc) public Mapper lookupMapperOfType(Class type)(Code)(Java Doc) public Class realClass(String elementName)(Code)(Java Doc) public String realMember(Class type, String serialized)(Code)(Java Doc) public String serializedClass(Class type)(Code)(Java Doc) public String serializedMember(Class type, String memberName)(Code)(Java Doc) public boolean shouldSerializeMember(Class definedIn, String fieldName)(Code)(Java Doc)
|
|
|