To build up the functionality required, wrap this mapper with other mapper implementations.
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoaderReference | |
| private static String |
| Access | Constructor and Description |
|---|---|
| public | DefaultMapper(ClassLoaderReference
the reference to the classloader used by the XStream instance. classLoaderReference)Construct a DefaultMapper. |
| public | DefaultMapper(ClassLoader
the ClassLoader used by the XStream instance. classLoader)
Deprecated
As of 1.4.5 use
Construct a DefaultMapper.
DefaultMapper(ClassLoaderReference)
|
| classLoaderReference | back to summary |
|---|---|
| private final ClassLoaderReference classLoaderReference | |
| XSTREAM_PACKAGE_ROOT | back to summary |
|---|---|
| private static String XSTREAM_PACKAGE_ROOT | |
| DefaultMapper | back to summary |
|---|---|
| public DefaultMapper(ClassLoaderReference classLoaderReference) Construct a DefaultMapper.
| |
| DefaultMapper | back to summary |
|---|---|
| public DefaultMapper(ClassLoader classLoader)
Deprecated As of 1.4.5 use Construct a DefaultMapper.
| |
| aliasForAttribute | back to summary |
|---|---|
| public String aliasForAttribute(String attribute) Implements com. Doc from com. Get the alias for an attribute's name. | |
| aliasForAttribute | back to summary |
|---|---|
| public String aliasForAttribute(Class<T> definedIn, String fieldName) Implements com. Doc from com. Deprecated As of 1.3, use combination of Returns an alias for a single field defined in an specific type. | |
| aliasForSystemAttribute | back to summary |
|---|---|
| public String aliasForSystemAttribute(String attribute) Implements com. Doc from com. Get the alias for a system attribute's name. | |
| attributeForAlias | back to summary |
|---|---|
| public String attributeForAlias(String alias) Implements com. Doc from com. Get the attribute's name for an alias. | |
| attributeForAlias | back to summary |
|---|---|
| public String attributeForAlias(Class<T> definedIn, String alias) Implements com. Doc from com. Deprecated As of 1.3, use combination of Returns the field name for an aliased attribute. | |
| defaultImplementationOf | back to summary |
|---|---|
| public Class Implements com. | |
| getConverterFromAttribute | back to summary |
|---|---|
| public SingleValueConverter getConverterFromAttribute(String name) Implements com. Deprecated As of 1.3, use | |
| getConverterFromAttribute | back to summary |
|---|---|
| public SingleValueConverter getConverterFromAttribute(Class<T> definedIn, String attribute) Implements com. Doc from com. Deprecated As of 1.3.1, use Returns which converter to use for an specific attribute in a type. | |
| getConverterFromAttribute | back to summary |
|---|---|
| public SingleValueConverter getConverterFromAttribute(Class<T> definedIn, String attribute, Class<T> type) Implements com. Doc from com. Returns which converter to use for an specific attribute in a type. | |
| getConverterFromItemType | back to summary |
|---|---|
| public SingleValueConverter getConverterFromItemType(String fieldName, Class<T> type) Implements com. Deprecated As of 1.3, use | |
| getConverterFromItemType | back to summary |
|---|---|
| public SingleValueConverter getConverterFromItemType(Class<T> type) Implements com. Deprecated As of 1.3, use | |
| getConverterFromItemType | back to summary |
|---|---|
| public SingleValueConverter getConverterFromItemType(String fieldName, Class<T> type, Class<T> definedIn) Implements com. Doc from com. Returns a single value converter to be used in a specific field.
| |
| getFieldNameForItemTypeAndName | back to summary |
|---|---|
| public String getFieldNameForItemTypeAndName(Class<T> definedIn, Class<T> itemType, String itemFieldName) Implements com. Doc from com. Get the name of the field that acts as the default collection for an object, or return null if there is none. | |
| getImplicitCollectionDefForFieldName | back to summary |
|---|---|
| public Mapper. Implements com. | |
| getItemTypeForItemFieldName | back to summary |
|---|---|
| public Class Implements com. | |
| getLocalConverter | back to summary |
|---|---|
| public Converter getLocalConverter(Class<T> definedIn, String fieldName) Implements com. | |
| isIgnoredElement | back to summary |
|---|---|
| public boolean isIgnoredElement(String name) Implements com. Doc from com. Whether this name can be ignored. | |
| isImmutableValueType | back to summary |
|---|---|
| public boolean isImmutableValueType(Class<T> type) Implements com. Doc from com. 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. | |
| isReferenceable | back to summary |
|---|---|
| public boolean isReferenceable(final Class<T> type) Implements com. Doc from com. Whether this type is referenceable in a stream. | |
| lookupMapperOfType | back to summary |
|---|---|
| public Mapper lookupMapperOfType(Class<T> type) Implements com. | |
| lookupName | back to summary |
|---|---|
| public String lookupName(Class<T> type) | |
| lookupType | back to summary |
|---|---|
| public Class | |
| realClass | back to summary |
|---|---|
| public Class Implements com. Doc from com. How a serialized class representation should be mapped back to a real class. | |
| realMember | back to summary |
|---|---|
| public String realMember(Class<T> type, String serialized) Implements com. Doc from com. How a serialized member representation should be mapped back to a real member. | |
| serializedClass | back to summary |
|---|---|
| public String serializedClass(Class<T> type) Implements com. Doc from com. How a class name should be represented in its serialized form. | |
| serializedMember | back to summary |
|---|---|
| public String serializedMember(Class<T> type, String memberName) Implements com. Doc from com. How a class member should be represented in its serialized form. | |
| shouldSerializeMember | back to summary |
|---|---|
| public boolean shouldSerializeMember(Class<T> definedIn, String fieldName) Implements com. Doc from com. Determine whether a specific member should be serialized. | |