Class UriLiteral

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

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

    • value

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

    • UriLiteral

      public UriLiteral()
      Creates a new UriLiteral
    • UriLiteral

      public UriLiteral(String value)
      full parameter constructor.
      Parameters:
      value - The URI value.
    • UriLiteral

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

      public UriLiteral(ParameterLiteral superinstance, String value)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      value - The URI 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(UriLiteral 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 UriLiteral withValue(String pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      UriLiteral
    • createUriLiteral

      public static UriLiteral createUriLiteral(Consumer<UriLiteral.UriLiteralBuilder> f)
      create a UriLiteral 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