Package com.sodius.oslc.domain.qm.model
Class TestPlan
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.domain.qm.model.TestPlan
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcResourceShape(title="Test Plan Resource Shape",
describes="http://open-services.net/ns/qm#TestPlan")
@OslcNamespace("http://open-services.net/ns/qm#")
public class TestPlan
extends AbstractResource
Defines the overall process and strategy for testing a system.
See the OSLC Change Quality specification for details:
https://open-services.net/specifications/quality-management-2.0/
- Since:
- 1.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContributor(URI contributor) voidaddCreator(URI creator) voidaddRelatedChangeRequest(Link relatedChangeRequest) voidaddRunsOnTestEnvironment(Link runsOnTestEnvironment) Adds a running environment.voidaddSubject(String subject) voidaddUsesTestCase(Link testcase) voidaddValidatesRequirementCollection(Link requirementCollection) URI[]URI[]Link[]Link[]Gets the running environments.Returns a short identifier for the resource, such as a number.String[]getTitle()Link[]Link[]voidsetContributors(URI[] contributors) voidsetCreated(Date created) voidsetCreators(URI[] creators) voidsetDescription(String description) voidsetIdentifier(String identifier) voidsetInstanceShape(URI instanceShape) voidsetModified(Date modified) voidsetRelatedChangeRequests(Link[] relatedChangeRequests) voidsetRunsOnTestEnvironments(Link[] runsOnTestEnvironments) Sets the running environments.voidsetServiceProvider(URI serviceProvider) voidsetShortId(String shortId) Sets a short identifier for the resource.voidsetSubjects(String[] subjects) voidvoidsetUsesTestCases(Link[] usesTestCases) voidsetValidatesRequirementCollections(Link[] validatesRequirementCollections) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
TestPlan
public TestPlan() -
TestPlan
-
-
Method Details
-
addContributor
-
getContributors
@OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("Contributors") public URI[] getContributors() -
setContributors
-
getCreated
@OslcDescription("Timestamp of resource creation.") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcReadOnly @OslcTitle("Created") public Date getCreated() -
setCreated
-
addCreator
-
getCreators
@OslcDescription("Creator or creators of resource.") @OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("Creators") public URI[] getCreators() -
setCreators
-
getDescription
@OslcDescription("Descriptive text (reference: Dublin Core) about resource represented as rich text in XHTML content.") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcTitle("Description") @OslcValueType(XMLLiteral) public String getDescription() -
setDescription
-
getIdentifier
@OslcDescription("A unique identifier for a resource. Assigned by the service provider when a resource is created. Not intended for end-user display.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcReadOnly @OslcTitle("Identifier") public String getIdentifier() -
setIdentifier
-
getModified
@OslcDescription("Timestamp of latest resource modification.") @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcReadOnly @OslcTitle("Modified") public Date getModified() -
setModified
-
addSubject
-
getSubjects
@OslcDescription("Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcName("subject") @OslcPropertyDefinition("http://purl.org/dc/terms/subject") @OslcReadOnly(false) @OslcTitle("Subjects") public String[] getSubjects() -
setSubjects
-
getTitle
@OslcDescription("Title (reference: Dublin Core) or often a single line summary of the resource represented as rich text in XHTML content.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle() -
setTitle
-
getShortId
Returns a short identifier for the resource, such as a number.- Returns:
- a short identifier.
- Since:
- 3.9.0
-
setShortId
Sets a short identifier for the resource.- Parameters:
shortId- the short identifier.- Since:
- 3.9.0
-
getInstanceShape
@OslcDescription("Resource Shape that provides hints as to resource property value-types and allowed values. ") @OslcPropertyDefinition("http://open-services.net/ns/core#instanceShape") @OslcRange("http://open-services.net/ns/core#ResourceShape") @OslcTitle("Instance Shape") public URI getInstanceShape() -
setInstanceShape
-
getServiceProvider
@OslcDescription("The scope of a resource is a URI for the resource\'s OSLC Service Provider.") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcRange("http://open-services.net/ns/core#ServiceProvider") @OslcTitle("Service Provider") public URI getServiceProvider() -
setServiceProvider
-
addRelatedChangeRequest
-
getRelatedChangeRequests
@OslcDescription("A related change request.") @OslcName("relatedChangeRequest") @OslcPropertyDefinition("http://open-services.net/ns/qm#relatedChangeRequest") @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) @OslcTitle("Related Change Requests") public Link[] getRelatedChangeRequests() -
setRelatedChangeRequests
-
addUsesTestCase
-
addRunsOnTestEnvironment
Adds a running environment.- Parameters:
runsOnTestEnvironment- the running environment.- Since:
- 3.9.0
-
getRunsOnTestEnvironments
@OslcDescription("The test environment that the Test Plan will be run on.") @OslcName("runsOnTestEnvironment") @OslcPropertyDefinition("http://open-services.net/ns/qm#runsOnTestEnvironment") @OslcRange("http://open-services.net/ns/qm#TestExecutionRecord") @OslcReadOnly(false) @OslcTitle("Runs On Test Environments") public Link[] getRunsOnTestEnvironments()Gets the running environments.- Returns:
- the running environments.
- Since:
- 3.9.0
-
setRunsOnTestEnvironments
Sets the running environments.- Parameters:
runsOnTestEnvironments- the running environments.- Since:
- 3.9.0
-
getUsesTestCases
@OslcDescription("Test Case used by the Test Plan.") @OslcName("usesTestCase") @OslcPropertyDefinition("http://open-services.net/ns/qm#usesTestCase") @OslcRange("http://open-services.net/ns/qm#TestCase") @OslcReadOnly(false) @OslcTitle("Uses Test Case") public Link[] getUsesTestCases() -
setUsesTestCases
-
getValidatesRequirementCollections
@OslcDescription("Requirement Collection that is validated by the Test Plan.") @OslcName("validatesRequirementCollection") @OslcPropertyDefinition("http://open-services.net/ns/qm#validatesRequirementCollection") @OslcRange("http://open-services.net/ns/rm#RequirementCollection") @OslcReadOnly(false) @OslcTitle("Validates Requirement Collection") public Link[] getValidatesRequirementCollections() -
addValidatesRequirementCollection
-
setValidatesRequirementCollections
-