Package org.eclipse.lyo.oslc.domains.rm
Class Requirement
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.rm.Requirement
- All Implemented Interfaces:
IRequirement,IExtendedResource,IResource
@OslcNamespace("http://open-services.net/ns/rm#")
@OslcName("Requirement")
@OslcResourceShape(title="Requirement Shape",
describes="http://open-services.net/ns/rm#Requirement")
public class Requirement
extends AbstractResource
implements IRequirement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAffectedBy(Link affectedBy) voidaddConstrainedBy(Link constrainedBy) voidaddConstrains(Link constrains) voidaddContributor(Link contributor) voidaddCreator(Link creator) voidaddDecomposedBy(Link decomposedBy) voidaddDecomposes(Link decomposes) voidaddElaboratedBy(Link elaboratedBy) voidaddElaborates(Link elaborates) voidaddImplementedBy(Link implementedBy) voidaddInstanceShape(Link instanceShape) voidaddSatisfiedBy(Link satisfiedBy) voidaddSatisfies(Link satisfies) voidaddServiceProvider(Link serviceProvider) voidaddSpecifiedBy(Link specifiedBy) voidaddSpecifies(Link specifies) voidaddSubject(String subject) voidaddTrackedBy(Link trackedBy) voidaddValidatedBy(Link validatedBy) static ResourceShapegetTitle()voidsetAffectedBy(Set<Link> affectedBy) voidsetConstrainedBy(Set<Link> constrainedBy) voidsetConstrains(Set<Link> constrains) voidsetContributor(Set<Link> contributor) voidsetCreated(Date created) voidsetCreator(Set<Link> creator) voidsetDecomposedBy(Set<Link> decomposedBy) voidsetDecomposes(Set<Link> decomposes) voidsetDescription(String description) voidsetElaboratedBy(Set<Link> elaboratedBy) voidsetElaborates(Set<Link> elaborates) voidsetIdentifier(String identifier) voidsetImplementedBy(Set<Link> implementedBy) voidsetInstanceShape(Set<Link> instanceShape) voidsetModified(Date modified) voidsetSatisfiedBy(Set<Link> satisfiedBy) voidsetSatisfies(Set<Link> satisfies) voidsetServiceProvider(Set<Link> serviceProvider) voidsetShortTitle(String shortTitle) voidsetSpecifiedBy(Set<Link> specifiedBy) voidsetSpecifies(Set<Link> specifies) voidsetSubject(Set<String> subject) voidvoidsetTrackedBy(Set<Link> trackedBy) voidsetValidatedBy(Set<Link> validatedBy) toString()toString(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Requirement
public Requirement() -
Requirement
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addSubject
- Specified by:
addSubjectin interfaceIRequirement
-
addCreator
- Specified by:
addCreatorin interfaceIRequirement
-
addContributor
- Specified by:
addContributorin interfaceIRequirement
-
addServiceProvider
- Specified by:
addServiceProviderin interfaceIRequirement
-
addInstanceShape
- Specified by:
addInstanceShapein interfaceIRequirement
-
addElaboratedBy
- Specified by:
addElaboratedByin interfaceIRequirement
-
addElaborates
- Specified by:
addElaboratesin interfaceIRequirement
-
addSpecifiedBy
- Specified by:
addSpecifiedByin interfaceIRequirement
-
addSpecifies
- Specified by:
addSpecifiesin interfaceIRequirement
-
addAffectedBy
- Specified by:
addAffectedByin interfaceIRequirement
-
addTrackedBy
- Specified by:
addTrackedByin interfaceIRequirement
-
addImplementedBy
- Specified by:
addImplementedByin interfaceIRequirement
-
addValidatedBy
- Specified by:
addValidatedByin interfaceIRequirement
-
addSatisfiedBy
- Specified by:
addSatisfiedByin interfaceIRequirement
-
addSatisfies
- Specified by:
addSatisfiesin interfaceIRequirement
-
addDecomposedBy
- Specified by:
addDecomposedByin interfaceIRequirement
-
addDecomposes
- Specified by:
addDecomposesin interfaceIRequirement
-
addConstrainedBy
- Specified by:
addConstrainedByin interfaceIRequirement
-
addConstrains
- Specified by:
addConstrainsin interfaceIRequirement
-
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 interfaceIRequirement
-
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 interfaceIRequirement
-
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 interfaceIRequirement
-
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 interfaceIRequirement
-
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 interfaceIRequirement
-
getCreator
@OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcDescription("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(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(false) public Set<Link> getCreator()- Specified by:
getCreatorin interfaceIRequirement
-
getContributor
@OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcDescription("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(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(false) public Set<Link> getContributor()- Specified by:
getContributorin interfaceIRequirement
-
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 interfaceIRequirement
-
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 interfaceIRequirement
-
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 interfaceIRequirement
-
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 interfaceIRequirement
-
getElaboratedBy
@OslcName("elaboratedBy") @OslcPropertyDefinition("http://open-services.net/ns/rm#elaboratedBy") @OslcDescription("The subject is elaborated by the object. For example, a user requirement is elaborated by use case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getElaboratedBy()- Specified by:
getElaboratedByin interfaceIRequirement
-
getElaborates
@OslcName("elaborates") @OslcPropertyDefinition("http://open-services.net/ns/rm#elaborates") @OslcDescription("The object is elaborated by the subject.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getElaborates()- Specified by:
getElaboratesin interfaceIRequirement
-
getSpecifiedBy
@OslcName("specifiedBy") @OslcPropertyDefinition("http://open-services.net/ns/rm#specifiedBy") @OslcDescription("The subject is specified by the object. For example, a requirement is elaborated by a model element .") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getSpecifiedBy()- Specified by:
getSpecifiedByin interfaceIRequirement
-
getSpecifies
@OslcName("specifies") @OslcPropertyDefinition("http://open-services.net/ns/rm#specifies") @OslcDescription("The object is specified by the subject.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getSpecifies()- Specified by:
getSpecifiesin interfaceIRequirement
-
getAffectedBy
@OslcName("affectedBy") @OslcPropertyDefinition("http://open-services.net/ns/rm#affectedBy") @OslcDescription("Requirement is affected by a resource, such as a defect or issue.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getAffectedBy()- Specified by:
getAffectedByin interfaceIRequirement
-
getTrackedBy
@OslcName("trackedBy") @OslcPropertyDefinition("http://open-services.net/ns/rm#trackedBy") @OslcDescription("Resource, such as a change request, which tracks this requirement.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getTrackedBy()- Specified by:
getTrackedByin interfaceIRequirement
-
getImplementedBy
@OslcName("implementedBy") @OslcPropertyDefinition("http://open-services.net/ns/rm#implementedBy") @OslcDescription("Resource, such as a change request, which implements this requirement.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getImplementedBy()- Specified by:
getImplementedByin interfaceIRequirement
-
getValidatedBy
@OslcName("validatedBy") @OslcPropertyDefinition("http://open-services.net/ns/rm#validatedBy") @OslcDescription("Resource, such as a test case, which validates this requirement.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getValidatedBy()- Specified by:
getValidatedByin interfaceIRequirement
-
getSatisfiedBy
@OslcName("satisfiedBy") @OslcPropertyDefinition("http://open-services.net/ns/rm#satisfiedBy") @OslcDescription("The subject is satisfied by the object. For example, a user requirement is satisfied by a system requirement.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getSatisfiedBy()- Specified by:
getSatisfiedByin interfaceIRequirement
-
getSatisfies
@OslcName("satisfies") @OslcPropertyDefinition("http://open-services.net/ns/rm#satisfies") @OslcDescription("The object is satisfied by the subject.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getSatisfies()- Specified by:
getSatisfiesin interfaceIRequirement
-
getDecomposedBy
@OslcName("decomposedBy") @OslcPropertyDefinition("http://open-services.net/ns/rm#decomposedBy") @OslcDescription("The subject is decomposed by the object. For example, a system requirement is decomposed into a collection of system requirements.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getDecomposedBy()- Specified by:
getDecomposedByin interfaceIRequirement
-
getDecomposes
@OslcName("decomposes") @OslcPropertyDefinition("http://open-services.net/ns/rm#decomposes") @OslcDescription("The object is decomposed by the subject.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getDecomposes()- Specified by:
getDecomposesin interfaceIRequirement
-
getConstrainedBy
@OslcName("constrainedBy") @OslcPropertyDefinition("http://open-services.net/ns/rm#constrainedBy") @OslcDescription("The subject is constrained by the object. For example, a functional requirement is constrained by a safety requirement.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getConstrainedBy()- Specified by:
getConstrainedByin interfaceIRequirement
-
getConstrains
@OslcName("constrains") @OslcPropertyDefinition("http://open-services.net/ns/rm#constrains") @OslcDescription("The object is constrained by the subject.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getConstrains()- Specified by:
getConstrainsin interfaceIRequirement
-
setTitle
- Specified by:
setTitlein interfaceIRequirement
-
setDescription
- Specified by:
setDescriptionin interfaceIRequirement
-
setIdentifier
- Specified by:
setIdentifierin interfaceIRequirement
-
setShortTitle
- Specified by:
setShortTitlein interfaceIRequirement
-
setSubject
- Specified by:
setSubjectin interfaceIRequirement
-
setCreator
- Specified by:
setCreatorin interfaceIRequirement
-
setContributor
- Specified by:
setContributorin interfaceIRequirement
-
setCreated
- Specified by:
setCreatedin interfaceIRequirement
-
setModified
- Specified by:
setModifiedin interfaceIRequirement
-
setServiceProvider
- Specified by:
setServiceProviderin interfaceIRequirement
-
setInstanceShape
- Specified by:
setInstanceShapein interfaceIRequirement
-
setElaboratedBy
- Specified by:
setElaboratedByin interfaceIRequirement
-
setElaborates
- Specified by:
setElaboratesin interfaceIRequirement
-
setSpecifiedBy
- Specified by:
setSpecifiedByin interfaceIRequirement
-
setSpecifies
- Specified by:
setSpecifiesin interfaceIRequirement
-
setAffectedBy
- Specified by:
setAffectedByin interfaceIRequirement
-
setTrackedBy
- Specified by:
setTrackedByin interfaceIRequirement
-
setImplementedBy
- Specified by:
setImplementedByin interfaceIRequirement
-
setValidatedBy
- Specified by:
setValidatedByin interfaceIRequirement
-
setSatisfiedBy
- Specified by:
setSatisfiedByin interfaceIRequirement
-
setSatisfies
- Specified by:
setSatisfiesin interfaceIRequirement
-
setDecomposedBy
- Specified by:
setDecomposedByin interfaceIRequirement
-
setDecomposes
- Specified by:
setDecomposesin interfaceIRequirement
-
setConstrainedBy
- Specified by:
setConstrainedByin interfaceIRequirement
-
setConstrains
- Specified by:
setConstrainsin interfaceIRequirement
-