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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommitter(Link committer) voidaddContributor(Link contributor) voidaddCreator(Link creator) voidaddInstanceShape(Link instanceShape) voidaddModifiedBy(Link modifiedBy) voidaddServiceProvider(Link serviceProvider) voidaddSubject(String subject) voidaddWasDerivedFrom(Link wasDerivedFrom) voidaddWasRevisionOf(Link wasRevisionOf) static ResourceShapegetTitle()voidsetArchived(Boolean archived) voidsetCommitted(Date committed) voidsetCommitter(Set<Link> committer) voidsetComponent(Link component) voidsetContributor(Set<Link> contributor) voidsetCreated(Date created) voidsetCreator(Set<Link> creator) voidsetDescription(String description) voidsetIdentifier(String identifier) voidsetInstanceShape(Set<Link> instanceShape) voidsetIsVersionOf(Link isVersionOf) voidsetModified(Date modified) voidsetModifiedBy(Set<Link> modifiedBy) voidsetServiceProvider(Set<Link> serviceProvider) voidsetShortId(String shortId) voidsetShortTitle(String shortTitle) voidsetSubject(Set<String> subject) voidvoidsetVersionId(String versionId) voidsetWasDerivedFrom(Set<Link> wasDerivedFrom) voidsetWasRevisionOf(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:
addContributorin interfaceIVersionResource
-
addCreator
- Specified by:
addCreatorin interfaceIVersionResource
-
addSubject
- Specified by:
addSubjectin interfaceIVersionResource
-
addCommitter
- Specified by:
addCommitterin interfaceIVersionResource
-
addInstanceShape
- Specified by:
addInstanceShapein interfaceIVersionResource
-
addModifiedBy
- Specified by:
addModifiedByin interfaceIVersionResource
-
addServiceProvider
- Specified by:
addServiceProviderin interfaceIVersionResource
-
addWasDerivedFrom
- Specified by:
addWasDerivedFromin interfaceIVersionResource
-
addWasRevisionOf
- Specified by:
addWasRevisionOfin 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:
getContributorin 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:
getCreatedin 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:
getCreatorin 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:
getDescriptionin 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:
getIdentifierin 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:
getIsVersionOfin 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:
getModifiedin 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:
getSubjectin 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:
getTitlein 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:
getCommittedin 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:
getCommitterin 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:
getComponentin 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:
getVersionIdin interfaceIVersionResource
-
isArchived
@OslcName("archived") @OslcPropertyDefinition("http://open-services.net/ns/core#archived") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isArchived()- Specified by:
isArchivedin 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:
getInstanceShapein 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:
getModifiedByin 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:
getServiceProviderin 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:
getShortIdin 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:
getShortTitlein 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:
getWasDerivedFromin 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:
getWasRevisionOfin interfaceIVersionResource
-
setContributor
- Specified by:
setContributorin interfaceIVersionResource
-
setCreated
- Specified by:
setCreatedin interfaceIVersionResource
-
setCreator
- Specified by:
setCreatorin interfaceIVersionResource
-
setDescription
- Specified by:
setDescriptionin interfaceIVersionResource
-
setIdentifier
- Specified by:
setIdentifierin interfaceIVersionResource
-
setIsVersionOf
- Specified by:
setIsVersionOfin interfaceIVersionResource
-
setModified
- Specified by:
setModifiedin interfaceIVersionResource
-
setSubject
- Specified by:
setSubjectin interfaceIVersionResource
-
setTitle
- Specified by:
setTitlein interfaceIVersionResource
-
setCommitted
- Specified by:
setCommittedin interfaceIVersionResource
-
setCommitter
- Specified by:
setCommitterin interfaceIVersionResource
-
setComponent
- Specified by:
setComponentin interfaceIVersionResource
-
setVersionId
- Specified by:
setVersionIdin interfaceIVersionResource
-
setArchived
- Specified by:
setArchivedin interfaceIVersionResource
-
setInstanceShape
- Specified by:
setInstanceShapein interfaceIVersionResource
-
setModifiedBy
- Specified by:
setModifiedByin interfaceIVersionResource
-
setServiceProvider
- Specified by:
setServiceProviderin interfaceIVersionResource
-
setShortId
- Specified by:
setShortIdin interfaceIVersionResource
-
setShortTitle
- Specified by:
setShortTitlein interfaceIVersionResource
-
setWasDerivedFrom
- Specified by:
setWasDerivedFromin interfaceIVersionResource
-
setWasRevisionOf
- Specified by:
setWasRevisionOfin interfaceIVersionResource
-