public class DefaultMapper extends Object implements com.thoughtworks.xstream.mapper.Mapper
| Constructor and Description |
|---|
DefaultMapper(XStreamClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
String |
aliasForAttribute(Class definedIn,
String fieldName)
Deprecated.
As of 1.3, use combination of
serializedMember(Class, String) and getConverterFromItemType(String, Class, Class) |
String |
aliasForAttribute(String attribute) |
String |
aliasForSystemAttribute(String attribute) |
String |
attributeForAlias(Class definedIn,
String alias)
Deprecated.
As of 1.3, use combination of
realMember(Class, String) and getConverterFromItemType(String, Class, Class) |
String |
attributeForAlias(String alias) |
Class |
defaultImplementationOf(Class type) |
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromAttribute(Class definedIn,
String attribute)
Deprecated.
As of 1.3.1, use
getConverterFromAttribute(Class, String, Class) |
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromAttribute(Class definedIn,
String attribute,
Class type) |
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromAttribute(String name)
Deprecated.
As of 1.3, use
getConverterFromAttribute(Class, String, Class) |
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromItemType(Class type)
Deprecated.
As of 1.3, use
getConverterFromItemType(String, Class, Class) |
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromItemType(String fieldName,
Class type)
Deprecated.
As of 1.3, use
getConverterFromItemType(String, Class, Class) |
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromItemType(String fieldName,
Class type,
Class definedIn) |
String |
getFieldNameForItemTypeAndName(Class definedIn,
Class itemType,
String itemFieldName) |
com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping |
getImplicitCollectionDefForFieldName(Class itemType,
String fieldName) |
Class |
getItemTypeForItemFieldName(Class definedIn,
String itemFieldName) |
com.thoughtworks.xstream.converters.Converter |
getLocalConverter(Class definedIn,
String fieldName) |
boolean |
isImmutableValueType(Class type) |
com.thoughtworks.xstream.mapper.Mapper |
lookupMapperOfType(Class type) |
String |
lookupName(Class type) |
Class |
lookupType(String elementName) |
Class |
realClass(String elementName) |
String |
realMember(Class type,
String serialized) |
String |
serializedClass(Class type) |
String |
serializedMember(Class type,
String memberName) |
boolean |
shouldSerializeMember(Class definedIn,
String fieldName) |
public DefaultMapper(XStreamClassLoader classLoader)
public String serializedClass(Class type)
serializedClass in interface com.thoughtworks.xstream.mapper.Mapperpublic Class realClass(String elementName)
realClass in interface com.thoughtworks.xstream.mapper.Mapperpublic Class defaultImplementationOf(Class type)
defaultImplementationOf in interface com.thoughtworks.xstream.mapper.Mapperpublic String aliasForAttribute(String attribute)
aliasForAttribute in interface com.thoughtworks.xstream.mapper.Mapperpublic String attributeForAlias(String alias)
attributeForAlias in interface com.thoughtworks.xstream.mapper.Mapperpublic String aliasForSystemAttribute(String attribute)
aliasForSystemAttribute in interface com.thoughtworks.xstream.mapper.Mapperpublic boolean isImmutableValueType(Class type)
isImmutableValueType in interface com.thoughtworks.xstream.mapper.Mapperpublic String getFieldNameForItemTypeAndName(Class definedIn, Class itemType, String itemFieldName)
getFieldNameForItemTypeAndName in interface com.thoughtworks.xstream.mapper.Mapperpublic Class getItemTypeForItemFieldName(Class definedIn, String itemFieldName)
getItemTypeForItemFieldName in interface com.thoughtworks.xstream.mapper.Mapperpublic com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType, String fieldName)
getImplicitCollectionDefForFieldName in interface com.thoughtworks.xstream.mapper.Mapperpublic boolean shouldSerializeMember(Class definedIn, String fieldName)
shouldSerializeMember in interface com.thoughtworks.xstream.mapper.Mapperpublic String serializedMember(Class type, String memberName)
serializedMember in interface com.thoughtworks.xstream.mapper.Mapperpublic String realMember(Class type, String serialized)
realMember in interface com.thoughtworks.xstream.mapper.Mapperpublic com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromAttribute(String name)
getConverterFromAttribute(Class, String, Class)getConverterFromAttribute in interface com.thoughtworks.xstream.mapper.Mapperpublic com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromItemType(String fieldName, Class type)
getConverterFromItemType(String, Class, Class)getConverterFromItemType in interface com.thoughtworks.xstream.mapper.Mapperpublic com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromItemType(Class type)
getConverterFromItemType(String, Class, Class)getConverterFromItemType in interface com.thoughtworks.xstream.mapper.Mapperpublic com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromItemType(String fieldName, Class type, Class definedIn)
getConverterFromItemType in interface com.thoughtworks.xstream.mapper.Mapperpublic com.thoughtworks.xstream.converters.Converter getLocalConverter(Class definedIn, String fieldName)
getLocalConverter in interface com.thoughtworks.xstream.mapper.Mapperpublic com.thoughtworks.xstream.mapper.Mapper lookupMapperOfType(Class type)
lookupMapperOfType in interface com.thoughtworks.xstream.mapper.Mapperpublic String aliasForAttribute(Class definedIn, String fieldName)
serializedMember(Class, String) and getConverterFromItemType(String, Class, Class)aliasForAttribute in interface com.thoughtworks.xstream.mapper.Mapperpublic String attributeForAlias(Class definedIn, String alias)
realMember(Class, String) and getConverterFromItemType(String, Class, Class)attributeForAlias in interface com.thoughtworks.xstream.mapper.Mapperpublic com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromAttribute(Class definedIn, String attribute)
getConverterFromAttribute(Class, String, Class)getConverterFromAttribute in interface com.thoughtworks.xstream.mapper.MapperCopyright © 2013. All Rights Reserved.