Class DataObject<T>
java.lang.Object
de.fraunhofer.iese.mydata.common.MyDataEntity
de.fraunhofer.iese.mydata.policy.parameter.DataObject<T>
- Type Parameters:
T- the type of the value. Must be one ofDataType.
A value of a certain
DataType that is currently supported by MYDATA.- Author:
- Fraunhofer IESE
-
Constructor Summary
ConstructorsConstructorDescriptionUsed for JAXBDataObject(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) *. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DataObject<T>constructClone(DataObject<T> dataObject) booleanClass<?>getType()Gets theDataTypeof the value.Gets the type name.getValue()Gets the value.inthashCode()booleanChecks if is complex.voidsetComplex(boolean b) Sets the complex.voidSets the type.voidSets the value.toString()Methods inherited from class de.fraunhofer.iese.mydata.common.MyDataEntity
fromJson, getGson, getGson, toJson, validate, validateAndNullCheck
-
Constructor Details
-
DataObject
public DataObject()Used for JAXB -
DataObject
Instantiates a new data object.- Parameters:
type- the type
-
DataObject
Instantiates a new data object.- Parameters:
value- the value
-
DataObject
Instantiates a new data object.- Parameters:
value- the valueclazz- the clazz
-
DataObject
*.- Parameters:
value- the valuetype- the type
-
-
Method Details
-
constructClone
-
equals
-
hashCode
public int hashCode() -
getType
Gets theDataTypeof the value.- Returns:
- the
DataTypeof the value
-
setType
Sets the type.- Parameters:
type- the type to set
-
getTypeName
Gets the type name.- Returns:
- the type name
-
getValue
Gets the value.- Returns:
- the value
-
setValue
Sets the value.- Parameters:
value- the new value
-
isComplex
public boolean isComplex()Checks if is complex.- Returns:
- true, if is complex
-
setComplex
public void setComplex(boolean b) Sets the complex.- Parameters:
b- the new complex
-
toString
- Overrides:
toStringin classMyDataEntity
-