Package org.ivoa.dm.executionbroker
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for NameValueMap, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new NameValueMapNameValueMap(String key, String value) full parameter constructor.NameValueMap(NameValueMap other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic NameValueMapcreate a NameValueMap in functional builder style.voidgetKey()Returns key Attribute.getValue()Returns value Attribute.voidSet key Attribute.voidSet value Attribute.voidupdateUsing(NameValueMap other) Update this object with the content of the given object.fluent setter for key Attribute.fluent setter for value Attribute.
-
Field Details
-
key
@VoDml(id="execbroker:NameValueMap.key", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String keyThe key. : Attribute key : multiplicity 1 -
value
@VoDml(id="execbroker:NameValueMap.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String valueThe value. : Attribute value : multiplicity 1
-
-
Constructor Details
-
NameValueMap
public NameValueMap()Creates a new NameValueMap -
NameValueMap
full parameter constructor.- Parameters:
key- The key.value- The value.
-
NameValueMap
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
updateUsing
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
Returns key Attribute.- Returns:
- key Attribute
-
setKey
Set key Attribute.- Parameters:
pKey- value to set
-
withKey
fluent setter for key Attribute.- Parameters:
pKey- value to set- Returns:
- NameValueMap
-
getValue
Returns value Attribute.- Returns:
- value Attribute
-
setValue
Set value Attribute.- Parameters:
pValue- value to set
-
withValue
fluent setter for value Attribute.- Parameters:
pValue- value to set- Returns:
- NameValueMap
-
createNameValueMap
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-