Package org.ivoa.dm.pdl
Class RealLiteral
java.lang.Object
org.ivoa.dm.pdl.ParameterLiteral
org.ivoa.dm.pdl.RealLiteral
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="pdl:RealLiteral",
role=dataType)
public class RealLiteral
extends ParameterLiteral
implements org.ivoa.vodml.jpa.JPAManipulations
A floating-point literal value.
dataType: RealLiteral
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for RealLiteral, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RealLiteralRealLiteral(Double value) full parameter constructor.RealLiteral(ParameterLiteral superinstance, Double value) Constructor from supertype instance.RealLiteral(RealLiteral other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static RealLiteralcreate a RealLiteral in functional builder style.booleanvoidgetValue()Returns value Attribute.inthashCode()voidSet value Attribute.voidupdateUsing(RealLiteral 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:RealLiteral.value", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double valueThe real value. : Attribute value type ivoa:real : multiplicity 1
-
-
Constructor Details
-
RealLiteral
public RealLiteral()Creates a new RealLiteral -
RealLiteral
full parameter constructor.- Parameters:
value- The real value.
-
RealLiteral
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
RealLiteral
Constructor from supertype instance.- Parameters:
superinstance- The supertype.value- The real value.
-
-
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:
- RealLiteral
-
createRealLiteral
create a RealLiteral 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
-