Class Version

java.lang.Object
org.ivoa.dm.registry.tap.Version
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="TAPRegExt:Version", role=dataType) public class Version extends Object implements org.ivoa.vodml.jpa.JPAManipulations
One version of the language supported by the service. If the service supports more than one version of the language, include multiple version elements. It is recommended that you use a version numbering scheme like MAJOR.MINOR in such a way that sorting by ascending character codes will leave the most recent version at the bottom of the list. dataType: Version
  • Field Details

    • value

      @VoDml(id="TAPRegExt:Version.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String value
      . : Attribute value : multiplicity 1
    • ivoid

      @VoDml(id="TAPRegExt:Version.ivoid", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String ivoid
      An optional IVORN of the language. To more formally define a language supported by a service, a resource record for the language can be created, either centrally on the Registry of Registries or by other registry operators. When such a record exists, the language element's ivoid should point to it. : Attribute ivoid : multiplicity 1
  • Constructor Details

    • Version

      public Version()
      Creates a new Version
    • Version

      public Version(String value, String ivoid)
      full parameter constructor.
      Parameters:
      value - .
      ivoid - An optional IVORN of the language. To more formally define a language supported by a service, a resource record for the language can be created, either centrally on the Registry of Registries or by other registry operators. When such a record exists, the language element's ivoid should point to it.
    • Version

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

    • updateUsing

      public void updateUsing(Version 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 Version withValue(String pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      Version
    • getIvoid

      public String getIvoid()
      Returns ivoid Attribute.
      Returns:
      ivoid Attribute
    • setIvoid

      public void setIvoid(String pIvoid)
      Set ivoid Attribute.
      Parameters:
      pIvoid - value to set
    • withIvoid

      public Version withIvoid(String pIvoid)
      fluent setter for ivoid Attribute.
      Parameters:
      pIvoid - value to set
      Returns:
      Version
    • createVersion

      public static Version createVersion(Consumer<Version.VersionBuilder> f)
      create a Version 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