Class AbstractValueTypeImpl

    • Field Detail

      • name

        protected java.lang.String name
    • Constructor Detail

      • AbstractValueTypeImpl

        public AbstractValueTypeImpl​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: ValueType
        Returns the name of the variable type
        Specified by:
        getName in interface ValueType
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • isAbstract

        public boolean isAbstract()
        Description copied from interface: ValueType

        Returns whether the value type is abstract. This is not related to the term abstract in the Java language.

        Abstract value types cannot be used as types for variables but only used for querying.
        Specified by:
        isAbstract in interface ValueType
      • getParent

        public ValueType getParent()
        Description copied from interface: ValueType

        Gets the parent value type.

        Value type hierarchy is only relevant for queries and has the following meaning: When a value query is made (e.g. all tasks with a certain variable value), a "child" type's value also matches a parameter value of the parent type. This is only supported when the parent value type's implementation of ValueType.isAbstract() returns true.

        Specified by:
        getParent in interface ValueType
      • canConvertFromTypedValue

        public boolean canConvertFromTypedValue​(TypedValue typedValue)
        Description copied from interface: ValueType
        Determines whether the argument typed value can be converted to a typed value of this value type.
        Specified by:
        canConvertFromTypedValue in interface ValueType
      • unsupportedConversion

        protected java.lang.IllegalArgumentException unsupportedConversion​(ValueType typeToConvertTo)
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object
      • isTransient

        protected java.lang.Boolean isTransient​(java.util.Map<java.lang.String,​java.lang.Object> valueInfo)