|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.xstream.mapper.MapperWrapper flattree.xstream.AttributePreferringMapper
public class AttributePreferringMapper
A MapperWrapper
which preferres to use attributes if a suitable
SingleValueConverter
is available.
getConverterFromItemType(String, Class, Class)
,
getConverterFromAttribute(Class, String, Class)
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 |
Constructor Summary | |
---|---|
AttributePreferringMapper(com.thoughtworks.xstream.mapper.MapperWrapper next,
com.thoughtworks.xstream.converters.ConverterLookup lookup)
|
Method Summary | |
---|---|
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromAttribute(Class definedIn,
String attribute,
Class type)
|
com.thoughtworks.xstream.converters.SingleValueConverter |
getConverterFromItemType(String fieldName,
Class type,
Class definedIn)
|
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper |
---|
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributePreferringMapper(com.thoughtworks.xstream.mapper.MapperWrapper next, com.thoughtworks.xstream.converters.ConverterLookup lookup)
Method Detail |
---|
public com.thoughtworks.xstream.converters.SingleValueConverter getConverterFromItemType(String fieldName, Class type, Class definedIn)
getConverterFromItemType
in interface com.thoughtworks.xstream.mapper.Mapper
getConverterFromItemType
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.Mapper
getConverterFromAttribute
in class com.thoughtworks.xstream.mapper.MapperWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |