Class StringLiteral

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

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

    • value

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

    • StringLiteral

      public StringLiteral()
      Creates a new StringLiteral
    • StringLiteral

      public StringLiteral(String value)
      full parameter constructor.
      Parameters:
      value - The string value.
    • StringLiteral

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

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

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

      public StringLiteral withValue(String pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      StringLiteral
    • createStringLiteral

      public static StringLiteral createStringLiteral(Consumer<StringLiteral.StringLiteralBuilder> f)
      create a StringLiteral 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