Class IntegerLiteral

java.lang.Object
org.ivoa.dm.pdl.ParameterLiteral
org.ivoa.dm.pdl.IntegerLiteral
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="pdl:IntegerLiteral", role=dataType) public class IntegerLiteral extends ParameterLiteral implements org.ivoa.vodml.jpa.JPAManipulations
An integer literal value. dataType: IntegerLiteral
  • Field Details

    • value

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

    • IntegerLiteral

      public IntegerLiteral()
      Creates a new IntegerLiteral
    • IntegerLiteral

      public IntegerLiteral(Integer value)
      full parameter constructor.
      Parameters:
      value - The integer value.
    • IntegerLiteral

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

      public IntegerLiteral(ParameterLiteral superinstance, Integer value)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      value - The integer 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(IntegerLiteral 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 Integer getValue()
      Returns value Attribute.
      Returns:
      value Attribute
    • setValue

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

      public IntegerLiteral withValue(Integer pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      IntegerLiteral
    • createIntegerLiteral

      public static IntegerLiteral createIntegerLiteral(Consumer<IntegerLiteral.IntegerLiteralBuilder> f)
      create a IntegerLiteral 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