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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObserves(Measure observes) static ResourceShapegetDate()voidvoidsetDescription(String description) voidsetIdentifier(String identifier) voidsetMeasures(Link measures) voidsetObserves(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:
addObservesin interfaceIMeasurement
-
getDate
@OslcName("date") @OslcPropertyDefinition("http://purl.org/dc/terms/date") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getDate()- Specified by:
getDatein interfaceIMeasurement
-
getDescription
@OslcName("description") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getDescription()- Specified by:
getDescriptionin interfaceIMeasurement
-
getIdentifier
@OslcName("identifier") @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getIdentifier()- Specified by:
getIdentifierin 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:
getMeasuresin 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:
getObservesin interfaceIMeasurement
-
setDate
- Specified by:
setDatein interfaceIMeasurement
-
setDescription
- Specified by:
setDescriptionin interfaceIMeasurement
-
setIdentifier
- Specified by:
setIdentifierin interfaceIMeasurement
-
setMeasures
- Specified by:
setMeasuresin interfaceIMeasurement
-
setObserves
- Specified by:
setObservesin interfaceIMeasurement
-