public class FieldAliasingMapper extends MapperWrapper
Mapper.ImplicitCollectionMapping, Mapper.Null
Modifier and Type | Field and Description |
---|---|
protected Map |
aliasToFieldMap |
protected Map |
fieldToAliasMap |
Constructor and Description |
---|
FieldAliasingMapper(Mapper wrapped) |
Modifier and Type | Method and Description |
---|---|
void |
addFieldAlias(String alias,
Class type,
String fieldName) |
void |
addFieldsToIgnore(Pattern pattern)
Deprecated.
As of 1.4.9 use
ElementIgnoringMapper.addElementsToIgnore(Pattern) . |
void |
omitField(Class definedIn,
String fieldName)
Deprecated.
As of 1.4.9 use
ElementIgnoringMapper.omitField(Class, String) . |
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.
|
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, serializedClass, shouldSerializeMember
protected final Map fieldToAliasMap
protected final Map aliasToFieldMap
public FieldAliasingMapper(Mapper wrapped)
public void addFieldsToIgnore(Pattern pattern)
ElementIgnoringMapper.addElementsToIgnore(Pattern)
.public void omitField(Class definedIn, String fieldName)
ElementIgnoringMapper.omitField(Class, String)
.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
Copyright © 2004–2017 XStream. All rights reserved.