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, serializedClass
protected 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.Mapper
serializedMember
in class com.thoughtworks.xstream.mapper.MapperWrapper
public String realMember(Class type, String serialized)
realMember
in interface com.thoughtworks.xstream.mapper.Mapper
realMember
in class com.thoughtworks.xstream.mapper.MapperWrapper
public boolean shouldSerializeMember(Class definedIn, String fieldName)
shouldSerializeMember
in interface com.thoughtworks.xstream.mapper.Mapper
shouldSerializeMember
in class com.thoughtworks.xstream.mapper.MapperWrapper
Copyright © 2005–2017. All rights reserved.