Package org.eclipse.lyo.oslc.domains.qm
Class TestExecutionRecord
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.qm.TestExecutionRecord
- All Implemented Interfaces:
ITestExecutionRecord
,IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/qm#")
@OslcName("TestExecutionRecord")
@OslcResourceShape(title="TestExecutionRecord Shape",
describes="http://open-services.net/ns/qm#TestExecutionRecord")
public class TestExecutionRecord
extends AbstractResource
implements ITestExecutionRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBlockedByChangeRequest
(Link blockedByChangeRequest) void
addContributor
(Link contributor) void
addCreator
(Link creator) void
addInstanceShape
(Link instanceShape) void
addRelatedChangeRequest
(Link relatedChangeRequest) void
addServiceProvider
(Link serviceProvider) void
static ResourceShape
getTitle()
getType()
void
setBlockedByChangeRequest
(Set<Link> blockedByChangeRequest) void
setContributor
(Set<Link> contributor) void
setCreated
(Date created) void
setCreator
(Set<Link> creator) void
setIdentifier
(String identifier) void
setInstanceShape
(Set<Link> instanceShape) void
setModified
(Date modified) void
setRelatedChangeRequest
(Set<Link> relatedChangeRequest) void
setReportsOnTestPlan
(Link reportsOnTestPlan) void
setRunsOnTestEnvironment
(Link runsOnTestEnvironment) void
setRunsTestCase
(Link runsTestCase) void
setServiceProvider
(Set<Link> serviceProvider) void
void
toString()
toString
(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
TestExecutionRecord
public TestExecutionRecord() -
TestExecutionRecord
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addContributor
- Specified by:
addContributor
in interfaceITestExecutionRecord
-
addCreator
- Specified by:
addCreator
in interfaceITestExecutionRecord
-
addType
- Specified by:
addType
in interfaceITestExecutionRecord
-
addInstanceShape
- Specified by:
addInstanceShape
in interfaceITestExecutionRecord
-
addServiceProvider
- Specified by:
addServiceProvider
in interfaceITestExecutionRecord
-
addBlockedByChangeRequest
- Specified by:
addBlockedByChangeRequest
in interfaceITestExecutionRecord
-
addRelatedChangeRequest
- Specified by:
addRelatedChangeRequest
in interfaceITestExecutionRecord
-
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 interfaceITestExecutionRecord
-
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 interfaceITestExecutionRecord
-
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 interfaceITestExecutionRecord
-
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 interfaceITestExecutionRecord
-
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 interfaceITestExecutionRecord
-
getType
@OslcName("type") @OslcPropertyDefinition("http://www.w3.org/1999/02/22-rdf-syntax-ns#type") @OslcDescription("The resource type URIs") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcReadOnly(false) public Set<Link> getType()- Specified by:
getType
in interfaceITestExecutionRecord
-
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 interfaceITestExecutionRecord
-
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 interfaceITestExecutionRecord
-
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 interfaceITestExecutionRecord
-
getBlockedByChangeRequest
@OslcName("blockedByChangeRequest") @OslcPropertyDefinition("http://open-services.net/ns/qm#blockedByChangeRequest") @OslcDescription("Change Request that prevents execution of the Test Execution Record. It is likely that the target resource will be an oslc_cm:ChangeRequest but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) public Set<Link> getBlockedByChangeRequest()- Specified by:
getBlockedByChangeRequest
in interfaceITestExecutionRecord
-
getRelatedChangeRequest
@OslcName("relatedChangeRequest") @OslcPropertyDefinition("http://open-services.net/ns/qm#relatedChangeRequest") @OslcDescription("A related change request. It is likely that the target resource will be an oslc_cm:ChangeRequest but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) public Set<Link> getRelatedChangeRequest()- Specified by:
getRelatedChangeRequest
in interfaceITestExecutionRecord
-
getReportsOnTestPlan
@OslcName("reportsOnTestPlan") @OslcPropertyDefinition("http://open-services.net/ns/qm#reportsOnTestPlan") @OslcDescription("Test Plan that the Test Execution Record reports on. It is likely that the target resource will be an oslc_qm:TestPlan but that is not necessarily the case.") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/qm#TestPlan") @OslcReadOnly(false) public Link getReportsOnTestPlan()- Specified by:
getReportsOnTestPlan
in interfaceITestExecutionRecord
-
getRunsOnTestEnvironment
@OslcName("runsOnTestEnvironment") @OslcPropertyDefinition("http://open-services.net/ns/qm#runsOnTestEnvironment") @OslcDescription("Indicates the environment details of the test case for this execution record.") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Link getRunsOnTestEnvironment()- Specified by:
getRunsOnTestEnvironment
in interfaceITestExecutionRecord
-
getRunsTestCase
@OslcName("runsTestCase") @OslcPropertyDefinition("http://open-services.net/ns/qm#runsTestCase") @OslcDescription("Test Case run by the Test Execution Record. It is likely that the target resource will be an oslc_qm:TestCase but that is not necessarily the case.") @OslcOccurs(ExactlyOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/qm#TestCase") @OslcReadOnly(false) public Link getRunsTestCase()- Specified by:
getRunsTestCase
in interfaceITestExecutionRecord
-
setContributor
- Specified by:
setContributor
in interfaceITestExecutionRecord
-
setCreated
- Specified by:
setCreated
in interfaceITestExecutionRecord
-
setCreator
- Specified by:
setCreator
in interfaceITestExecutionRecord
-
setIdentifier
- Specified by:
setIdentifier
in interfaceITestExecutionRecord
-
setModified
- Specified by:
setModified
in interfaceITestExecutionRecord
-
setType
- Specified by:
setType
in interfaceITestExecutionRecord
-
setInstanceShape
- Specified by:
setInstanceShape
in interfaceITestExecutionRecord
-
setServiceProvider
- Specified by:
setServiceProvider
in interfaceITestExecutionRecord
-
setTitle
- Specified by:
setTitle
in interfaceITestExecutionRecord
-
setBlockedByChangeRequest
- Specified by:
setBlockedByChangeRequest
in interfaceITestExecutionRecord
-
setRelatedChangeRequest
- Specified by:
setRelatedChangeRequest
in interfaceITestExecutionRecord
-
setReportsOnTestPlan
- Specified by:
setReportsOnTestPlan
in interfaceITestExecutionRecord
-
setRunsOnTestEnvironment
- Specified by:
setRunsOnTestEnvironment
in interfaceITestExecutionRecord
-
setRunsTestCase
- Specified by:
setRunsTestCase
in interfaceITestExecutionRecord
-