Class EntityKeyValue

java.lang.Object
com.priint.pubserver.entity.Entity
com.priint.pubserver.entity.EntityKeyValue
All Implemented Interfaces:
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:
  • Field Details

  • Constructor Details

    • EntityKeyValue

      public EntityKeyValue()
      Default constructor
    • EntityKeyValue

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

    • getDummyKey

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

      Defaults to an empty string.

      Returns:
      dummyKey as String
    • setDummyKey

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

      Throws a NullArgumentException if argument is null.

      Parameters:
      dummyKey - see getDummyKey()
    • getDummyKeyLabel

      public 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(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 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(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 String getDummyDataType()
      Gets dummy data type.
      Returns:
      dummyDataType as String

      Defaults to an empty string.

    • setDummyDataType

      public void setDummyDataType(String dummyDataType)

      Throws a NullArgumentException if argument is null.

      Parameters:
      dummyDataType - see getDummyDataType()
    • getDummyRefKeyKey

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

      Defaults to an empty string.

    • setDummyRefKeyKey

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

      Throws a NullArgumentException if argument is null.

      Parameters:
      dummyRefKeyKey - see getDummyRefKeyKey()
    • getDummyRefKeyLabel

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

      Defaults to an empty string.

    • setDummyRefKeyLabel

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

      Throws a NullArgumentException if argument is null.

      Parameters:
      dummyRefKeyLabel - see getDummyRefKeyLabel()
    • getDummyRefValue

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

      Defaults to an empty string.

    • setDummyRefValue

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

      Throws a NullArgumentException if argument is null.

      Parameters:
      dummyRefValue - see getDummyRefValue()
    • getDummyRefDataType

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

      Defaults to an empty string.

    • setDummyRefDataType

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

      Throws a NullArgumentException if argument is null.

      Parameters:
      dummyRefDataType - see getDummyRefDataType()