Class Measure
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.promcode.Measure
- All Implemented Interfaces:
IMeasure
,IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/promcode#")
@OslcName("Measure")
@OslcResourceShape(title="Measure Shape",
description="A measure is an observation of some measurable aspect of an artifact.",
describes="http://open-services.net/ns/promcode#Measure")
public class Measure
extends AbstractResource
implements IMeasure
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceShape
getTitle()
void
setDescription
(String description) void
setIdentifier
(String identifier) void
setMetricOfMeasure
(Link metricOfMeasure) void
void
setUnitOfMeasure
(Link unitOfMeasure) void
setValueOfMeasure
(Float valueOfMeasure) toString()
toString
(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Measure
public Measure() -
Measure
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
getDescription
@OslcName("description") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getDescription()- Specified by:
getDescription
in interfaceIMeasure
-
getIdentifier
@OslcName("identifier") @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getIdentifier()- Specified by:
getIdentifier
in interfaceIMeasure
-
getTitle
@OslcName("title") @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getTitle() -
getMetricOfMeasure
@OslcName("metricOfMeasure") @OslcPropertyDefinition("http://open-services.net/ns/promcode#metricOfMeasure") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcReadOnly(false) public Link getMetricOfMeasure()- Specified by:
getMetricOfMeasure
in interfaceIMeasure
-
getUnitOfMeasure
@OslcName("unitOfMeasure") @OslcPropertyDefinition("http://open-services.net/ns/promcode#unitOfMeasure") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcReadOnly(false) public Link getUnitOfMeasure()- Specified by:
getUnitOfMeasure
in interfaceIMeasure
-
getValueOfMeasure
@OslcName("valueOfMeasure") @OslcPropertyDefinition("http://open-services.net/ns/promcode#valueOfMeasure") @OslcOccurs(ExactlyOne) @OslcValueType(Float) @OslcReadOnly(false) public Float getValueOfMeasure()- Specified by:
getValueOfMeasure
in interfaceIMeasure
-
setDescription
- Specified by:
setDescription
in interfaceIMeasure
-
setIdentifier
- Specified by:
setIdentifier
in interfaceIMeasure
-
setTitle
-
setMetricOfMeasure
- Specified by:
setMetricOfMeasure
in interfaceIMeasure
-
setUnitOfMeasure
- Specified by:
setUnitOfMeasure
in interfaceIMeasure
-
setValueOfMeasure
- Specified by:
setValueOfMeasure
in interfaceIMeasure
-