Package org.ivoa.dm.pdl
Class JsonLiteral
java.lang.Object
org.ivoa.dm.pdl.ParameterLiteral
org.ivoa.dm.pdl.JsonLiteral
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="pdl:JsonLiteral",
role=dataType)
public class JsonLiteral
extends ParameterLiteral
implements org.ivoa.vodml.jpa.JPAManipulations
A JSON literal value used for structured defaults.
dataType: JsonLiteral
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for JsonLiteral, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new JsonLiteralJsonLiteral(String value) full parameter constructor.JsonLiteral(JsonLiteral other) Copy Constructor.JsonLiteral(ParameterLiteral superinstance, String value) Constructor from supertype instance. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static JsonLiteralcreate a JsonLiteral in functional builder style.booleanvoidgetValue()Returns value Attribute.inthashCode()voidSet value Attribute.voidupdateUsing(JsonLiteral other) Update this object with the content of the given object.fluent setter for value Attribute.Methods inherited from class org.ivoa.dm.pdl.ParameterLiteral
updateUsing
-
Field Details
-
value
@VoDml(id="pdl:JsonLiteral.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String valueA JSON document representing object or array content. : Attribute value type ivoa:string : multiplicity 1
-
-
Constructor Details
-
JsonLiteral
public JsonLiteral()Creates a new JsonLiteral -
JsonLiteral
full parameter constructor.- Parameters:
value- A JSON document representing object or array content.
-
JsonLiteral
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
JsonLiteral
Constructor from supertype instance.- Parameters:
superinstance- The supertype.value- A JSON document representing object or array content.
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMein classParameterLiteral- Returns:
- the cloned object.
-
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.
-
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:
- JsonLiteral
-
createJsonLiteral
create a JsonLiteral 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- Overrides:
forceLoadin classParameterLiteral
-
equals
- Overrides:
equalsin classParameterLiteral
-
hashCode
public int hashCode()- Overrides:
hashCodein classParameterLiteral
-