Class EntityKeyValue

  • All Implemented Interfaces:
    java.io.Serializable

    public class EntityKeyValue
    extends Entity
    Entity for KeyValues.

    Typically used for features or attributes, for example "color: pink".

    Keyvalues can have sub-keyvalues, e.g. for units as "Meter" for "height: 10m".

    Dummy attributes are related to data fields the related entitydata key value type.

    See Also:
    KeyValue, Serialized Form
    • Constructor Detail

      • EntityKeyValue

        public EntityKeyValue()
        Default constructor
      • EntityKeyValue

        public EntityKeyValue​(java.lang.String label)
        Creating a new keyvalue entity with a label.
        Parameters:
        label - see Entity.getLabel()
    • Method Detail

      • getDummyKey

        public java.lang.String getDummyKey()
        Get the dummy key for this entity key value.

        Defaults to an empty string.

        Returns:
        dummyKey as String
      • setDummyKey

        public void setDummyKey​(java.lang.String dummyKey)
        Set the dummy key for this entity key value.

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummyKey - see getDummyKey()
      • getDummyKeyLabel

        public java.lang.String getDummyKeyLabel()
        Get the key for publishing (if key is something like a code)

        Defaults to an empty string.

        Returns:
        dummyKeyLabel as String
      • setDummyKeyLabel

        public void setDummyKeyLabel​(java.lang.String dummyKeyLabel)
        Set the key for publishing (if key is something like a code)

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummyKeyLabel - see getDummyKeyLabel()
      • getDummyValue

        public java.lang.String getDummyValue()
        Get the dummy value for this entity key value (a value like "12").

        Defaults to an empty string.

        Returns:
        dummyValue as String
      • setDummyValue

        public void setDummyValue​(java.lang.String dummyValue)
        Set the dummy value for this entity key value (a value like "12").

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummyValue - see getDummyValue()
      • getDummyDataType

        public java.lang.String getDummyDataType()
        Gets dummy data type.
        Returns:
        dummyDataType as String

        Defaults to an empty string.

      • setDummyDataType

        public void setDummyDataType​(java.lang.String dummyDataType)

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummyDataType - see getDummyDataType()
      • getDummyRefKeyKey

        public java.lang.String getDummyRefKeyKey()
        Gets dummy ref key key.
        Returns:
        dummyRefKeyKey as String

        Defaults to an empty string.

      • setDummyRefKeyKey

        public void setDummyRefKeyKey​(java.lang.String dummyRefKeyKey)
        Sets dummy ref key key.

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummyRefKeyKey - see getDummyRefKeyKey()
      • getDummyRefKeyLabel

        public java.lang.String getDummyRefKeyLabel()
        Gets dummy ref key label.
        Returns:
        dummyRefKeyLabel as String

        Defaults to an empty string.

      • setDummyRefKeyLabel

        public void setDummyRefKeyLabel​(java.lang.String dummyRefKeyLabel)
        Sets dummy ref key label.

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummyRefKeyLabel - see getDummyRefKeyLabel()
      • getDummyRefValue

        public java.lang.String getDummyRefValue()
        Gets dummy ref value.
        Returns:
        dummyRefValue as String

        Defaults to an empty string.

      • setDummyRefValue

        public void setDummyRefValue​(java.lang.String dummyRefValue)
        Sets dummy ref value.

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummyRefValue - see getDummyRefValue()
      • getDummyRefDataType

        public java.lang.String getDummyRefDataType()
        Gets dummy ref data type.
        Returns:
        dummyRefDataType as String

        Defaults to an empty string.

      • setDummyRefDataType

        public void setDummyRefDataType​(java.lang.String dummyRefDataType)
        Sets dummy ref data type.

        Throws a NullArgumentException if argument is null.

        Parameters:
        dummyRefDataType - see getDummyRefDataType()