@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 org.eclipse.lyo.oslc4j.core.model.AbstractResource implements IVersionResource
Constructor and Description |
---|
VersionResource() |
VersionResource(URI about) |
Modifier and Type | Method and Description |
---|---|
void |
addCommitter(org.eclipse.lyo.oslc4j.core.model.Link committer) |
void |
addComponent(String component) |
void |
addContributor(org.eclipse.lyo.oslc4j.core.model.Link contributor) |
void |
addCreator(org.eclipse.lyo.oslc4j.core.model.Link creator) |
void |
addInstanceShape(org.eclipse.lyo.oslc4j.core.model.Link instanceShape) |
void |
addServiceProvider(org.eclipse.lyo.oslc4j.core.model.Link serviceProvider) |
void |
addSubject(String subject) |
void |
addType(org.eclipse.lyo.oslc4j.core.model.Link type) |
void |
addWasDerivedFrom(org.eclipse.lyo.oslc4j.core.model.Link wasDerivedFrom) |
void |
addWasRevisionOf(org.eclipse.lyo.oslc4j.core.model.Link wasRevisionOf) |
static org.eclipse.lyo.oslc4j.core.model.ResourceShape |
createResourceShape() |
Date |
getCommitted() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getCommitter() |
Set<String> |
getComponent() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getContributor() |
Date |
getCreated() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getCreator() |
String |
getDescription() |
String |
getIdentifier() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getInstanceShape() |
org.eclipse.lyo.oslc4j.core.model.Link |
getIsVersionOf() |
Date |
getModified() |
org.eclipse.lyo.oslc4j.core.model.Link |
getModifiedBy() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getServiceProvider() |
String |
getShortId() |
String |
getShortTitle() |
Set<String> |
getSubject() |
String |
getTitle() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getType() |
String |
getVersionId() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getWasDerivedFrom() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getWasRevisionOf() |
void |
setCommitted(Date committed) |
void |
setCommitter(Set<org.eclipse.lyo.oslc4j.core.model.Link> committer) |
void |
setComponent(Set<String> component) |
void |
setContributor(Set<org.eclipse.lyo.oslc4j.core.model.Link> contributor) |
void |
setCreated(Date created) |
void |
setCreator(Set<org.eclipse.lyo.oslc4j.core.model.Link> creator) |
void |
setDescription(String description) |
void |
setIdentifier(String identifier) |
void |
setInstanceShape(Set<org.eclipse.lyo.oslc4j.core.model.Link> instanceShape) |
void |
setIsVersionOf(org.eclipse.lyo.oslc4j.core.model.Link isVersionOf) |
void |
setModified(Date modified) |
void |
setModifiedBy(org.eclipse.lyo.oslc4j.core.model.Link modifiedBy) |
void |
setServiceProvider(Set<org.eclipse.lyo.oslc4j.core.model.Link> serviceProvider) |
void |
setShortId(String shortId) |
void |
setShortTitle(String shortTitle) |
void |
setSubject(Set<String> subject) |
void |
setTitle(String title) |
void |
setType(Set<org.eclipse.lyo.oslc4j.core.model.Link> type) |
void |
setVersionId(String versionId) |
void |
setWasDerivedFrom(Set<org.eclipse.lyo.oslc4j.core.model.Link> wasDerivedFrom) |
void |
setWasRevisionOf(Set<org.eclipse.lyo.oslc4j.core.model.Link> wasRevisionOf) |
String |
toString() |
String |
toString(boolean asLocalResource) |
public VersionResource()
public VersionResource(URI about)
public static org.eclipse.lyo.oslc4j.core.model.ResourceShape createResourceShape() throws org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException, URISyntaxException
org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException
URISyntaxException
public String toString(boolean asLocalResource)
public void addContributor(org.eclipse.lyo.oslc4j.core.model.Link contributor)
addContributor
in interface IVersionResource
public void addCreator(org.eclipse.lyo.oslc4j.core.model.Link creator)
addCreator
in interface IVersionResource
public void addSubject(String subject)
addSubject
in interface IVersionResource
public void addCommitter(org.eclipse.lyo.oslc4j.core.model.Link committer)
addCommitter
in interface IVersionResource
public void addComponent(String component)
addComponent
in interface IVersionResource
public void addInstanceShape(org.eclipse.lyo.oslc4j.core.model.Link instanceShape)
addInstanceShape
in interface IVersionResource
public void addServiceProvider(org.eclipse.lyo.oslc4j.core.model.Link serviceProvider)
addServiceProvider
in interface IVersionResource
public void addType(org.eclipse.lyo.oslc4j.core.model.Link type)
addType
in interface IVersionResource
public void addWasDerivedFrom(org.eclipse.lyo.oslc4j.core.model.Link wasDerivedFrom)
addWasDerivedFrom
in interface IVersionResource
public void addWasRevisionOf(org.eclipse.lyo.oslc4j.core.model.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<org.eclipse.lyo.oslc4j.core.model.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<org.eclipse.lyo.oslc4j.core.model.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 org.eclipse.lyo.oslc4j.core.model.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<org.eclipse.lyo.oslc4j.core.model.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<org.eclipse.lyo.oslc4j.core.model.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 org.eclipse.lyo.oslc4j.core.model.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<org.eclipse.lyo.oslc4j.core.model.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<org.eclipse.lyo.oslc4j.core.model.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<org.eclipse.lyo.oslc4j.core.model.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<org.eclipse.lyo.oslc4j.core.model.Link> getWasRevisionOf()
getWasRevisionOf
in interface IVersionResource
public void setContributor(Set<org.eclipse.lyo.oslc4j.core.model.Link> contributor)
setContributor
in interface IVersionResource
public void setCreated(Date created)
setCreated
in interface IVersionResource
public void setCreator(Set<org.eclipse.lyo.oslc4j.core.model.Link> creator)
setCreator
in interface IVersionResource
public void setDescription(String description)
setDescription
in interface IVersionResource
public void setIdentifier(String identifier)
setIdentifier
in interface IVersionResource
public void setIsVersionOf(org.eclipse.lyo.oslc4j.core.model.Link isVersionOf)
setIsVersionOf
in interface IVersionResource
public void setModified(Date modified)
setModified
in interface IVersionResource
public void setSubject(Set<String> subject)
setSubject
in interface IVersionResource
public void setTitle(String title)
setTitle
in interface IVersionResource
public void setCommitted(Date committed)
setCommitted
in interface IVersionResource
public void setCommitter(Set<org.eclipse.lyo.oslc4j.core.model.Link> committer)
setCommitter
in interface IVersionResource
public void setComponent(Set<String> component)
setComponent
in interface IVersionResource
public void setVersionId(String versionId)
setVersionId
in interface IVersionResource
public void setInstanceShape(Set<org.eclipse.lyo.oslc4j.core.model.Link> instanceShape)
setInstanceShape
in interface IVersionResource
public void setModifiedBy(org.eclipse.lyo.oslc4j.core.model.Link modifiedBy)
setModifiedBy
in interface IVersionResource
public void setServiceProvider(Set<org.eclipse.lyo.oslc4j.core.model.Link> serviceProvider)
setServiceProvider
in interface IVersionResource
public void setShortId(String shortId)
setShortId
in interface IVersionResource
public void setShortTitle(String shortTitle)
setShortTitle
in interface IVersionResource
public void setType(Set<org.eclipse.lyo.oslc4j.core.model.Link> type)
setType
in interface IVersionResource
public void setWasDerivedFrom(Set<org.eclipse.lyo.oslc4j.core.model.Link> wasDerivedFrom)
setWasDerivedFrom
in interface IVersionResource
public void setWasRevisionOf(Set<org.eclipse.lyo.oslc4j.core.model.Link> wasRevisionOf)
setWasRevisionOf
in interface IVersionResource
Copyright © 2020. All rights reserved.