public class FieldAliasingMapper extends MapperWrapper
Mapper.ImplicitCollectionMapping, Mapper.Null
Modifier and Type | Field and Description |
---|---|
protected Map |
aliasToFieldMap |
protected Set |
fieldsToOmit |
protected Map |
fieldToAliasMap |
protected Set |
unknownFieldsToIgnore |
Constructor and Description |
---|
FieldAliasingMapper(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)
How a serialized member representation should be mapped back to a real member.
|
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, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, serializedClass
protected final Map fieldToAliasMap
protected final Map aliasToFieldMap
protected final Set fieldsToOmit
protected final Set unknownFieldsToIgnore
public FieldAliasingMapper(Mapper wrapped)
public void addFieldsToIgnore(Pattern pattern)
public String serializedMember(Class type, String memberName)
Mapper
serializedMember
in interface Mapper
serializedMember
in class MapperWrapper
public String realMember(Class type, String serialized)
Mapper
realMember
in interface Mapper
realMember
in class MapperWrapper
public boolean shouldSerializeMember(Class definedIn, String fieldName)
Mapper
shouldSerializeMember
in interface Mapper
shouldSerializeMember
in class MapperWrapper
Copyright © 2004–2016 XStream. All rights reserved.