Package org.ivoa.dm.registry.voresource
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
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Date, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringA string indicating what the date refers to.protected UTCDateTime. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic Datecreate a Date in functional builder style.voidgetRole()Returns role Attribute.getValue()Returns value Attribute.voidSet role Attribute.voidsetValue(UTCDateTime pValue) Set value Attribute.voidupdateUsing(Date other) Update this object with the content of the given object.fluent setter for role Attribute.withValue(UTCDateTime pValue) fluent setter for value Attribute. 
- 
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 roleA 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
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
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 
 - 
 - 
Method Details
- 
updateUsing
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
Returns value Attribute.- Returns:
 - value Attribute
 
 - 
setValue
Set value Attribute.- Parameters:
 pValue- value to set
 - 
withValue
fluent setter for value Attribute.- Parameters:
 pValue- value to set- Returns:
 - Date
 
 - 
getRole
Returns role Attribute.- Returns:
 - role Attribute
 
 - 
setRole
Set role Attribute.- Parameters:
 pRole- value to set
 - 
withRole
fluent setter for role Attribute.- Parameters:
 pRole- value to set- Returns:
 - Date
 
 - 
createDate
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:
 forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
 
 -