public class ClassAliasingMapper extends MapperWrapper
Mapper.ImplicitCollectionMapping, Mapper.Null| Modifier and Type | Field and Description |
|---|---|
protected Map |
classToName |
protected Map |
nameToType |
protected Map |
typeToName |
| Constructor and Description |
|---|
ClassAliasingMapper(ClassMapper wrapped)
Deprecated.
since 1.2, use
ClassAliasingMapper(Mapper) |
ClassAliasingMapper(Mapper wrapped) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClassAlias(String name,
Class type) |
void |
addClassAttributeAlias(String name,
Class type)
Deprecated.
since 1.3, method was a leftover of an old implementation
|
void |
addTypeAlias(String name,
Class type) |
boolean |
aliasIsAttribute(String name) |
boolean |
itemTypeAsAttribute(Class clazz) |
Class |
realClass(String elementName)
How a serialized class representation should be mapped back to a real class.
|
String |
serializedClass(Class type)
How a class name should be represented in its serialized form.
|
aliasForAttribute, aliasForAttribute, attributeForAlias, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, realMember, serializedMember, shouldSerializeMemberprotected final Map typeToName
protected final Map classToName
protected transient Map nameToType
public ClassAliasingMapper(Mapper wrapped)
public ClassAliasingMapper(ClassMapper wrapped)
ClassAliasingMapper(Mapper)public void addClassAttributeAlias(String name, Class type)
public String serializedClass(Class type)
MapperserializedClass in interface MapperserializedClass in class MapperWrapperpublic Class realClass(String elementName)
MapperrealClass in interface MapperrealClass in class MapperWrapperpublic boolean itemTypeAsAttribute(Class clazz)
public boolean aliasIsAttribute(String name)
Copyright © 2020 Internet2. All rights reserved.