Package org.eclipse.lyo.oslc.domains.qm
Class TestCase
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.qm.TestCase
- All Implemented Interfaces:
ITestCase
,IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/qm#")
@OslcName("TestCase")
@OslcResourceShape(title="TestCase Shape",
describes="http://open-services.net/ns/qm#TestCase")
public class TestCase
extends AbstractResource
implements ITestCase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContributor
(Link contributor) void
addCreator
(Link creator) void
addInstanceShape
(Link instanceShape) void
addRelatedChangeRequest
(Link relatedChangeRequest) void
addServiceProvider
(Link serviceProvider) void
addSubject
(String subject) void
addTestsChangeRequest
(Link testsChangeRequest) void
void
addUsesTestScript
(Link usesTestScript) void
addValidatesRequirement
(Link validatesRequirement) static ResourceShape
getTitle()
getType()
void
setContributor
(Set<Link> contributor) void
setCreated
(Date created) void
setCreator
(Set<Link> creator) void
setDescription
(String description) void
setIdentifier
(String identifier) void
setInstanceShape
(Set<Link> instanceShape) void
setModified
(Date modified) void
setRelatedChangeRequest
(Set<Link> relatedChangeRequest) void
setServiceProvider
(Set<Link> serviceProvider) void
setSubject
(Set<String> subject) void
setTestsChangeRequest
(Set<Link> testsChangeRequest) void
void
void
setUsesTestScript
(Set<Link> usesTestScript) void
setValidatesRequirement
(Set<Link> validatesRequirement) toString()
toString
(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
TestCase
public TestCase() -
TestCase
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addContributor
- Specified by:
addContributor
in interfaceITestCase
-
addCreator
- Specified by:
addCreator
in interfaceITestCase
-
addInstanceShape
- Specified by:
addInstanceShape
in interfaceITestCase
-
addServiceProvider
- Specified by:
addServiceProvider
in interfaceITestCase
-
addSubject
- Specified by:
addSubject
in interfaceITestCase
-
addType
-
addRelatedChangeRequest
- Specified by:
addRelatedChangeRequest
in interfaceITestCase
-
addTestsChangeRequest
- Specified by:
addTestsChangeRequest
in interfaceITestCase
-
addUsesTestScript
- Specified by:
addUsesTestScript
in interfaceITestCase
-
addValidatesRequirement
- Specified by:
addValidatesRequirement
in interfaceITestCase
-
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 interfaceITestCase
-
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 interfaceITestCase
-
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 interfaceITestCase
-
getDescription
@OslcName("description") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcDescription("Descriptive text about resource represented as rich text in XHTML content. SHOULD include only content that is valid and suitable inside an XHTML <div> element.") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getDescription()- Specified by:
getDescription
in interfaceITestCase
-
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 interfaceITestCase
-
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 interfaceITestCase
-
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 interfaceITestCase
-
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 interfaceITestCase
-
getSubject
@OslcName("subject") @OslcPropertyDefinition("http://purl.org/dc/terms/subject") @OslcDescription("Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcOccurs(ZeroOrMany) @OslcValueType(String) @OslcReadOnly(false) @OslcTitle("") public Set<String> getSubject()- Specified by:
getSubject
in interfaceITestCase
-
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() -
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() -
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 interfaceITestCase
-
getTestsChangeRequest
@OslcName("testsChangeRequest") @OslcPropertyDefinition("http://open-services.net/ns/qm#testsChangeRequest") @OslcDescription("Change Request tested by the Test Case. 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> getTestsChangeRequest()- Specified by:
getTestsChangeRequest
in interfaceITestCase
-
getUsesTestScript
@OslcName("usesTestScript") @OslcPropertyDefinition("http://open-services.net/ns/qm#usesTestScript") @OslcDescription("Test Script used by the Test Case. It is likely that the target resource will be an oslc_qm:TestScript but that is not necessarily the case.") @OslcOccurs(OneOrMany) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/qm#TestScript") @OslcReadOnly(false) public Set<Link> getUsesTestScript()- Specified by:
getUsesTestScript
in interfaceITestCase
-
getValidatesRequirement
@OslcName("validatesRequirement") @OslcPropertyDefinition("http://open-services.net/ns/qm#validatesRequirement") @OslcDescription("Requirement that is validated by the Test Case. It is likely that the target resource will be an oslc_rm:Requirement but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/rm#Requirement") @OslcReadOnly(false) public Set<Link> getValidatesRequirement()- Specified by:
getValidatesRequirement
in interfaceITestCase
-
setContributor
- Specified by:
setContributor
in interfaceITestCase
-
setCreated
- Specified by:
setCreated
in interfaceITestCase
-
setCreator
- Specified by:
setCreator
in interfaceITestCase
-
setDescription
- Specified by:
setDescription
in interfaceITestCase
-
setIdentifier
- Specified by:
setIdentifier
in interfaceITestCase
-
setModified
- Specified by:
setModified
in interfaceITestCase
-
setInstanceShape
- Specified by:
setInstanceShape
in interfaceITestCase
-
setServiceProvider
- Specified by:
setServiceProvider
in interfaceITestCase
-
setSubject
- Specified by:
setSubject
in interfaceITestCase
-
setTitle
-
setType
-
setRelatedChangeRequest
- Specified by:
setRelatedChangeRequest
in interfaceITestCase
-
setTestsChangeRequest
- Specified by:
setTestsChangeRequest
in interfaceITestCase
-
setUsesTestScript
- Specified by:
setUsesTestScript
in interfaceITestCase
-
setValidatesRequirement
- Specified by:
setValidatesRequirement
in interfaceITestCase
-