Class VersionResource
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.config.VersionResource
- All Implemented Interfaces:
IVersionResource
,IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/config#")
@OslcName("VersionResource")
@OslcResourceShape(title="VersionResource Shape",
describes="http://open-services.net/ns/config#VersionResource")
public class VersionResource
extends AbstractResource
implements IVersionResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCommitter
(Link committer) void
addContributor
(Link contributor) void
addCreator
(Link creator) void
addInstanceShape
(Link instanceShape) void
addModifiedBy
(Link modifiedBy) void
addServiceProvider
(Link serviceProvider) void
addSubject
(String subject) void
addWasDerivedFrom
(Link wasDerivedFrom) void
addWasRevisionOf
(Link wasRevisionOf) static ResourceShape
getTitle()
void
setArchived
(Boolean archived) void
setCommitted
(Date committed) void
setCommitter
(Set<Link> committer) void
setComponent
(Link component) void
setContributor
(Set<Link> contributor) void
setCreated
(Date created) void
setCreator
(Set<Link> creator) void
setDescription
(String description) void
setIdentifier
(String identifier) void
setInstanceShape
(Set<Link> instanceShape) void
setIsVersionOf
(Link isVersionOf) void
setModified
(Date modified) void
setModifiedBy
(Set<Link> modifiedBy) void
setServiceProvider
(Set<Link> serviceProvider) void
setShortId
(String shortId) void
setShortTitle
(String shortTitle) void
setSubject
(Set<String> subject) void
void
setVersionId
(String versionId) void
setWasDerivedFrom
(Set<Link> wasDerivedFrom) void
setWasRevisionOf
(Set<Link> wasRevisionOf) toString()
toString
(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
VersionResource
public VersionResource() -
VersionResource
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addContributor
- Specified by:
addContributor
in interfaceIVersionResource
-
addCreator
- Specified by:
addCreator
in interfaceIVersionResource
-
addSubject
- Specified by:
addSubject
in interfaceIVersionResource
-
addCommitter
- Specified by:
addCommitter
in interfaceIVersionResource
-
addInstanceShape
- Specified by:
addInstanceShape
in interfaceIVersionResource
-
addModifiedBy
- Specified by:
addModifiedBy
in interfaceIVersionResource
-
addServiceProvider
- Specified by:
addServiceProvider
in interfaceIVersionResource
-
addWasDerivedFrom
- Specified by:
addWasDerivedFrom
in interfaceIVersionResource
-
addWasRevisionOf
- Specified by:
addWasRevisionOf
in interfaceIVersionResource
-
getContributor
@OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcDescription("Contributor or contributors to the resource. The link target is usually a foaf:Person or foaf:Agent, but could be any type.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange({"http://xmlns.com/foaf/0.1/Person","http://xmlns.com/foaf/0.1/Agent"}) @OslcReadOnly(false) public Set<Link> getContributor()- Specified by:
getContributor
in interfaceIVersionResource
-
getCreated
@OslcName("created") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcDescription("Timestamp of resource creation") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getCreated()- Specified by:
getCreated
in interfaceIVersionResource
-
getCreator
@OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcDescription("Creator or creators of the resource. The link target is usually a foaf:Person or foaf:Agent, but could be any type") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange({"http://xmlns.com/foaf/0.1/Person","http://xmlns.com/foaf/0.1/Agent"}) @OslcReadOnly(false) public Set<Link> getCreator()- Specified by:
getCreator
in interfaceIVersionResource
-
getDescription
@OslcName("description") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcDescription("Descriptive text about resource represented as rich text in XHTML content. SHOULD include only content that is valid and suitable inside an XHTML <div> element.") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getDescription()- Specified by:
getDescription
in interfaceIVersionResource
-
getIdentifier
@OslcName("identifier") @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcDescription("A unique identifier for a resource. Typically read-only and assigned by the service provider when a resource is created. Not typically intended for end-user display.") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getIdentifier()- Specified by:
getIdentifier
in interfaceIVersionResource
-
getIsVersionOf
@OslcName("isVersionOf") @OslcPropertyDefinition("http://purl.org/dc/terms/isVersionOf") @OslcDescription("The concept resource of which this resource is a version. The subject of this property must be the version resource URI.") @OslcOccurs(ExactlyOne) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/config#ConceptResource") @OslcReadOnly(false) public Link getIsVersionOf()- Specified by:
getIsVersionOf
in interfaceIVersionResource
-
getModified
@OslcName("modified") @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcDescription("Timestamp of latest resource modification") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getModified()- Specified by:
getModified
in interfaceIVersionResource
-
getSubject
@OslcName("subject") @OslcPropertyDefinition("http://purl.org/dc/terms/subject") @OslcDescription("Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcOccurs(ZeroOrMany) @OslcValueType(String) @OslcReadOnly(false) @OslcTitle("") public Set<String> getSubject()- Specified by:
getSubject
in interfaceIVersionResource
-
getTitle
@OslcName("title") @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcDescription("Title of the resource represented as rich text in XHTML content. SHOULD include only content that is valid inside an XHTML <span> element.") @OslcOccurs(ExactlyOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getTitle()- Specified by:
getTitle
in interfaceIVersionResource
-
getCommitted
@OslcName("committed") @OslcPropertyDefinition("http://open-services.net/ns/config#committed") @OslcDescription("Date and time this version resource was checked in. Absent for mutable (checked out) versions.") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getCommitted()- Specified by:
getCommitted
in interfaceIVersionResource
-
getCommitter
@OslcName("committer") @OslcPropertyDefinition("http://open-services.net/ns/config#committer") @OslcDescription("The entity that checked in this version.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange({"http://xmlns.com/foaf/0.1/Person","http://xmlns.com/foaf/0.1/Agent"}) @OslcReadOnly(true) public Set<Link> getCommitter()- Specified by:
getCommitter
in interfaceIVersionResource
-
getComponent
@OslcName("component") @OslcPropertyDefinition("http://open-services.net/ns/config#component") @OslcDescription("The component to which this version belongs. Configuration Management provider should indicate the owning component for each version resource using either this property, or using the membership relationship from the component LDPC.") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/config#Component") @OslcReadOnly(false) public Link getComponent()- Specified by:
getComponent
in interfaceIVersionResource
-
getVersionId
@OslcName("versionId") @OslcPropertyDefinition("http://open-services.net/ns/config#versionId") @OslcDescription("A short human-readable identifier for the version of a resource. All versioned resources should have this property; where the property is present, this identifier must be unique amongst all currently existing versions of the same concept resource. The subject of this property should be the concept resource URI.") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getVersionId()- Specified by:
getVersionId
in interfaceIVersionResource
-
isArchived
@OslcName("archived") @OslcPropertyDefinition("http://open-services.net/ns/core#archived") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isArchived()- Specified by:
isArchived
in interfaceIVersionResource
-
getInstanceShape
@OslcName("instanceShape") @OslcPropertyDefinition("http://open-services.net/ns/core#instanceShape") @OslcDescription("The URI of a Resource Shape that describes the possible properties, occurrence, value types, allowed values and labels. This shape information is useful in displaying the subject resource as well as guiding clients in performing modifications. Instance shapes may be specific to the authenticated user associated with the request that retrieved the resource, the current state of the resource and other factors and thus should not be cached.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getInstanceShape()- Specified by:
getInstanceShape
in interfaceIVersionResource
-
getModifiedBy
@OslcName("modifiedBy") @OslcPropertyDefinition("http://open-services.net/ns/core#modifiedBy") @OslcDescription("The entity that most recently modified the subject resource. The link target is usually a foaf:Person or foaf:Agent, but could be any type.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange({"http://xmlns.com/foaf/0.1/Agent","http://xmlns.com/foaf/0.1/Person"}) @OslcReadOnly(false) public Set<Link> getModifiedBy()- Specified by:
getModifiedBy
in interfaceIVersionResource
-
getServiceProvider
@OslcName("serviceProvider") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcDescription("A link to the resource\'s OSLC Service Provider. There may be cases when the subject resource is available from a service provider that implements multiple domain specifications, which could result in multiple values for this property.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getServiceProvider()- Specified by:
getServiceProvider
in interfaceIVersionResource
-
getShortId
@OslcName("shortId") @OslcPropertyDefinition("http://open-services.net/ns/core#shortId") @OslcDescription("Shorter form of dcterms:identifier for the resource, such as a number.") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getShortId()- Specified by:
getShortId
in interfaceIVersionResource
-
getShortTitle
@OslcName("shortTitle") @OslcPropertyDefinition("http://open-services.net/ns/core#shortTitle") @OslcDescription("Shorter form of dcterms:title for the resource represented as rich text in XHTML content. SHOULD include only content that is valid inside an XHTML <span> element.") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getShortTitle()- Specified by:
getShortTitle
in interfaceIVersionResource
-
getWasDerivedFrom
@OslcName("wasDerivedFrom") @OslcPropertyDefinition("http://www.w3.org/ns/prov#wasDerivedFrom") @OslcDescription("") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/config#ConceptResource") @OslcReadOnly(false) public Set<Link> getWasDerivedFrom()- Specified by:
getWasDerivedFrom
in interfaceIVersionResource
-
getWasRevisionOf
@OslcName("wasRevisionOf") @OslcPropertyDefinition("http://www.w3.org/ns/prov#wasRevisionOf") @OslcDescription("") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/config#VersionResource") @OslcReadOnly(false) public Set<Link> getWasRevisionOf()- Specified by:
getWasRevisionOf
in interfaceIVersionResource
-
setContributor
- Specified by:
setContributor
in interfaceIVersionResource
-
setCreated
- Specified by:
setCreated
in interfaceIVersionResource
-
setCreator
- Specified by:
setCreator
in interfaceIVersionResource
-
setDescription
- Specified by:
setDescription
in interfaceIVersionResource
-
setIdentifier
- Specified by:
setIdentifier
in interfaceIVersionResource
-
setIsVersionOf
- Specified by:
setIsVersionOf
in interfaceIVersionResource
-
setModified
- Specified by:
setModified
in interfaceIVersionResource
-
setSubject
- Specified by:
setSubject
in interfaceIVersionResource
-
setTitle
- Specified by:
setTitle
in interfaceIVersionResource
-
setCommitted
- Specified by:
setCommitted
in interfaceIVersionResource
-
setCommitter
- Specified by:
setCommitter
in interfaceIVersionResource
-
setComponent
- Specified by:
setComponent
in interfaceIVersionResource
-
setVersionId
- Specified by:
setVersionId
in interfaceIVersionResource
-
setArchived
- Specified by:
setArchived
in interfaceIVersionResource
-
setInstanceShape
- Specified by:
setInstanceShape
in interfaceIVersionResource
-
setModifiedBy
- Specified by:
setModifiedBy
in interfaceIVersionResource
-
setServiceProvider
- Specified by:
setServiceProvider
in interfaceIVersionResource
-
setShortId
- Specified by:
setShortId
in interfaceIVersionResource
-
setShortTitle
- Specified by:
setShortTitle
in interfaceIVersionResource
-
setWasDerivedFrom
- Specified by:
setWasDerivedFrom
in interfaceIVersionResource
-
setWasRevisionOf
- Specified by:
setWasRevisionOf
in interfaceIVersionResource
-