Package org.eclipse.lyo.oslc.domains.qm
Class TestResult
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.qm.TestResult
- All Implemented Interfaces:
ITestResult
,IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/qm#")
@OslcName("TestResult")
@OslcResourceShape(title="TestResult Shape",
describes="http://open-services.net/ns/qm#TestResult")
public class TestResult
extends AbstractResource
implements ITestResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAffectedByChangeRequest
(Link affectedByChangeRequest) void
addInstanceShape
(Link instanceShape) void
addServiceProvider
(Link serviceProvider) void
static ResourceShape
getTitle()
getType()
void
setAffectedByChangeRequest
(Set<Link> affectedByChangeRequest) void
setCreated
(Date created) void
setExecutesTestScript
(Link executesTestScript) void
setIdentifier
(String identifier) void
setInstanceShape
(Set<Link> instanceShape) void
setModified
(Date modified) void
setProducedByTestExecutionRecord
(Link producedByTestExecutionRecord) void
setReportsOnTestCase
(Link reportsOnTestCase) void
setReportsOnTestPlan
(Link reportsOnTestPlan) void
setServiceProvider
(Set<Link> serviceProvider) void
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
-
TestResult
public TestResult() -
TestResult
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addInstanceShape
- Specified by:
addInstanceShape
in interfaceITestResult
-
addType
- Specified by:
addType
in interfaceITestResult
-
addServiceProvider
- Specified by:
addServiceProvider
in interfaceITestResult
-
addAffectedByChangeRequest
- Specified by:
addAffectedByChangeRequest
in interfaceITestResult
-
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 interfaceITestResult
-
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 interfaceITestResult
-
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 interfaceITestResult
-
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 interfaceITestResult
-
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 interfaceITestResult
-
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 interfaceITestResult
-
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 interfaceITestResult
-
getStatus
@OslcName("status") @OslcPropertyDefinition("http://open-services.net/ns/qm#status") @OslcDescription("Used to indicate the state of the Test Result based on values defined by the service provider. Most often a read-only property.") @OslcOccurs(ZeroOrOne) @OslcValueType(String) @OslcReadOnly(false) public String getStatus()- Specified by:
getStatus
in interfaceITestResult
-
getAffectedByChangeRequest
@OslcName("affectedByChangeRequest") @OslcPropertyDefinition("http://open-services.net/ns/qm#affectedByChangeRequest") @OslcDescription("Change request that affects the Test Result. 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> getAffectedByChangeRequest()- Specified by:
getAffectedByChangeRequest
in interfaceITestResult
-
getExecutesTestScript
@OslcName("executesTestScript") @OslcPropertyDefinition("http://open-services.net/ns/qm#executesTestScript") @OslcDescription("Test Script executed to produce the Test Result. It is likely that the target resource will be an oslc_qm:TestScript but that is not necessarily the case.") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/qm#TestScript") @OslcReadOnly(false) @OslcTitle("") public Link getExecutesTestScript()- Specified by:
getExecutesTestScript
in interfaceITestResult
-
getProducedByTestExecutionRecord
@OslcName("producedByTestExecutionRecord") @OslcPropertyDefinition("http://open-services.net/ns/qm#producedByTestExecutionRecord") @OslcDescription("Test Execution Record that the Test Result was produced by. It is likely that the target resource will be an oslc_qm:TestExecutionRecord but that is not necessarily the case.") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/qm#TestExecutionRecord") @OslcReadOnly(false) @OslcTitle("") public Link getProducedByTestExecutionRecord()- Specified by:
getProducedByTestExecutionRecord
in interfaceITestResult
-
getReportsOnTestCase
@OslcName("reportsOnTestCase") @OslcPropertyDefinition("http://open-services.net/ns/qm#reportsOnTestCase") @OslcDescription("Test Case that the Test Result reports on. 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 getReportsOnTestCase()- Specified by:
getReportsOnTestCase
in interfaceITestResult
-
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 interfaceITestResult
-
setCreated
- Specified by:
setCreated
in interfaceITestResult
-
setIdentifier
- Specified by:
setIdentifier
in interfaceITestResult
-
setModified
- Specified by:
setModified
in interfaceITestResult
-
setInstanceShape
- Specified by:
setInstanceShape
in interfaceITestResult
-
setTitle
- Specified by:
setTitle
in interfaceITestResult
-
setType
- Specified by:
setType
in interfaceITestResult
-
setServiceProvider
- Specified by:
setServiceProvider
in interfaceITestResult
-
setStatus
- Specified by:
setStatus
in interfaceITestResult
-
setAffectedByChangeRequest
- Specified by:
setAffectedByChangeRequest
in interfaceITestResult
-
setExecutesTestScript
- Specified by:
setExecutesTestScript
in interfaceITestResult
-
setProducedByTestExecutionRecord
- Specified by:
setProducedByTestExecutionRecord
in interfaceITestResult
-
setReportsOnTestCase
- Specified by:
setReportsOnTestCase
in interfaceITestResult
-
setReportsOnTestPlan
- Specified by:
setReportsOnTestPlan
in interfaceITestResult
-