public class TypeContext extends Object
| Constructor and Description |
|---|
TypeContext(com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle,
com.google.gwt.core.ext.typeinfo.JClassType type,
com.google.gwt.core.ext.typeinfo.JClassType rwType)
Construct a new instance of this class
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(PropertyContext propertyContext) |
void |
addReference(PropertyContext propertyContext) |
PropertyContext |
getId() |
com.google.gwt.core.ext.typeinfo.JClassType |
getInstanceCreator() |
List<PropertyContext> |
getProperties() |
List<PropertyContext> |
getReferences() |
com.google.gwt.core.ext.typeinfo.JClassType |
getRwType() |
com.google.gwt.core.ext.typeinfo.JClassType |
getStopAt() |
com.google.gwt.core.ext.typeinfo.JClassType |
getType()
The type of the POJO to be (de)serialized.
|
boolean |
isJson() |
boolean |
isReader() |
boolean |
isWriter() |
boolean |
isXml() |
static int |
nextOrder() |
PropertyContext |
removeProperty(String property) |
PropertyContext |
removeReference(String property) |
void |
setId(PropertyContext propertyContext) |
String |
toString() |
public TypeContext(com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle,
com.google.gwt.core.ext.typeinfo.JClassType type,
com.google.gwt.core.ext.typeinfo.JClassType rwType)
type - The type of the classrwType - The type of the reader or writer interfacepublic static int nextOrder()
public boolean isJson()
public boolean isXml()
public void addProperty(PropertyContext propertyContext)
public PropertyContext removeProperty(String property)
public void addReference(PropertyContext propertyContext)
public PropertyContext removeReference(String property)
public com.google.gwt.core.ext.typeinfo.JClassType getType()
public com.google.gwt.core.ext.typeinfo.JClassType getRwType()
public boolean isReader()
true if getRwType() references a
JsonReader or XmlReader, false
otherwise.public boolean isWriter()
true if getRwType() references a
JsonWriter or XmlWriter, false
otherwise.public com.google.gwt.core.ext.typeinfo.JClassType getInstanceCreator()
public com.google.gwt.core.ext.typeinfo.JClassType getStopAt()
public PropertyContext getId()
public void setId(PropertyContext propertyContext)
public List<PropertyContext> getProperties()
public List<PropertyContext> getReferences()
Copyright © 2012 Harald Pehl. All Rights Reserved.