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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAffectedByChangeRequest(Link affectedByChangeRequest) voidaddInstanceShape(Link instanceShape) voidaddServiceProvider(Link serviceProvider) voidstatic ResourceShapegetTitle()getType()voidsetAffectedByChangeRequest(Set<Link> affectedByChangeRequest) voidsetCreated(Date created) voidsetExecutesTestScript(Link executesTestScript) voidsetIdentifier(String identifier) voidsetInstanceShape(Set<Link> instanceShape) voidsetModified(Date modified) voidsetProducedByTestExecutionRecord(Link producedByTestExecutionRecord) voidsetReportsOnTestCase(Link reportsOnTestCase) voidsetReportsOnTestPlan(Link reportsOnTestPlan) voidsetServiceProvider(Set<Link> serviceProvider) voidvoidvoidtoString()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:
addInstanceShapein interfaceITestResult
-
addType
- Specified by:
addTypein interfaceITestResult
-
addServiceProvider
- Specified by:
addServiceProviderin interfaceITestResult
-
addAffectedByChangeRequest
- Specified by:
addAffectedByChangeRequestin 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:
getCreatedin 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:
getIdentifierin 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:
getModifiedin 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:
getInstanceShapein 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:
getTitlein 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:
getTypein 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:
getServiceProviderin 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:
getStatusin 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:
getAffectedByChangeRequestin 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:
getExecutesTestScriptin 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:
getProducedByTestExecutionRecordin 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:
getReportsOnTestCasein 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:
getReportsOnTestPlanin interfaceITestResult
-
setCreated
- Specified by:
setCreatedin interfaceITestResult
-
setIdentifier
- Specified by:
setIdentifierin interfaceITestResult
-
setModified
- Specified by:
setModifiedin interfaceITestResult
-
setInstanceShape
- Specified by:
setInstanceShapein interfaceITestResult
-
setTitle
- Specified by:
setTitlein interfaceITestResult
-
setType
- Specified by:
setTypein interfaceITestResult
-
setServiceProvider
- Specified by:
setServiceProviderin interfaceITestResult
-
setStatus
- Specified by:
setStatusin interfaceITestResult
-
setAffectedByChangeRequest
- Specified by:
setAffectedByChangeRequestin interfaceITestResult
-
setExecutesTestScript
- Specified by:
setExecutesTestScriptin interfaceITestResult
-
setProducedByTestExecutionRecord
- Specified by:
setProducedByTestExecutionRecordin interfaceITestResult
-
setReportsOnTestCase
- Specified by:
setReportsOnTestCasein interfaceITestResult
-
setReportsOnTestPlan
- Specified by:
setReportsOnTestPlanin interfaceITestResult
-