| com.thoughtworks.xstream.mapper.Mapper
All known Subclasses: com.thoughtworks.xstream.mapper.DefaultMapper, com.thoughtworks.xstream.mapper.MapperWrapper,
Mapper | public interface Mapper (Code) | | |
Inner Class :interface ImplicitCollectionMapping | |
Method Summary | |
String | aliasForAttribute(String attribute) Get the alias for an attrbute's name. | String | aliasForAttribute(Class definedIn, String fieldName) Returns an alias for a single field defined in an specific type. | String | attributeForAlias(String alias) Get the attribut's name for an alias. | String | attributeForAlias(Class definedIn, String alias) Returns the field name for an aliased attribute. | String | attributeForClassDefiningField() | String | attributeForEnumType() | String | attributeForImplementationClass() | String | attributeForReadResolveField() | Class | defaultImplementationOf(Class type) | SingleValueConverter | getConverterFromAttribute(String name) | SingleValueConverter | getConverterFromAttribute(Class definedIn, String attribute) Returns which converter to use for an specific attribute in a type. | SingleValueConverter | getConverterFromItemType(String fieldName, Class type) | SingleValueConverter | getConverterFromItemType(Class type) | SingleValueConverter | getConverterFromItemType(String fieldName, Class type, Class definedIn) Returns a single value converter to be used in a specific field. | String | getFieldNameForItemTypeAndName(Class definedIn, Class itemType, String itemFieldName) Get the name of the field that acts as the default collection for an object, or return null if there is none. | ImplicitCollectionMapping | getImplicitCollectionDefForFieldName(Class itemType, String fieldName) | Class | getItemTypeForItemFieldName(Class definedIn, String itemFieldName) | Converter | getLocalConverter(Class definedIn, String fieldName) | boolean | isImmutableValueType(Class type) Whether this type is a simple immutable value (int, boolean, String, URL, etc. | Mapper | lookupMapperOfType(Class type) | Class | realClass(String elementName) How a serialized class representation should be mapped back to a real class. | String | realMember(Class type, String serialized) How a serialized member representation should be mapped back to a real member. | String | serializedClass(Class type) How a class name should be represented in its serialized form. | String | serializedMember(Class type, String memberName) How a class member should be represented in its serialized form. | boolean | shouldSerializeMember(Class definedIn, String fieldName) Determine whether a specific member should be serialized. |
aliasForAttribute | String aliasForAttribute(String attribute)(Code) | | Get the alias for an attrbute's name.
Parameters: attribute - the attribute the alias since: 1.2 |
attributeForAlias | String attributeForAlias(String alias)(Code) | | Get the attribut's name for an alias.
Parameters: alias - the alias the attribute's name since: 1.2 |
attributeForClassDefiningField | String attributeForClassDefiningField()(Code) | | |
attributeForImplementationClass | String attributeForImplementationClass()(Code) | | |
attributeForReadResolveField | String attributeForReadResolveField()(Code) | | |
getConverterFromAttribute | SingleValueConverter getConverterFromAttribute(Class definedIn, String attribute)(Code) | | Returns which converter to use for an specific attribute in a type.
Parameters: definedIn - the field's parent Parameters: attribute - the attribute name since: 1.2.2 |
getConverterFromItemType | SingleValueConverter getConverterFromItemType(String fieldName, Class type, Class definedIn)(Code) | | Returns a single value converter to be used in a specific field.
Parameters: fieldName - the field name Parameters: type - the field type Parameters: definedIn - the type which defines this field a SingleValueConverter or null if there no such converter should be used for thisfield. since: 1.2.2 |
getFieldNameForItemTypeAndName | String getFieldNameForItemTypeAndName(Class definedIn, Class itemType, String itemFieldName)(Code) | | Get the name of the field that acts as the default collection for an object, or return null if there is none.
Parameters: definedIn - owning type Parameters: itemType - item type Parameters: itemFieldName - optional item element name |
getImplicitCollectionDefForFieldName | ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType, String fieldName)(Code) | | |
isImmutableValueType | boolean isImmutableValueType(Class type)(Code) | | Whether this type is a simple immutable value (int, boolean, String, URL, etc.
Immutable types will be repeatedly written in the serialized stream, instead of using object references.
|
realClass | Class realClass(String elementName)(Code) | | How a serialized class representation should be mapped back to a real class.
|
realMember | String realMember(Class type, String serialized)(Code) | | How a serialized member representation should be mapped back to a real member.
|
serializedClass | String serializedClass(Class type)(Code) | | How a class name should be represented in its serialized form.
|
serializedMember | String serializedMember(Class type, String memberName)(Code) | | How a class member should be represented in its serialized form.
|
shouldSerializeMember | boolean shouldSerializeMember(Class definedIn, String fieldName)(Code) | | Determine whether a specific member should be serialized.
since: 1.1.3 |
|
|