public class DsonTypeMapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DateFormat |
dateTimeInstance |
protected HashMap<String,String> |
impliedMap |
protected HashMap<Class,String> |
reverseTypeMap |
protected HashMap<String,Class> |
typeMap |
| Constructor and Description |
|---|
DsonTypeMapper() |
| Modifier and Type | Method and Description |
|---|---|
Object |
coerceReading(Class type,
Object readObject)
map given Object to a target type.
|
Object |
coerceWriting(Object objectValue)
map given object found in the object graph to another type representation.
|
DateFormat |
getDateTimeInstance() |
String |
getImpliedAttr(Class mappedClass,
String type) |
String |
getStringForType(Class c) |
Class |
getType(String type) |
DsonTypeMapper |
implyAttrFromType(String type,
String attr) |
DsonTypeMapper |
map(Class... c) |
DsonTypeMapper |
map(String name,
Class c) |
Object |
mapLiteral(String type) |
void |
setDateTimeInstance(DateFormat dateTimeInstance) |
protected DateFormat dateTimeInstance
public DsonTypeMapper implyAttrFromType(String type, String attr)
public DsonTypeMapper map(String name, Class c)
public DsonTypeMapper map(Class... c)
public Object coerceReading(Class type, Object readObject)
type - - of target fieldreadObject - - object read from stringpublic Object coerceWriting(Object objectValue)
objectValue - public DateFormat getDateTimeInstance()
public void setDateTimeInstance(DateFormat dateTimeInstance)
Copyright © 2014. All rights reserved.