@OslcNamespace(value="http://open-services.net/ns/qm#") @OslcName(value="TestCase") @OslcResourceShape(title="TestCase Resource Shape", describes="http://open-services.net/ns/qm#TestCase") public class TestCase extends org.eclipse.lyo.oslc4j.core.model.AbstractResource implements ITestCase
Modifier and Type | Method and Description |
---|---|
void |
addContributor(org.eclipse.lyo.oslc4j.core.model.Link contributor) |
void |
addCreator(org.eclipse.lyo.oslc4j.core.model.Link creator) |
void |
addInstanceShape(org.eclipse.lyo.oslc4j.core.model.Link instanceShape) |
void |
addRelatedChangeRequest(org.eclipse.lyo.oslc4j.core.model.Link relatedChangeRequest) |
void |
addServiceProvider(org.eclipse.lyo.oslc4j.core.model.Link serviceProvider) |
void |
addSubject(String subject) |
void |
addTestsChangeRequest(org.eclipse.lyo.oslc4j.core.model.Link testsChangeRequest) |
void |
addType(org.eclipse.lyo.oslc4j.core.model.Link type) |
void |
addUsesTestScript(org.eclipse.lyo.oslc4j.core.model.Link usesTestScript) |
void |
addValidatesRequirement(org.eclipse.lyo.oslc4j.core.model.Link validatesRequirement) |
static org.eclipse.lyo.oslc4j.core.model.ResourceShape |
createResourceShape() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getContributor() |
Date |
getCreated() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getCreator() |
String |
getDescription() |
String |
getIdentifier() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getInstanceShape() |
Date |
getModified() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getRelatedChangeRequest() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getServiceProvider() |
Set<String> |
getSubject() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getTestsChangeRequest() |
String |
getTitle() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getType() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getUsesTestScript() |
Set<org.eclipse.lyo.oslc4j.core.model.Link> |
getValidatesRequirement() |
void |
setContributor(Set<org.eclipse.lyo.oslc4j.core.model.Link> contributor) |
void |
setCreated(Date created) |
void |
setCreator(Set<org.eclipse.lyo.oslc4j.core.model.Link> creator) |
void |
setDescription(String description) |
void |
setIdentifier(String identifier) |
void |
setInstanceShape(Set<org.eclipse.lyo.oslc4j.core.model.Link> instanceShape) |
void |
setModified(Date modified) |
void |
setRelatedChangeRequest(Set<org.eclipse.lyo.oslc4j.core.model.Link> relatedChangeRequest) |
void |
setServiceProvider(Set<org.eclipse.lyo.oslc4j.core.model.Link> serviceProvider) |
void |
setSubject(Set<String> subject) |
void |
setTestsChangeRequest(Set<org.eclipse.lyo.oslc4j.core.model.Link> testsChangeRequest) |
void |
setTitle(String title) |
void |
setType(Set<org.eclipse.lyo.oslc4j.core.model.Link> type) |
void |
setUsesTestScript(Set<org.eclipse.lyo.oslc4j.core.model.Link> usesTestScript) |
void |
setValidatesRequirement(Set<org.eclipse.lyo.oslc4j.core.model.Link> validatesRequirement) |
String |
toString() |
String |
toString(boolean asLocalResource) |
public TestCase()
public TestCase(URI about)
public static org.eclipse.lyo.oslc4j.core.model.ResourceShape createResourceShape() throws org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException, URISyntaxException
org.eclipse.lyo.oslc4j.core.exception.OslcCoreApplicationException
URISyntaxException
public String toString(boolean asLocalResource)
public void addContributor(org.eclipse.lyo.oslc4j.core.model.Link contributor)
addContributor
in interface ITestCase
public void addCreator(org.eclipse.lyo.oslc4j.core.model.Link creator)
addCreator
in interface ITestCase
public void addInstanceShape(org.eclipse.lyo.oslc4j.core.model.Link instanceShape)
addInstanceShape
in interface ITestCase
public void addServiceProvider(org.eclipse.lyo.oslc4j.core.model.Link serviceProvider)
addServiceProvider
in interface ITestCase
public void addSubject(String subject)
addSubject
in interface ITestCase
public void addType(org.eclipse.lyo.oslc4j.core.model.Link type)
public void addRelatedChangeRequest(org.eclipse.lyo.oslc4j.core.model.Link relatedChangeRequest)
addRelatedChangeRequest
in interface ITestCase
public void addTestsChangeRequest(org.eclipse.lyo.oslc4j.core.model.Link testsChangeRequest)
addTestsChangeRequest
in interface ITestCase
public void addUsesTestScript(org.eclipse.lyo.oslc4j.core.model.Link usesTestScript)
addUsesTestScript
in interface ITestCase
public void addValidatesRequirement(org.eclipse.lyo.oslc4j.core.model.Link validatesRequirement)
addValidatesRequirement
in interface ITestCase
@OslcName(value="contributor") @OslcPropertyDefinition(value="http://purl.org/dc/terms/contributor") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRange(value="http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getContributor()
getContributor
in interface ITestCase
@OslcName(value="created") @OslcPropertyDefinition(value="http://purl.org/dc/terms/created") @OslcDescription(value="Timestamp of resource creation") @OslcOccurs(value=ZeroOrOne) @OslcValueType(value=DateTime) @OslcReadOnly(value=false) public Date getCreated()
getCreated
in interface ITestCase
@OslcName(value="creator") @OslcPropertyDefinition(value="http://purl.org/dc/terms/creator") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRange(value="http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getCreator()
getCreator
in interface ITestCase
@OslcName(value="description") @OslcPropertyDefinition(value="http://purl.org/dc/terms/description") @OslcDescription(value="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(value=ZeroOrOne) @OslcValueType(value=XMLLiteral) @OslcReadOnly(value=false) public String getDescription()
getDescription
in interface ITestCase
@OslcName(value="identifier") @OslcPropertyDefinition(value="http://purl.org/dc/terms/identifier") @OslcDescription(value="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(value=ExactlyOne) @OslcValueType(value=String) @OslcReadOnly(value=false) public String getIdentifier()
getIdentifier
in interface ITestCase
@OslcName(value="modified") @OslcPropertyDefinition(value="http://purl.org/dc/terms/modified") @OslcDescription(value="Timestamp of latest resource modification") @OslcOccurs(value=ZeroOrOne) @OslcValueType(value=DateTime) @OslcReadOnly(value=false) public Date getModified()
getModified
in interface ITestCase
@OslcName(value="instanceShape") @OslcPropertyDefinition(value="http://open-services.net/ns/core#instanceShape") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getInstanceShape()
getInstanceShape
in interface ITestCase
@OslcName(value="serviceProvider") @OslcPropertyDefinition(value="http://open-services.net/ns/core#serviceProvider") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getServiceProvider()
getServiceProvider
in interface ITestCase
@OslcName(value="subject") @OslcPropertyDefinition(value="http://purl.org/dc/terms/subject") @OslcDescription(value="Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcOccurs(value=ZeroOrMany) @OslcValueType(value=String) @OslcReadOnly(value=false) @OslcTitle(value="") public Set<String> getSubject()
getSubject
in interface ITestCase
@OslcName(value="title") @OslcPropertyDefinition(value="http://purl.org/dc/terms/title") @OslcDescription(value="Title of the resource represented as rich text in XHTML content. SHOULD include only content that is valid inside an XHTML <span> element.") @OslcOccurs(value=ExactlyOne) @OslcValueType(value=XMLLiteral) @OslcReadOnly(value=false) public String getTitle()
@OslcName(value="type") @OslcPropertyDefinition(value="http://www.w3.org/1999/02/22-rdf-syntax-ns#type") @OslcDescription(value="The resource type URIs") @OslcOccurs(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getType()
@OslcName(value="relatedChangeRequest") @OslcPropertyDefinition(value="http://open-services.net/ns/qm#relatedChangeRequest") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcRange(value="http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getRelatedChangeRequest()
getRelatedChangeRequest
in interface ITestCase
@OslcName(value="testsChangeRequest") @OslcPropertyDefinition(value="http://open-services.net/ns/qm#testsChangeRequest") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcRange(value="http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getTestsChangeRequest()
getTestsChangeRequest
in interface ITestCase
@OslcName(value="usesTestScript") @OslcPropertyDefinition(value="http://open-services.net/ns/qm#usesTestScript") @OslcDescription(value="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(value=OneOrMany) @OslcValueType(value=Resource) @OslcRange(value="http://open-services.net/ns/qm#TestScript") @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getUsesTestScript()
getUsesTestScript
in interface ITestCase
@OslcName(value="validatesRequirement") @OslcPropertyDefinition(value="http://open-services.net/ns/qm#validatesRequirement") @OslcDescription(value="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(value=ZeroOrMany) @OslcValueType(value=Resource) @OslcRepresentation(value=Reference) @OslcRange(value="http://open-services.net/ns/rm#Requirement") @OslcReadOnly(value=false) public Set<org.eclipse.lyo.oslc4j.core.model.Link> getValidatesRequirement()
getValidatesRequirement
in interface ITestCase
public void setContributor(Set<org.eclipse.lyo.oslc4j.core.model.Link> contributor)
setContributor
in interface ITestCase
public void setCreated(Date created)
setCreated
in interface ITestCase
public void setCreator(Set<org.eclipse.lyo.oslc4j.core.model.Link> creator)
setCreator
in interface ITestCase
public void setDescription(String description)
setDescription
in interface ITestCase
public void setIdentifier(String identifier)
setIdentifier
in interface ITestCase
public void setModified(Date modified)
setModified
in interface ITestCase
public void setInstanceShape(Set<org.eclipse.lyo.oslc4j.core.model.Link> instanceShape)
setInstanceShape
in interface ITestCase
public void setServiceProvider(Set<org.eclipse.lyo.oslc4j.core.model.Link> serviceProvider)
setServiceProvider
in interface ITestCase
public void setSubject(Set<String> subject)
setSubject
in interface ITestCase
public void setType(Set<org.eclipse.lyo.oslc4j.core.model.Link> type)
public void setRelatedChangeRequest(Set<org.eclipse.lyo.oslc4j.core.model.Link> relatedChangeRequest)
setRelatedChangeRequest
in interface ITestCase
public void setTestsChangeRequest(Set<org.eclipse.lyo.oslc4j.core.model.Link> testsChangeRequest)
setTestsChangeRequest
in interface ITestCase
public void setUsesTestScript(Set<org.eclipse.lyo.oslc4j.core.model.Link> usesTestScript)
setUsesTestScript
in interface ITestCase
public void setValidatesRequirement(Set<org.eclipse.lyo.oslc4j.core.model.Link> validatesRequirement)
setValidatesRequirement
in interface ITestCase
Copyright © 2020. All rights reserved.