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 of DataType.

public class DataObject<T> extends MyDataEntity
A value of a certain DataType that is currently supported by MYDATA.
Author:
Fraunhofer IESE
  • Constructor Details

    • DataObject

      public DataObject()
      Used for JAXB
    • DataObject

      public DataObject(Class<T> type)
      Instantiates a new data object.
      Parameters:
      type - the type
    • DataObject

      public DataObject(T value)
      Instantiates a new data object.
      Parameters:
      value - the value
    • DataObject

      public DataObject(T value, Class<T> clazz)
      Instantiates a new data object.
      Parameters:
      value - the value
      clazz - the clazz
    • DataObject

      public DataObject(T value, Type type)
      *.
      Parameters:
      value - the value
      type - the type
  • Method Details

    • constructClone

      public static <T> DataObject<T> constructClone(DataObject<T> dataObject)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getType

      public Class<?> getType()
      Gets the DataType of the value.
      Returns:
      the DataType of the value
    • setType

      public void setType(String type)
      Sets the type.
      Parameters:
      type - the type to set
    • getTypeName

      public String getTypeName()
      Gets the type name.
      Returns:
      the type name
    • getValue

      public T getValue()
      Gets the value.
      Returns:
      the value
    • setValue

      public void setValue(T value)
      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

      public String toString()
      Overrides:
      toString in class MyDataEntity