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 TypeMethodDescriptionvoid
addAffectedBy
(Link affectedBy) void
addConstrainedBy
(Link constrainedBy) void
addConstrains
(Link constrains) void
addContributor
(Link contributor) void
addCreator
(Link creator) void
addDecomposedBy
(Link decomposedBy) void
addDecomposes
(Link decomposes) void
addElaboratedBy
(Link elaboratedBy) void
addElaborates
(Link elaborates) void
addImplementedBy
(Link implementedBy) void
addInstanceShape
(Link instanceShape) void
addSatisfiedBy
(Link satisfiedBy) void
addSatisfies
(Link satisfies) void
addServiceProvider
(Link serviceProvider) void
addSpecifiedBy
(Link specifiedBy) void
addSpecifies
(Link specifies) void
addSubject
(String subject) void
addTrackedBy
(Link trackedBy) void
addValidatedBy
(Link validatedBy) static ResourceShape
getTitle()
void
setAffectedBy
(Set<Link> affectedBy) void
setConstrainedBy
(Set<Link> constrainedBy) void
setConstrains
(Set<Link> constrains) void
setContributor
(Set<Link> contributor) void
setCreated
(Date created) void
setCreator
(Set<Link> creator) void
setDecomposedBy
(Set<Link> decomposedBy) void
setDecomposes
(Set<Link> decomposes) void
setDescription
(String description) void
setElaboratedBy
(Set<Link> elaboratedBy) void
setElaborates
(Set<Link> elaborates) void
setIdentifier
(String identifier) void
setImplementedBy
(Set<Link> implementedBy) void
setInstanceShape
(Set<Link> instanceShape) void
setModified
(Date modified) void
setSatisfiedBy
(Set<Link> satisfiedBy) void
setSatisfies
(Set<Link> satisfies) void
setServiceProvider
(Set<Link> serviceProvider) void
setShortTitle
(String shortTitle) void
setSpecifiedBy
(Set<Link> specifiedBy) void
setSpecifies
(Set<Link> specifies) void
setSubject
(Set<String> subject) void
void
setTrackedBy
(Set<Link> trackedBy) void
setValidatedBy
(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:
addSubject
in interfaceIRequirement
-
addCreator
- Specified by:
addCreator
in interfaceIRequirement
-
addContributor
- Specified by:
addContributor
in interfaceIRequirement
-
addServiceProvider
- Specified by:
addServiceProvider
in interfaceIRequirement
-
addInstanceShape
- Specified by:
addInstanceShape
in interfaceIRequirement
-
addElaboratedBy
- Specified by:
addElaboratedBy
in interfaceIRequirement
-
addElaborates
- Specified by:
addElaborates
in interfaceIRequirement
-
addSpecifiedBy
- Specified by:
addSpecifiedBy
in interfaceIRequirement
-
addSpecifies
- Specified by:
addSpecifies
in interfaceIRequirement
-
addAffectedBy
- Specified by:
addAffectedBy
in interfaceIRequirement
-
addTrackedBy
- Specified by:
addTrackedBy
in interfaceIRequirement
-
addImplementedBy
- Specified by:
addImplementedBy
in interfaceIRequirement
-
addValidatedBy
- Specified by:
addValidatedBy
in interfaceIRequirement
-
addSatisfiedBy
- Specified by:
addSatisfiedBy
in interfaceIRequirement
-
addSatisfies
- Specified by:
addSatisfies
in interfaceIRequirement
-
addDecomposedBy
- Specified by:
addDecomposedBy
in interfaceIRequirement
-
addDecomposes
- Specified by:
addDecomposes
in interfaceIRequirement
-
addConstrainedBy
- Specified by:
addConstrainedBy
in interfaceIRequirement
-
addConstrains
- Specified by:
addConstrains
in 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:
getTitle
in 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:
getDescription
in 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:
getIdentifier
in 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:
getShortTitle
in 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:
getSubject
in 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:
getCreator
in 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:
getContributor
in 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:
getCreated
in 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:
getModified
in 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:
getServiceProvider
in 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:
getInstanceShape
in 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:
getElaboratedBy
in 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:
getElaborates
in 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:
getSpecifiedBy
in 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:
getSpecifies
in 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:
getAffectedBy
in 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:
getTrackedBy
in 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:
getImplementedBy
in 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:
getValidatedBy
in 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:
getSatisfiedBy
in 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:
getSatisfies
in 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:
getDecomposedBy
in 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:
getDecomposes
in 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:
getConstrainedBy
in 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:
getConstrains
in interfaceIRequirement
-
setTitle
- Specified by:
setTitle
in interfaceIRequirement
-
setDescription
- Specified by:
setDescription
in interfaceIRequirement
-
setIdentifier
- Specified by:
setIdentifier
in interfaceIRequirement
-
setShortTitle
- Specified by:
setShortTitle
in interfaceIRequirement
-
setSubject
- Specified by:
setSubject
in interfaceIRequirement
-
setCreator
- Specified by:
setCreator
in interfaceIRequirement
-
setContributor
- Specified by:
setContributor
in interfaceIRequirement
-
setCreated
- Specified by:
setCreated
in interfaceIRequirement
-
setModified
- Specified by:
setModified
in interfaceIRequirement
-
setServiceProvider
- Specified by:
setServiceProvider
in interfaceIRequirement
-
setInstanceShape
- Specified by:
setInstanceShape
in interfaceIRequirement
-
setElaboratedBy
- Specified by:
setElaboratedBy
in interfaceIRequirement
-
setElaborates
- Specified by:
setElaborates
in interfaceIRequirement
-
setSpecifiedBy
- Specified by:
setSpecifiedBy
in interfaceIRequirement
-
setSpecifies
- Specified by:
setSpecifies
in interfaceIRequirement
-
setAffectedBy
- Specified by:
setAffectedBy
in interfaceIRequirement
-
setTrackedBy
- Specified by:
setTrackedBy
in interfaceIRequirement
-
setImplementedBy
- Specified by:
setImplementedBy
in interfaceIRequirement
-
setValidatedBy
- Specified by:
setValidatedBy
in interfaceIRequirement
-
setSatisfiedBy
- Specified by:
setSatisfiedBy
in interfaceIRequirement
-
setSatisfies
- Specified by:
setSatisfies
in interfaceIRequirement
-
setDecomposedBy
- Specified by:
setDecomposedBy
in interfaceIRequirement
-
setDecomposes
- Specified by:
setDecomposes
in interfaceIRequirement
-
setConstrainedBy
- Specified by:
setConstrainedBy
in interfaceIRequirement
-
setConstrains
- Specified by:
setConstrains
in interfaceIRequirement
-