Class BooleanLiteral

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

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

    • value

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

    • BooleanLiteral

      public BooleanLiteral()
      Creates a new BooleanLiteral
    • BooleanLiteral

      public BooleanLiteral(Boolean value)
      full parameter constructor.
      Parameters:
      value - The boolean value.
    • BooleanLiteral

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

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

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

      public BooleanLiteral withValue(Boolean pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      BooleanLiteral
    • createBooleanLiteral

      public static BooleanLiteral createBooleanLiteral(Consumer<BooleanLiteral.BooleanLiteralBuilder> f)
      create a BooleanLiteral 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