com.thoughtworks.xstream.mapper
Class MapperWrapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
- All Implemented Interfaces:
- ClassMapper, com.thoughtworks.xstream.mapper.Mapper
- Direct Known Subclasses:
- DefaultMapper, RestrictedClassMapper
public abstract class MapperWrapper
- extends Object
- implements ClassMapper
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper |
com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping |
Method Summary |
void |
alias(String elementName,
Class type,
Class defaultImplementation)
Deprecated. As of 1.1.1, use AliasingMapper.addAlias(String, Class) for creating an alias and
DefaultImplementationsMapper#addDefaultImplementation(Class, Class) for specifiny a
default implementation. |
String |
attributeForClassDefiningField()
|
String |
attributeForImplementationClass()
|
String |
attributeForReadResolveField()
|
Class |
defaultImplementationOf(Class type)
|
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)
|
Class |
getOverrideRootType()
|
boolean |
isImmutableValueType(Class type)
|
Class |
lookupDefaultType(Class baseType)
Deprecated. As of 1.1.1, use defaultImplementationOf(Class) |
String |
lookupName(Class type)
|
Class |
lookupType(String elementName)
|
String |
mapNameFromXML(String xmlName)
|
String |
mapNameToXML(String javaName)
|
Class |
realClass(String elementName)
|
String |
realMember(Class type,
String serialized)
|
String |
serializedClass(Class type)
|
String |
serializedMember(Class type,
String memberName)
|
void |
setOverrideRootType(Class type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapperWrapper
public MapperWrapper(ClassMapper wrapped)
serializedClass
public String serializedClass(Class type)
- Specified by:
serializedClass
in interface com.thoughtworks.xstream.mapper.Mapper
realClass
public Class realClass(String elementName)
- Specified by:
realClass
in interface com.thoughtworks.xstream.mapper.Mapper
serializedMember
public String serializedMember(Class type,
String memberName)
- Specified by:
serializedMember
in interface com.thoughtworks.xstream.mapper.Mapper
realMember
public String realMember(Class type,
String serialized)
- Specified by:
realMember
in interface com.thoughtworks.xstream.mapper.Mapper
mapNameFromXML
public String mapNameFromXML(String xmlName)
- Specified by:
mapNameFromXML
in interface ClassMapper
mapNameToXML
public String mapNameToXML(String javaName)
- Specified by:
mapNameToXML
in interface ClassMapper
isImmutableValueType
public boolean isImmutableValueType(Class type)
- Specified by:
isImmutableValueType
in interface com.thoughtworks.xstream.mapper.Mapper
defaultImplementationOf
public Class defaultImplementationOf(Class type)
- Specified by:
defaultImplementationOf
in interface com.thoughtworks.xstream.mapper.Mapper
attributeForClassDefiningField
public String attributeForClassDefiningField()
- Specified by:
attributeForClassDefiningField
in interface com.thoughtworks.xstream.mapper.Mapper
attributeForImplementationClass
public String attributeForImplementationClass()
- Specified by:
attributeForImplementationClass
in interface com.thoughtworks.xstream.mapper.Mapper
attributeForReadResolveField
public String attributeForReadResolveField()
- Specified by:
attributeForReadResolveField
in interface com.thoughtworks.xstream.mapper.Mapper
getFieldNameForItemTypeAndName
public String getFieldNameForItemTypeAndName(Class definedIn,
Class itemType,
String itemFieldName)
- Specified by:
getFieldNameForItemTypeAndName
in interface com.thoughtworks.xstream.mapper.Mapper
getItemTypeForItemFieldName
public Class getItemTypeForItemFieldName(Class definedIn,
String itemFieldName)
- Specified by:
getItemTypeForItemFieldName
in interface com.thoughtworks.xstream.mapper.Mapper
getImplicitCollectionDefForFieldName
public com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType,
String fieldName)
- Specified by:
getImplicitCollectionDefForFieldName
in interface com.thoughtworks.xstream.mapper.Mapper
lookupDefaultType
public Class lookupDefaultType(Class baseType)
- Deprecated. As of 1.1.1, use
defaultImplementationOf(Class)
- Specified by:
lookupDefaultType
in interface ClassMapper
lookupName
public String lookupName(Class type)
- Specified by:
lookupName
in interface ClassMapper
lookupType
public Class lookupType(String elementName)
- Specified by:
lookupType
in interface ClassMapper
alias
public void alias(String elementName,
Class type,
Class defaultImplementation)
- Deprecated. As of 1.1.1, use
AliasingMapper.addAlias(String, Class)
for creating an alias and
DefaultImplementationsMapper#addDefaultImplementation(Class, Class)
for specifiny a
default implementation.
- Specified by:
alias
in interface ClassMapper
getOverrideRootType
public Class getOverrideRootType()
- Specified by:
getOverrideRootType
in interface ClassMapper
setOverrideRootType
public void setOverrideRootType(Class type)
- Specified by:
setOverrideRootType
in interface ClassMapper