public class ObjectType<O> extends Object implements ValueType
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,String> |
aliasByClass |
protected Map<String,org.javersion.reflect.TypeDescriptor> |
typesByAlias |
| Constructor and Description |
|---|
ObjectType(com.google.common.collect.BiMap<String,org.javersion.reflect.TypeDescriptor> typesByAlias) |
ObjectType(String alias,
org.javersion.reflect.TypeDescriptor type) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.javersion.path.PropertyTree propertyTree,
Object object,
ReadContext context) |
boolean |
equals(Object obj) |
int |
hashCode() |
Object |
instantiate(org.javersion.path.PropertyTree propertyTree,
Object value,
ReadContext context) |
void |
serialize(org.javersion.path.PropertyPath path,
Object object,
WriteContext context) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisReferencepublic ObjectType(String alias, org.javersion.reflect.TypeDescriptor type)
public ObjectType(com.google.common.collect.BiMap<String,org.javersion.reflect.TypeDescriptor> typesByAlias)
public Object instantiate(org.javersion.path.PropertyTree propertyTree, Object value, ReadContext context) throws Exception
instantiate in interface ValueTypeExceptionpublic void bind(org.javersion.path.PropertyTree propertyTree,
Object object,
ReadContext context)
throws Exception
public void serialize(org.javersion.path.PropertyPath path,
Object object,
WriteContext context)
Copyright © 2015. All rights reserved.