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 Constructor Description TestResult()
TestResult(URI about)
-
Method Summary
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
TestResult
public TestResult()
-
TestResult
public TestResult(URI about)
-
-
Method Detail
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException
-
toString
public String toString(boolean asLocalResource)
-
addInstanceShape
public void addInstanceShape(Link instanceShape)
- Specified by:
addInstanceShape
in interfaceITestResult
-
addType
public void addType(Link type)
- Specified by:
addType
in interfaceITestResult
-
addServiceProvider
public void addServiceProvider(Link serviceProvider)
- Specified by:
addServiceProvider
in interfaceITestResult
-
addAffectedByChangeRequest
public void addAffectedByChangeRequest(Link affectedByChangeRequest)
- 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
public void setCreated(Date created)
- Specified by:
setCreated
in interfaceITestResult
-
setIdentifier
public void setIdentifier(String identifier)
- Specified by:
setIdentifier
in interfaceITestResult
-
setModified
public void setModified(Date modified)
- Specified by:
setModified
in interfaceITestResult
-
setInstanceShape
public void setInstanceShape(Set<Link> instanceShape)
- Specified by:
setInstanceShape
in interfaceITestResult
-
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interfaceITestResult
-
setType
public void setType(Set<Link> type)
- Specified by:
setType
in interfaceITestResult
-
setServiceProvider
public void setServiceProvider(Set<Link> serviceProvider)
- Specified by:
setServiceProvider
in interfaceITestResult
-
setStatus
public void setStatus(String status)
- Specified by:
setStatus
in interfaceITestResult
-
setAffectedByChangeRequest
public void setAffectedByChangeRequest(Set<Link> affectedByChangeRequest)
- Specified by:
setAffectedByChangeRequest
in interfaceITestResult
-
setExecutesTestScript
public void setExecutesTestScript(Link executesTestScript)
- Specified by:
setExecutesTestScript
in interfaceITestResult
-
setProducedByTestExecutionRecord
public void setProducedByTestExecutionRecord(Link producedByTestExecutionRecord)
- Specified by:
setProducedByTestExecutionRecord
in interfaceITestResult
-
setReportsOnTestCase
public void setReportsOnTestCase(Link reportsOnTestCase)
- Specified by:
setReportsOnTestCase
in interfaceITestResult
-
setReportsOnTestPlan
public void setReportsOnTestPlan(Link reportsOnTestPlan)
- Specified by:
setReportsOnTestPlan
in interfaceITestResult
-
-