Class Measurement
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.promcode.Measurement
- All Implemented Interfaces:
IMeasurement
,IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/promcode#")
@OslcName("Measurement")
@OslcResourceShape(title="Measurement Shape",
description="A measurement measures some aspect of an artifact at some point in time.",
describes="http://open-services.net/ns/promcode#Measurement")
public class Measurement
extends AbstractResource
implements IMeasurement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addObserves
(Measure observes) static ResourceShape
getDate()
void
void
setDescription
(String description) void
setIdentifier
(String identifier) void
setMeasures
(Link measures) void
setObserves
(Set<Measure> observes) toString()
toString
(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Measurement
public Measurement() -
Measurement
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addObserves
- Specified by:
addObserves
in interfaceIMeasurement
-
getDate
@OslcName("date") @OslcPropertyDefinition("http://purl.org/dc/terms/date") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getDate()- Specified by:
getDate
in interfaceIMeasurement
-
getDescription
@OslcName("description") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getDescription()- Specified by:
getDescription
in interfaceIMeasurement
-
getIdentifier
@OslcName("identifier") @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getIdentifier()- Specified by:
getIdentifier
in interfaceIMeasurement
-
getMeasures
@OslcName("measures") @OslcPropertyDefinition("http://open-services.net/ns/promcode#measures") @OslcOccurs(ExactlyOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/promcode#Artifact") @OslcReadOnly(false) public Link getMeasures()- Specified by:
getMeasures
in interfaceIMeasurement
-
getObserves
@OslcName("observes") @OslcPropertyDefinition("http://open-services.net/ns/promcode#observes") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Inline) @OslcRange("http://open-services.net/ns/promcode#Measure") @OslcReadOnly(false) public Set<Measure> getObserves()- Specified by:
getObserves
in interfaceIMeasurement
-
setDate
- Specified by:
setDate
in interfaceIMeasurement
-
setDescription
- Specified by:
setDescription
in interfaceIMeasurement
-
setIdentifier
- Specified by:
setIdentifier
in interfaceIMeasurement
-
setMeasures
- Specified by:
setMeasures
in interfaceIMeasurement
-
setObserves
- Specified by:
setObserves
in interfaceIMeasurement
-