java.lang.Object | ||
↳ | com.thoughtworks.xstream.mapper.MapperWrapper | |
↳ | com.thoughtworks.xstream.mapper.AttributeMapper |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
since 1.3
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Tells this mapper to use an attribute for this field.
| |||||||||||
Tells this mapper to use an attribute for this field.
| |||||||||||
This method is deprecated.
since 1.3, use
getConverterFromAttribute(Class, String, Class)
| |||||||||||
Returns which converter to use for an specific attribute in a type.
| |||||||||||
This method is deprecated.
since 1.3.1, use
getConverterFromAttribute(Class, String, Class)
| |||||||||||
This method is deprecated.
since 1.3, use
getConverterFromItemType(String, Class, Class)
| |||||||||||
This method is deprecated.
since 1.3, use
getConverterFromItemType(String, Class, Class)
| |||||||||||
Returns a single value converter to be used in a specific field.
| |||||||||||
This method is deprecated.
since 1.3
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.thoughtworks.xstream.mapper.MapperWrapper
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.thoughtworks.xstream.mapper.Mapper
|
Tells this mapper to use an attribute for this field.
field | the field itself |
---|
Tells this mapper to use an attribute for this field.
definedIn | the declaring class of the field |
---|---|
fieldName | the name of the field |
IllegalArgumentException | if the field does not exist |
---|
Returns which converter to use for an specific attribute in a type.
definedIn | the field's parent |
---|---|
attribute | the attribute name |
type | the type the converter should create |
This method is deprecated.
since 1.3.1, use getConverterFromAttribute(Class, String, Class)
Returns which converter to use for an specific attribute in a type.
definedIn | the field's parent |
---|---|
attribute | the attribute name |
Returns a single value converter to be used in a specific field.
fieldName | the field name |
---|---|
type | the field type |
definedIn | the type which defines this field |
This method is deprecated.
since 1.3