Class Artifact
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.promcode.ManagedItem
org.eclipse.lyo.oslc.domains.promcode.Artifact
- All Implemented Interfaces:
IArtifact,IManagedItem,IExtendedResource,IResource
@OslcNamespace("http://open-services.net/ns/promcode#")
@OslcName("Artifact")
@OslcResourceShape(title="Artifact Shape",
description="Shape resource of an Artifact resource.",
describes="http://open-services.net/ns/promcode#Artifact")
public class Artifact
extends ManagedItem
implements IArtifact
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProducedFor(String producedFor) voidaddTargets(Link targets) static ResourceShapevoidsetIsPartOf(Link isPartOf) voidsetProducedFor(Set<String> producedFor) voidsetTargets(Set<Link> targets) toString()toString(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc.domains.promcode.ManagedItem
getDescription, getIdentifier, getSequenceNumber, getSource, getTitle, setDescription, setIdentifier, setSequenceNumber, setSource, setTitleMethods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Artifact
public Artifact() -
Artifact
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
- Overrides:
toStringin classManagedItem
-
toString
- Overrides:
toStringin classManagedItem
-
addProducedFor
- Specified by:
addProducedForin interfaceIArtifact
-
addTargets
- Specified by:
addTargetsin interfaceIArtifact
-
getIsPartOf
@OslcName("isPartOf") @OslcPropertyDefinition("http://purl.org/dc/terms/isPartOf") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/promcode#Artifact") @OslcReadOnly(false) public Link getIsPartOf()- Specified by:
getIsPartOfin interfaceIArtifact
-
getProducedFor
@OslcName("producedFor") @OslcPropertyDefinition("http://open-services.net/ns/promcode#producedFor") @OslcOccurs(ZeroOrMany) @OslcValueType(String) @OslcRange({"http://open-services.net/ns/promcode#WorkItem","http://open-services.net/ns/promcode#ScopeItem"}) @OslcReadOnly(false) public Set<String> getProducedFor()- Specified by:
getProducedForin interfaceIArtifact
-
getTargets
@OslcName("targets") @OslcPropertyDefinition("http://open-services.net/ns/promcode#targets") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/promcode#Measure") @OslcReadOnly(false) public Set<Link> getTargets()- Specified by:
getTargetsin interfaceIArtifact
-
setIsPartOf
- Specified by:
setIsPartOfin interfaceIArtifact
-
setProducedFor
- Specified by:
setProducedForin interfaceIArtifact
-
setTargets
- Specified by:
setTargetsin interfaceIArtifact
-