Class IVOASemantics

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

@Embeddable @VoDml(id="pdl:IVOASemantics", role=dataType) public class IVOASemantics extends ParameterSemantics implements org.ivoa.vodml.jpa.JPAManipulations
. dataType: IVOASemantics
  • Field Details

    • ucd

      @VoDml(id="pdl:IVOASemantics.ucd", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String ucd
      a UCD. : Attribute ucd type ivoa:string : multiplicity 0..1
  • Constructor Details

    • IVOASemantics

      public IVOASemantics()
      Creates a new IVOASemantics
    • IVOASemantics

      public IVOASemantics(String ucd)
      full parameter constructor.
      Parameters:
      ucd - a UCD.
    • IVOASemantics

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

      public IVOASemantics(ParameterSemantics superinstance, String ucd)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      ucd - a UCD.
  • Method Details

    • copyMe

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

      public void updateUsing(IVOASemantics 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.
    • getUcd

      public String getUcd()
      Returns ucd Attribute.
      Returns:
      ucd Attribute
    • setUcd

      public void setUcd(String pUcd)
      Set ucd Attribute.
      Parameters:
      pUcd - value to set
    • withUcd

      public IVOASemantics withUcd(String pUcd)
      fluent setter for ucd Attribute.
      Parameters:
      pUcd - value to set
      Returns:
      IVOASemantics
    • createIVOASemantics

      public static IVOASemantics createIVOASemantics(Consumer<IVOASemantics.IVOASemanticsBuilder> f)
      create a IVOASemantics 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 ParameterSemantics
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class ParameterSemantics