Package org.ivoa.dm.registry.voresource
Class Rights
java.lang.Object
org.ivoa.dm.registry.voresource.Rights
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="VOResource:Rights",
       role=dataType)
public class Rights
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
A statement of usage conditions.  This will typically
                          include a license,
                          which should be given as a full string (e.g., Creative Commons
                          Attribution 3.0 International).  Further free-text information,
                          e.g., on how to attribute or on embargo periods is allowed. 
 dataType:  Rights
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Rights, mainly for use in the functional builder pattern. - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic Rightscreate a Rights in functional builder style.voidReturns rightsURI Attribute.getValue()Returns value Attribute.voidsetRightsURI(String pRightsURI) Set rightsURI Attribute.voidSet value Attribute.voidupdateUsing(Rights other) Update this object with the content of the given object.withRightsURI(String pRightsURI) fluent setter for rightsURI Attribute.fluent setter for value Attribute. 
- 
Field Details
- 
value
@VoDml(id="VOResource:Rights.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String value. : Attribute value : multiplicity 1 - 
rightsURI
@VoDml(id="VOResource:Rights.rightsURI", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String rightsURIA URI identifier for a license Where formal licenses are available, this URI can reference the full license text. The IVOA may define standard URIs for a set of recommended licenses, in which case these should be used here. : Attribute rightsURI : multiplicity 1 
 - 
 - 
Constructor Details
- 
Rights
public Rights()Creates a new Rights - 
Rights
full parameter constructor.- Parameters:
 value- .rightsURI- A URI identifier for a license Where formal licenses are available, this URI can reference the full license text. The IVOA may define standard URIs for a set of recommended licenses, in which case these should be used here.
 - 
Rights
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:
 - Rights
 
 - 
getRightsURI
Returns rightsURI Attribute.- Returns:
 - rightsURI Attribute
 
 - 
setRightsURI
Set rightsURI Attribute.- Parameters:
 pRightsURI- value to set
 - 
withRightsURI
fluent setter for rightsURI Attribute.- Parameters:
 pRightsURI- value to set- Returns:
 - Rights
 
 - 
createRights
create a Rights 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
 
 -