T - the type of the value. Must be one of DataType.public class DataObject<T> extends Ind2uceEntity
DataType that is currently supported by IND2UCE.GSON_DEFAULT, GSON_PLAIN, GSON_PRETTY, version| Constructor and Description |
|---|
DataObject()
Used for JAXB
|
DataObject(Class<T> type)
Instantiates a new data object.
|
DataObject(T value)
Instantiates a new data object.
|
DataObject(T value,
Class<T> clazz)
Instantiates a new data object.
|
DataObject(T value,
Type type)
*.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Class<?> |
getType()
Gets the
DataType of the value. |
String |
getTypeName()
Gets the type name.
|
T |
getValue()
Gets the value.
|
int |
hashCode() |
boolean |
isComplex()
Checks if is complex.
|
void |
setComplex(boolean b)
Sets the complex.
|
void |
setJavaType(Type javaType)
Sets the java type.
|
void |
setType(String type)
Sets the type.
|
void |
setValue(T value)
Sets the value.
|
String |
toString() |
fromJson, getGson, getVersion, toJsonpublic DataObject()
public DataObject(Class<T> type)
type - the typepublic DataObject(T value)
value - the valuepublic DataObject(T value, Class<T> clazz)
value - the valueclazz - the clazzpublic void setJavaType(Type javaType)
javaType - the new java typepublic Class<?> getType()
DataType of the value.DataType of the valuepublic void setType(String type)
type - the type to setpublic String getTypeName()
public T getValue()
public void setValue(T value)
value - the new valuepublic boolean isComplex()
public void setComplex(boolean b)
b - the new complexpublic String toString()
toString in class Ind2uceEntityCopyright © 2018. All rights reserved.