Package org.eclipse.lyo.oslc.domains.qm
Class TestScript
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- org.eclipse.lyo.oslc.domains.qm.TestScript
-
- All Implemented Interfaces:
ITestScript,IExtendedResource,IResource
@OslcNamespace("http://open-services.net/ns/qm#") @OslcName("TestScript") @OslcResourceShape(title="TestScript Shape", describes="http://open-services.net/ns/qm#TestScript") public class TestScript extends AbstractResource implements ITestScript
-
-
Constructor Summary
Constructors Constructor Description TestScript()TestScript(URI about)
-
Method Summary
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
TestScript
public TestScript()
-
TestScript
public TestScript(URI about)
-
-
Method Detail
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException
-
toString
public String toString(boolean asLocalResource)
-
addContributor
public void addContributor(Link contributor)
- Specified by:
addContributorin interfaceITestScript
-
addCreator
public void addCreator(Link creator)
- Specified by:
addCreatorin interfaceITestScript
-
addInstanceShape
public void addInstanceShape(Link instanceShape)
- Specified by:
addInstanceShapein interfaceITestScript
-
addServiceProvider
public void addServiceProvider(Link serviceProvider)
- Specified by:
addServiceProviderin interfaceITestScript
-
addType
public void addType(Link type)
- Specified by:
addTypein interfaceITestScript
-
addExecutionInstructions
public void addExecutionInstructions(Link executionInstructions)
- Specified by:
addExecutionInstructionsin interfaceITestScript
-
addRelatedChangeRequest
public void addRelatedChangeRequest(Link relatedChangeRequest)
- Specified by:
addRelatedChangeRequestin interfaceITestScript
-
addValidatesRequirement
public void addValidatesRequirement(Link validatesRequirement)
- Specified by:
addValidatesRequirementin interfaceITestScript
-
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:
getContributorin interfaceITestScript
-
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 interfaceITestScript
-
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:
getCreatorin interfaceITestScript
-
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:
getDescriptionin interfaceITestScript
-
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 interfaceITestScript
-
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 interfaceITestScript
-
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 interfaceITestScript
-
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 interfaceITestScript
-
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 interfaceITestScript
-
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 interfaceITestScript
-
getExecutionInstructions
@OslcName("executionInstructions") @OslcPropertyDefinition("http://open-services.net/ns/qm#executionInstructions") @OslcDescription("Instructions for executing the test script. Note that the value of Occurs is undefined. The resource shape document provided by the QM service provider may be consulted for its value.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getExecutionInstructions()
- Specified by:
getExecutionInstructionsin interfaceITestScript
-
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:
getRelatedChangeRequestin interfaceITestScript
-
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:
getValidatesRequirementin interfaceITestScript
-
setContributor
public void setContributor(Set<Link> contributor)
- Specified by:
setContributorin interfaceITestScript
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreatedin interfaceITestScript
-
setCreator
public void setCreator(Set<Link> creator)
- Specified by:
setCreatorin interfaceITestScript
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceITestScript
-
setIdentifier
public void setIdentifier(String identifier)
- Specified by:
setIdentifierin interfaceITestScript
-
setModified
public void setModified(Date modified)
- Specified by:
setModifiedin interfaceITestScript
-
setInstanceShape
public void setInstanceShape(Set<Link> instanceShape)
- Specified by:
setInstanceShapein interfaceITestScript
-
setServiceProvider
public void setServiceProvider(Set<Link> serviceProvider)
- Specified by:
setServiceProviderin interfaceITestScript
-
setTitle
public void setTitle(String title)
- Specified by:
setTitlein interfaceITestScript
-
setType
public void setType(Set<Link> type)
- Specified by:
setTypein interfaceITestScript
-
setExecutionInstructions
public void setExecutionInstructions(Set<Link> executionInstructions)
- Specified by:
setExecutionInstructionsin interfaceITestScript
-
setRelatedChangeRequest
public void setRelatedChangeRequest(Set<Link> relatedChangeRequest)
- Specified by:
setRelatedChangeRequestin interfaceITestScript
-
setValidatesRequirement
public void setValidatesRequirement(Set<Link> validatesRequirement)
- Specified by:
setValidatesRequirementin interfaceITestScript
-
-