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 Constructor Description Requirement()Requirement(URI about)
-
Method Summary
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
Requirement
public Requirement()
-
Requirement
public Requirement(URI about)
-
-
Method Detail
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException
-
toString
public String toString(boolean asLocalResource)
-
addSubject
public void addSubject(String subject)
- Specified by:
addSubjectin interfaceIRequirement
-
addCreator
public void addCreator(Link creator)
- Specified by:
addCreatorin interfaceIRequirement
-
addContributor
public void addContributor(Link contributor)
- Specified by:
addContributorin interfaceIRequirement
-
addServiceProvider
public void addServiceProvider(Link serviceProvider)
- Specified by:
addServiceProviderin interfaceIRequirement
-
addInstanceShape
public void addInstanceShape(Link instanceShape)
- Specified by:
addInstanceShapein interfaceIRequirement
-
addElaboratedBy
public void addElaboratedBy(Link elaboratedBy)
- Specified by:
addElaboratedByin interfaceIRequirement
-
addElaborates
public void addElaborates(Link elaborates)
- Specified by:
addElaboratesin interfaceIRequirement
-
addSpecifiedBy
public void addSpecifiedBy(Link specifiedBy)
- Specified by:
addSpecifiedByin interfaceIRequirement
-
addSpecifies
public void addSpecifies(Link specifies)
- Specified by:
addSpecifiesin interfaceIRequirement
-
addAffectedBy
public void addAffectedBy(Link affectedBy)
- Specified by:
addAffectedByin interfaceIRequirement
-
addTrackedBy
public void addTrackedBy(Link trackedBy)
- Specified by:
addTrackedByin interfaceIRequirement
-
addImplementedBy
public void addImplementedBy(Link implementedBy)
- Specified by:
addImplementedByin interfaceIRequirement
-
addValidatedBy
public void addValidatedBy(Link validatedBy)
- Specified by:
addValidatedByin interfaceIRequirement
-
addSatisfiedBy
public void addSatisfiedBy(Link satisfiedBy)
- Specified by:
addSatisfiedByin interfaceIRequirement
-
addSatisfies
public void addSatisfies(Link satisfies)
- Specified by:
addSatisfiesin interfaceIRequirement
-
addDecomposedBy
public void addDecomposedBy(Link decomposedBy)
- Specified by:
addDecomposedByin interfaceIRequirement
-
addDecomposes
public void addDecomposes(Link decomposes)
- Specified by:
addDecomposesin interfaceIRequirement
-
addConstrainedBy
public void addConstrainedBy(Link constrainedBy)
- Specified by:
addConstrainedByin interfaceIRequirement
-
addConstrains
public void addConstrains(Link constrains)
- 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
public void setTitle(String title)
- Specified by:
setTitlein interfaceIRequirement
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceIRequirement
-
setIdentifier
public void setIdentifier(String identifier)
- Specified by:
setIdentifierin interfaceIRequirement
-
setShortTitle
public void setShortTitle(String shortTitle)
- Specified by:
setShortTitlein interfaceIRequirement
-
setSubject
public void setSubject(Set<String> subject)
- Specified by:
setSubjectin interfaceIRequirement
-
setCreator
public void setCreator(Set<Link> creator)
- Specified by:
setCreatorin interfaceIRequirement
-
setContributor
public void setContributor(Set<Link> contributor)
- Specified by:
setContributorin interfaceIRequirement
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreatedin interfaceIRequirement
-
setModified
public void setModified(Date modified)
- Specified by:
setModifiedin interfaceIRequirement
-
setServiceProvider
public void setServiceProvider(Set<Link> serviceProvider)
- Specified by:
setServiceProviderin interfaceIRequirement
-
setInstanceShape
public void setInstanceShape(Set<Link> instanceShape)
- Specified by:
setInstanceShapein interfaceIRequirement
-
setElaboratedBy
public void setElaboratedBy(Set<Link> elaboratedBy)
- Specified by:
setElaboratedByin interfaceIRequirement
-
setElaborates
public void setElaborates(Set<Link> elaborates)
- Specified by:
setElaboratesin interfaceIRequirement
-
setSpecifiedBy
public void setSpecifiedBy(Set<Link> specifiedBy)
- Specified by:
setSpecifiedByin interfaceIRequirement
-
setSpecifies
public void setSpecifies(Set<Link> specifies)
- Specified by:
setSpecifiesin interfaceIRequirement
-
setAffectedBy
public void setAffectedBy(Set<Link> affectedBy)
- Specified by:
setAffectedByin interfaceIRequirement
-
setTrackedBy
public void setTrackedBy(Set<Link> trackedBy)
- Specified by:
setTrackedByin interfaceIRequirement
-
setImplementedBy
public void setImplementedBy(Set<Link> implementedBy)
- Specified by:
setImplementedByin interfaceIRequirement
-
setValidatedBy
public void setValidatedBy(Set<Link> validatedBy)
- Specified by:
setValidatedByin interfaceIRequirement
-
setSatisfiedBy
public void setSatisfiedBy(Set<Link> satisfiedBy)
- Specified by:
setSatisfiedByin interfaceIRequirement
-
setSatisfies
public void setSatisfies(Set<Link> satisfies)
- Specified by:
setSatisfiesin interfaceIRequirement
-
setDecomposedBy
public void setDecomposedBy(Set<Link> decomposedBy)
- Specified by:
setDecomposedByin interfaceIRequirement
-
setDecomposes
public void setDecomposes(Set<Link> decomposes)
- Specified by:
setDecomposesin interfaceIRequirement
-
setConstrainedBy
public void setConstrainedBy(Set<Link> constrainedBy)
- Specified by:
setConstrainedByin interfaceIRequirement
-
setConstrains
public void setConstrains(Set<Link> constrains)
- Specified by:
setConstrainsin interfaceIRequirement
-
-