Class 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
  • Field Details

    • value

      @VoDml(id="pdl:RealLiteral.value", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double value
      The real value. : Attribute value type ivoa:real : multiplicity 1
  • Constructor Details

    • RealLiteral

      public RealLiteral()
      Creates a new RealLiteral
    • RealLiteral

      public RealLiteral(Double value)
      full parameter constructor.
      Parameters:
      value - The real value.
    • RealLiteral

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

      public RealLiteral(ParameterLiteral superinstance, Double value)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      value - The real value.
  • Method Details

    • copyMe

      public ParameterLiteral copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class ParameterLiteral
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(RealLiteral 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.
    • getValue

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

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

      public RealLiteral withValue(Double pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      RealLiteral
    • createRealLiteral

      public static RealLiteral createRealLiteral(Consumer<RealLiteral.RealLiteralBuilder> f)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class ParameterLiteral
    • equals

      public boolean equals(Object o_)
      Overrides:
      equals in class ParameterLiteral
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ParameterLiteral