Class NameValueMap

java.lang.Object
org.ivoa.dm.executionbroker.NameValueMap
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="execbroker:NameValueMap", role=dataType) public class NameValueMap extends Object implements org.ivoa.vodml.jpa.JPAManipulations
A map of name->value properties. See https://swagger.io/docs/specification/data-models/dictionaries/. dataType: NameValueMap
  • Field Details

    • key

      @VoDml(id="execbroker:NameValueMap.key", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String key
      The key. : Attribute key : multiplicity 1
    • value

      @VoDml(id="execbroker:NameValueMap.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String value
      The value. : Attribute value : multiplicity 1
  • Constructor Details

    • NameValueMap

      public NameValueMap()
      Creates a new NameValueMap
    • NameValueMap

      public NameValueMap(String key, String value)
      full parameter constructor.
      Parameters:
      key - The key.
      value - The value.
    • NameValueMap

      public NameValueMap(NameValueMap other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • updateUsing

      public void updateUsing(NameValueMap other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getKey

      public String getKey()
      Returns key Attribute.
      Returns:
      key Attribute
    • setKey

      public void setKey(String pKey)
      Set key Attribute.
      Parameters:
      pKey - value to set
    • withKey

      public NameValueMap withKey(String pKey)
      fluent setter for key Attribute.
      Parameters:
      pKey - value to set
      Returns:
      NameValueMap
    • getValue

      public String getValue()
      Returns value Attribute.
      Returns:
      value Attribute
    • setValue

      public void setValue(String pValue)
      Set value Attribute.
      Parameters:
      pValue - value to set
    • withValue

      public NameValueMap withValue(String pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      NameValueMap
    • createNameValueMap

      public static NameValueMap createNameValueMap(Consumer<NameValueMap.NameValueMapBuilder> f)
      create a NameValueMap in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations