Class Date

java.lang.Object
org.ivoa.dm.registry.voresource.Date
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

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

    • value

      @VoDml(id="VOResource:Date.value", role=attribute, type="VOResource:UTCDateTime", typeRole=primitiveType) protected UTCDateTime value
      . : Attribute value : multiplicity 1
    • role

      @VoDml(id="VOResource:Date.role", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String role
      A string indicating what the date refers to. The value of role should be taken from the vocabulary maintained at http://www.ivoa.net/rdf/voresource/date_role. This includes the traditional and deprecated strings “creation”, indicating the date that the resource itself was created, and “update”, indicating when the resource was updated last, and the default value, “representative”, meaning the date is a rough representation of the time coverage of the resource. The preferred terms from that vocabulary are the DataCite Metadata terms. It is expected that the vocabulary will be kept synchronous with the corresponding list of terms in the DataCite Metadata schema. Note that this date refers to the resource; dates describing the metadata description of the resource are handled by the “created” and “updated” attributes of the Resource element. : Attribute role : multiplicity 1
  • Constructor Details

    • Date

      public Date()
      Creates a new Date
    • Date

      public Date(UTCDateTime value, String role)
      full parameter constructor.
      Parameters:
      value - .
      role - A string indicating what the date refers to. The value of role should be taken from the vocabulary maintained at http://www.ivoa.net/rdf/voresource/date_role. This includes the traditional and deprecated strings “creation”, indicating the date that the resource itself was created, and “update”, indicating when the resource was updated last, and the default value, “representative”, meaning the date is a rough representation of the time coverage of the resource. The preferred terms from that vocabulary are the DataCite Metadata terms. It is expected that the vocabulary will be kept synchronous with the corresponding list of terms in the DataCite Metadata schema. Note that this date refers to the resource; dates describing the metadata description of the resource are handled by the “created” and “updated” attributes of the Resource element.
    • Date

      public Date(Date 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(Date 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 UTCDateTime getValue()
      Returns value Attribute.
      Returns:
      value Attribute
    • setValue

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

      public Date withValue(UTCDateTime pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      Date
    • getRole

      public String getRole()
      Returns role Attribute.
      Returns:
      role Attribute
    • setRole

      public void setRole(String pRole)
      Set role Attribute.
      Parameters:
      pRole - value to set
    • withRole

      public Date withRole(String pRole)
      fluent setter for role Attribute.
      Parameters:
      pRole - value to set
      Returns:
      Date
    • createDate

      public static Date createDate(Consumer<Date.DateBuilder> f)
      create a Date 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