public class FieldAliasingMapper extends com.thoughtworks.xstream.mapper.MapperWrapper
| Modifier and Type | Field and Description |
|---|---|
protected Map |
aliasToFieldMap |
protected Set |
fieldsToOmit |
protected Map |
fieldToAliasMap |
protected Set |
unknownFieldsToIgnore |
| Constructor and Description |
|---|
FieldAliasingMapper(com.thoughtworks.xstream.mapper.Mapper wrapped) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldAlias(String alias,
Class type,
String fieldName) |
void |
addFieldsToIgnore(Pattern pattern) |
void |
omitField(Class definedIn,
String fieldName) |
String |
realMember(Class type,
String serialized) |
String |
serializedMember(Class type,
String memberName) |
boolean |
shouldSerializeMember(Class definedIn,
String fieldName) |
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, realClass, serializedClassprotected final Map fieldToAliasMap
protected final Map aliasToFieldMap
protected final Set fieldsToOmit
protected final Set unknownFieldsToIgnore
public FieldAliasingMapper(com.thoughtworks.xstream.mapper.Mapper wrapped)
public void addFieldAlias(String alias, Class type, String fieldName)
public void addFieldsToIgnore(Pattern pattern)
public String serializedMember(Class type, String memberName)
serializedMember in interface com.thoughtworks.xstream.mapper.MapperserializedMember in class com.thoughtworks.xstream.mapper.MapperWrapperpublic String realMember(Class type, String serialized)
realMember in interface com.thoughtworks.xstream.mapper.MapperrealMember in class com.thoughtworks.xstream.mapper.MapperWrapperpublic boolean shouldSerializeMember(Class definedIn, String fieldName)
shouldSerializeMember in interface com.thoughtworks.xstream.mapper.MappershouldSerializeMember in class com.thoughtworks.xstream.mapper.MapperWrapperCopyright © 2005–2017. All rights reserved.