|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.xstream.mapper.MapperWrapper
hudson.util.xstream.MapperDelegate
public class MapperDelegate
Works like MapperWrapper except it lets the subtype
change the delegation target.
Since XStream caches the result of mapper pipeline,
the kind of mutation and when you can do it is limited.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper |
|---|
com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping, com.thoughtworks.xstream.mapper.Mapper.Null |
| Field Summary | |
|---|---|
protected com.thoughtworks.xstream.mapper.Mapper |
delegate
|
| Constructor Summary | |
|---|---|
MapperDelegate(com.thoughtworks.xstream.mapper.Mapper delegate)
|
|
| Method Summary | |
|---|---|
String |
aliasForAttribute(Class definedIn,
String fieldName)
Deprecated. since 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. since 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 type,
String attribute)
Deprecated. since 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. since 1.3, use getConverterFromAttribute(Class, String, Class) |
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromItemType(Class type)
Deprecated. since 1.3, use getConverterFromItemType(String, Class, Class) |
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromItemType(String fieldName,
Class type)
Deprecated. since 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)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.thoughtworks.xstream.mapper.Mapper delegate
| Constructor Detail |
|---|
public MapperDelegate(com.thoughtworks.xstream.mapper.Mapper delegate)
| Method Detail |
|---|
public String serializedClass(Class type)
serializedClass in interface com.thoughtworks.xstream.mapper.MapperserializedClass in class com.thoughtworks.xstream.mapper.MapperWrapperpublic Class realClass(String elementName)
realClass in interface com.thoughtworks.xstream.mapper.MapperrealClass in class com.thoughtworks.xstream.mapper.MapperWrapper
public String serializedMember(Class type,
String memberName)
serializedMember in interface com.thoughtworks.xstream.mapper.MapperserializedMember in class com.thoughtworks.xstream.mapper.MapperWrapper
public String realMember(Class type,
String serialized)
realMember in interface com.thoughtworks.xstream.mapper.MapperrealMember in class com.thoughtworks.xstream.mapper.MapperWrapperpublic boolean isImmutableValueType(Class type)
isImmutableValueType in interface com.thoughtworks.xstream.mapper.MapperisImmutableValueType in class com.thoughtworks.xstream.mapper.MapperWrapperpublic Class defaultImplementationOf(Class type)
defaultImplementationOf in interface com.thoughtworks.xstream.mapper.MapperdefaultImplementationOf in class com.thoughtworks.xstream.mapper.MapperWrapperpublic String aliasForAttribute(String attribute)
aliasForAttribute in interface com.thoughtworks.xstream.mapper.MapperaliasForAttribute in class com.thoughtworks.xstream.mapper.MapperWrapperpublic String attributeForAlias(String alias)
attributeForAlias in interface com.thoughtworks.xstream.mapper.MapperattributeForAlias in class com.thoughtworks.xstream.mapper.MapperWrapperpublic String aliasForSystemAttribute(String attribute)
aliasForSystemAttribute in interface com.thoughtworks.xstream.mapper.MapperaliasForSystemAttribute in class com.thoughtworks.xstream.mapper.MapperWrapper
public String getFieldNameForItemTypeAndName(Class definedIn,
Class itemType,
String itemFieldName)
getFieldNameForItemTypeAndName in interface com.thoughtworks.xstream.mapper.MappergetFieldNameForItemTypeAndName in class com.thoughtworks.xstream.mapper.MapperWrapper
public Class getItemTypeForItemFieldName(Class definedIn,
String itemFieldName)
getItemTypeForItemFieldName in interface com.thoughtworks.xstream.mapper.MappergetItemTypeForItemFieldName in class com.thoughtworks.xstream.mapper.MapperWrapper
public com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType,
String fieldName)
getImplicitCollectionDefForFieldName in interface com.thoughtworks.xstream.mapper.MappergetImplicitCollectionDefForFieldName in class com.thoughtworks.xstream.mapper.MapperWrapper
public boolean shouldSerializeMember(Class definedIn,
String fieldName)
shouldSerializeMember in interface com.thoughtworks.xstream.mapper.MappershouldSerializeMember in class com.thoughtworks.xstream.mapper.MapperWrapper
public com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromItemType(String fieldName,
Class type)
getConverterFromItemType(String, Class, Class)
getConverterFromItemType in interface com.thoughtworks.xstream.mapper.MappergetConverterFromItemType in class com.thoughtworks.xstream.mapper.MapperWrapperpublic com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromItemType(Class type)
getConverterFromItemType(String, Class, Class)
getConverterFromItemType in interface com.thoughtworks.xstream.mapper.MappergetConverterFromItemType in class com.thoughtworks.xstream.mapper.MapperWrapperpublic com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromAttribute(String name)
getConverterFromAttribute(Class, String, Class)
getConverterFromAttribute in interface com.thoughtworks.xstream.mapper.MappergetConverterFromAttribute in class com.thoughtworks.xstream.mapper.MapperWrapper
public com.thoughtworks.xstream.converters.Converter getLocalConverter(Class definedIn,
String fieldName)
getLocalConverter in interface com.thoughtworks.xstream.mapper.MappergetLocalConverter in class com.thoughtworks.xstream.mapper.MapperWrapperpublic com.thoughtworks.xstream.mapper.Mapper lookupMapperOfType(Class type)
lookupMapperOfType in interface com.thoughtworks.xstream.mapper.MapperlookupMapperOfType in class com.thoughtworks.xstream.mapper.MapperWrapper
public com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromItemType(String fieldName,
Class type,
Class definedIn)
getConverterFromItemType in interface com.thoughtworks.xstream.mapper.MappergetConverterFromItemType in class com.thoughtworks.xstream.mapper.MapperWrapper
public String aliasForAttribute(Class definedIn,
String fieldName)
serializedMember(Class, String) and getConverterFromItemType(String, Class, Class)
aliasForAttribute in interface com.thoughtworks.xstream.mapper.MapperaliasForAttribute in class com.thoughtworks.xstream.mapper.MapperWrapper
public String attributeForAlias(Class definedIn,
String alias)
realMember(Class, String) and getConverterFromItemType(String, Class, Class)
attributeForAlias in interface com.thoughtworks.xstream.mapper.MapperattributeForAlias in class com.thoughtworks.xstream.mapper.MapperWrapper
public com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromAttribute(Class type,
String attribute)
getConverterFromAttribute(Class, String, Class)
getConverterFromAttribute in interface com.thoughtworks.xstream.mapper.MappergetConverterFromAttribute in class com.thoughtworks.xstream.mapper.MapperWrapper
public com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromAttribute(Class definedIn,
String attribute,
Class type)
getConverterFromAttribute in interface com.thoughtworks.xstream.mapper.MappergetConverterFromAttribute in class com.thoughtworks.xstream.mapper.MapperWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||