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 TypeMethodDescriptionvoid
addProducedFor
(String producedFor) void
addTargets
(Link targets) static ResourceShape
void
setIsPartOf
(Link isPartOf) void
setProducedFor
(Set<String> producedFor) void
setTargets
(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, setTitle
Methods 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:
toString
in classManagedItem
-
toString
- Overrides:
toString
in classManagedItem
-
addProducedFor
- Specified by:
addProducedFor
in interfaceIArtifact
-
addTargets
- Specified by:
addTargets
in 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:
getIsPartOf
in 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:
getProducedFor
in 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:
getTargets
in interfaceIArtifact
-
setIsPartOf
- Specified by:
setIsPartOf
in interfaceIArtifact
-
setProducedFor
- Specified by:
setProducedFor
in interfaceIArtifact
-
setTargets
- Specified by:
setTargets
in interfaceIArtifact
-