Class 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 Detail

      • 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 Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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