@OslcNamespace(value="http://open-services.net/ns/config#") @OslcName(value="VersionResource") @OslcResourceShape(title="VersionResource Resource Shape", describes="http://open-services.net/ns/config#VersionResource") public class VersionResource extends AbstractResource implements IVersionResource
| Constructor and Description |
|---|
VersionResource() |
VersionResource(URI about) |
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypespublic VersionResource()
public VersionResource(URI about)
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException
public String toString(boolean asLocalResource)
public void addContributor(Link contributor)
addContributor in interface IVersionResourcepublic void addCreator(Link creator)
addCreator in interface IVersionResourcepublic void addSubject(String subject)
addSubject in interface IVersionResourcepublic void addCommitter(Link committer)
addCommitter in interface IVersionResourcepublic void addComponent(String component)
addComponent in interface IVersionResourcepublic void addInstanceShape(Link instanceShape)
addInstanceShape in interface IVersionResourcepublic void addServiceProvider(Link serviceProvider)
addServiceProvider in interface IVersionResourcepublic void addType(Link type)
addType in interface IVersionResourcepublic void addWasDerivedFrom(Link wasDerivedFrom)
addWasDerivedFrom in interface IVersionResourcepublic void addWasRevisionOf(Link wasRevisionOf)
addWasRevisionOf in interface IVersionResource@OslcName(value="contributor") @OslcPropertyDefinition(value="http://purl.org/dc/terms/contributor") @OslcDescription(value="Contributor or contributors to the resource. It is likely that the target resource will be a foaf:Person but that is not necessarily the case.") @OslcOccurs(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRange(value="http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(value=false) public Set<Link> getContributor()
getContributor in interface IVersionResource@OslcName(value="created") @OslcPropertyDefinition(value="http://purl.org/dc/terms/created") @OslcDescription(value="Timestamp of resource creation") @OslcOccurs(value=ZeroOrOne) @OslcValueType(value=DateTime) @OslcReadOnly(value=false) public Date getCreated()
getCreated in interface IVersionResource@OslcName(value="creator") @OslcPropertyDefinition(value="http://purl.org/dc/terms/creator") @OslcDescription(value="Creator or creators of the resource. It is likely that the target resource will be a foaf:Person but that is not necessarily the case.") @OslcOccurs(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRange(value="http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(value=false) public Set<Link> getCreator()
getCreator in interface IVersionResource@OslcName(value="description") @OslcPropertyDefinition(value="http://purl.org/dc/terms/description") @OslcDescription(value="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(value=ZeroOrOne) @OslcValueType(value=XMLLiteral) @OslcReadOnly(value=false) public String getDescription()
getDescription in interface IVersionResource@OslcName(value="identifier") @OslcPropertyDefinition(value="http://purl.org/dc/terms/identifier") @OslcDescription(value="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(value=ExactlyOne) @OslcValueType(value=String) @OslcReadOnly(value=false) public String getIdentifier()
getIdentifier in interface IVersionResource@OslcName(value="isVersionOf") @OslcPropertyDefinition(value="http://purl.org/dc/terms/isVersionOf") @OslcDescription(value="The concept resource of which this resource is a version. The subject of this property must be the version resource URI.") @OslcOccurs(value=ExactlyOne) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcReadOnly(value=false) public Link getIsVersionOf()
getIsVersionOf in interface IVersionResource@OslcName(value="modified") @OslcPropertyDefinition(value="http://purl.org/dc/terms/modified") @OslcDescription(value="Timestamp of latest resource modification") @OslcOccurs(value=ZeroOrOne) @OslcValueType(value=DateTime) @OslcReadOnly(value=false) public Date getModified()
getModified in interface IVersionResource@OslcName(value="subject") @OslcPropertyDefinition(value="http://purl.org/dc/terms/subject") @OslcDescription(value="Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcOccurs(value=ZeroOrMany) @OslcValueType(value=String) @OslcReadOnly(value=false) @OslcTitle(value="") public Set<String> getSubject()
getSubject in interface IVersionResource@OslcName(value="title") @OslcPropertyDefinition(value="http://purl.org/dc/terms/title") @OslcDescription(value="Title of the resource represented as rich text in XHTML content. SHOULD include only content that is valid inside an XHTML <span> element.") @OslcOccurs(value=ExactlyOne) @OslcValueType(value=XMLLiteral) @OslcReadOnly(value=false) public String getTitle()
getTitle in interface IVersionResource@OslcName(value="committed") @OslcPropertyDefinition(value="http://open-services.net/ns/config#committed") @OslcDescription(value="Date and time this version resource was checked in. Absent for mutable (checked out) versions.") @OslcOccurs(value=ZeroOrOne) @OslcValueType(value=DateTime) @OslcReadOnly(value=false) public Date getCommitted()
getCommitted in interface IVersionResource@OslcName(value="committer") @OslcPropertyDefinition(value="http://open-services.net/ns/config#committer") @OslcDescription(value="The entity that checked in this version.") @OslcOccurs(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcReadOnly(value=true) public Set<Link> getCommitter()
getCommitter in interface IVersionResource@OslcName(value="component") @OslcPropertyDefinition(value="http://open-services.net/ns/config#component") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=String) @OslcReadOnly(value=false) public Set<String> getComponent()
getComponent in interface IVersionResource@OslcName(value="versionId") @OslcPropertyDefinition(value="http://open-services.net/ns/config#versionId") @OslcDescription(value="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(value=ExactlyOne) @OslcValueType(value=String) @OslcReadOnly(value=false) public String getVersionId()
getVersionId in interface IVersionResource@OslcName(value="instanceShape") @OslcPropertyDefinition(value="http://open-services.net/ns/core#instanceShape") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcReadOnly(value=false) public Set<Link> getInstanceShape()
getInstanceShape in interface IVersionResource@OslcName(value="modifiedBy") @OslcPropertyDefinition(value="http://open-services.net/ns/core#modifiedBy") @OslcDescription(value="The URI of a resource describing 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. This is modeled after dcterms:creator, but Dublin Core currently has no equivalent property.") @OslcOccurs(value=ExactlyOne) @OslcValueType(value=Resource) @OslcReadOnly(value=false) public Link getModifiedBy()
getModifiedBy in interface IVersionResource@OslcName(value="serviceProvider") @OslcPropertyDefinition(value="http://open-services.net/ns/core#serviceProvider") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcReadOnly(value=false) public Set<Link> getServiceProvider()
getServiceProvider in interface IVersionResource@OslcName(value="shortId") @OslcPropertyDefinition(value="http://open-services.net/ns/core#shortId") @OslcDescription(value="Shorter form of dcterms:identifier for the resource, such as a number.") @OslcOccurs(value=ExactlyOne) @OslcValueType(value=String) @OslcReadOnly(value=false) public String getShortId()
getShortId in interface IVersionResource@OslcName(value="shortTitle") @OslcPropertyDefinition(value="http://open-services.net/ns/core#shortTitle") @OslcDescription(value="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(value=ZeroOrOne) @OslcValueType(value=XMLLiteral) @OslcReadOnly(value=false) public String getShortTitle()
getShortTitle in interface IVersionResource@OslcName(value="type") @OslcPropertyDefinition(value="http://www.w3.org/1999/02/22-rdf-syntax-ns#type") @OslcDescription(value="The resource type URIs") @OslcOccurs(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcReadOnly(value=false) public Set<Link> getType()
getType in interface IVersionResource@OslcName(value="wasDerivedFrom") @OslcPropertyDefinition(value="http://www.w3.org/ns/prov#wasDerivedFrom") @OslcDescription(value="A resource from which this version was derived. This is likely to reference a different concept resource; use of prov:wasRevisionOf is recommended to indicate an earlier version of the same concept resource. The subject of each instance of this property must be the concept resource URI; the object can be a version resource URI, or a concept resource URI (possibly for a non-versioned resource).") @OslcOccurs(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcReadOnly(value=false) public Set<Link> getWasDerivedFrom()
getWasDerivedFrom in interface IVersionResource@OslcName(value="wasRevisionOf") @OslcPropertyDefinition(value="http://www.w3.org/ns/prov#wasRevisionOf") @OslcDescription(value="A resource from which this version was derived. This is likely to reference an earlier version of the same concept resource; use of prov:wasDerivedFrom is recommended to indicate an earlier version of a different concept resource. The subject of each instance of this property must be the concept resource URI; the object is likely to be a version resource URI.") @OslcOccurs(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcReadOnly(value=false) public Set<Link> getWasRevisionOf()
getWasRevisionOf in interface IVersionResourcepublic void setContributor(Set<Link> contributor)
setContributor in interface IVersionResourcepublic void setCreated(Date created)
setCreated in interface IVersionResourcepublic void setCreator(Set<Link> creator)
setCreator in interface IVersionResourcepublic void setDescription(String description)
setDescription in interface IVersionResourcepublic void setIdentifier(String identifier)
setIdentifier in interface IVersionResourcepublic void setIsVersionOf(Link isVersionOf)
setIsVersionOf in interface IVersionResourcepublic void setModified(Date modified)
setModified in interface IVersionResourcepublic void setSubject(Set<String> subject)
setSubject in interface IVersionResourcepublic void setTitle(String title)
setTitle in interface IVersionResourcepublic void setCommitted(Date committed)
setCommitted in interface IVersionResourcepublic void setCommitter(Set<Link> committer)
setCommitter in interface IVersionResourcepublic void setComponent(Set<String> component)
setComponent in interface IVersionResourcepublic void setVersionId(String versionId)
setVersionId in interface IVersionResourcepublic void setInstanceShape(Set<Link> instanceShape)
setInstanceShape in interface IVersionResourcepublic void setModifiedBy(Link modifiedBy)
setModifiedBy in interface IVersionResourcepublic void setServiceProvider(Set<Link> serviceProvider)
setServiceProvider in interface IVersionResourcepublic void setShortId(String shortId)
setShortId in interface IVersionResourcepublic void setShortTitle(String shortTitle)
setShortTitle in interface IVersionResourcepublic void setType(Set<Link> type)
setType in interface IVersionResourcepublic void setWasDerivedFrom(Set<Link> wasDerivedFrom)
setWasDerivedFrom in interface IVersionResourcepublic void setWasRevisionOf(Set<Link> wasRevisionOf)
setWasRevisionOf in interface IVersionResourceCopyright © 2021. All rights reserved.