|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.SerTypeMapper
public final class SerTypeMapper
Type mapper for Joda-Bean serialization, used by serialization implementations.
| Method Summary | |
|---|---|
static Class<?> |
decodeType(String className,
JodaBeanSer settings,
String basePackage,
Map<String,Class<?>> knownTypes)
Decodes a class. |
static String |
encodeType(Class<?> cls,
JodaBeanSer settings,
String basePackage,
Map<Class<?>,String> knownTypes)
Encodes a basic class. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static String encodeType(Class<?> cls,
JodaBeanSer settings,
String basePackage,
Map<Class<?>,String> knownTypes)
This handles known simple types, like String, Integer or File, and prefixing. It also allows a map of message specific shorter forms.
cls - the class to encode, not nullsettings - the settings object, not nullbasePackage - the base package to use with trailing dot, null if noneknownTypes - the known types map, null if not using known type shortening
public static Class<?> decodeType(String className,
JodaBeanSer settings,
String basePackage,
Map<String,Class<?>> knownTypes)
throws ClassNotFoundException
This uses the context class loader. This handles known simple types, like String, Integer or File, and prefixing. It also allows a map of message specific shorter forms.
className - the class name, not nullsettings - the settings object, not nullbasePackage - the base package to use with trailing dot, null if noneknownTypes - the known types map, null if not using known type shortening
ClassNotFoundException - if not foundpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||