public class PackageAliasingMapper extends MapperWrapper implements java.io.Serializable
Mapper.ImplicitCollectionMapping, Mapper.Null
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
nameToPackage |
private java.util.Map |
packageToName |
private static java.util.Comparator |
REVERSE |
Constructor and Description |
---|
PackageAliasingMapper(Mapper wrapped) |
Modifier and Type | Method and Description |
---|---|
void |
addPackageAlias(java.lang.String name,
java.lang.String pkg) |
private void |
readObject(java.io.ObjectInputStream in) |
java.lang.Class |
realClass(java.lang.String elementName)
How a serialized class representation should be mapped back to a real class.
|
java.lang.String |
serializedClass(java.lang.Class type)
How a class name should be represented in its serialized form.
|
private void |
writeObject(java.io.ObjectOutputStream out) |
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, isReferenceable, lookupMapperOfType, realMember, serializedMember, shouldSerializeMember
private static final java.util.Comparator REVERSE
private java.util.Map packageToName
protected transient java.util.Map nameToPackage
public PackageAliasingMapper(Mapper wrapped)
public void addPackageAlias(java.lang.String name, java.lang.String pkg)
public java.lang.String serializedClass(java.lang.Class type)
Mapper
serializedClass
in interface Mapper
serializedClass
in class MapperWrapper
public java.lang.Class realClass(java.lang.String elementName)
Mapper
realClass
in interface Mapper
realClass
in class MapperWrapper
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException