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
ConstructorDescriptionUsed 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) boolean
Class<?>
getType()
Gets theDataType
of the value.Gets the type name.getValue()
Gets the value.int
hashCode()
boolean
Checks if is complex.void
setComplex
(boolean b) Sets the complex.void
Sets the type.void
Sets 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 theDataType
of the value.- Returns:
- the
DataType
of 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:
toString
in classMyDataEntity
-