| java.lang.Object com.thoughtworks.xstream.mapper.MapperWrapper com.thoughtworks.xstream.mapper.AttributeMapper
All known Subclasses: com.thoughtworks.xstream.mapper.EnumMapper,
AttributeMapper | public class AttributeMapper extends MapperWrapper (Code) | | Mapper that allows the usage of attributes for fields and corresponding
types or specified arbitrary types. It is responsible for the lookup of the
SingleValueConverter for item types and attribute names.
author: Paul Hammant author: Ian Cartwright author: Jörg Schaible author: Mauro Talevi author: Guilherme Silveira since: 1.2 |
addAttributeFor | public void addAttributeFor(Class type)(Code) | | |
addAttributeFor | public void addAttributeFor(Field field)(Code) | | Tells this mapper to use an attribute for this field.
Parameters: field - the field itself since: 1.2.2 |
addAttributeFor | public void addAttributeFor(Class definedIn, String fieldName)(Code) | | Tells this mapper to use an attribute for this field.
Parameters: definedIn - the declaring class of the field Parameters: fieldName - the name of the field throws: IllegalArgumentException - if the field does not exist since: 1.3 |
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)
|
|
|