Package net.opengis.gml311
Interface ConversionToPreferredUnitType
-
- All Superinterfaces:
EObject
,Notifier
,UnitOfMeasureType
- All Known Implementing Classes:
ConversionToPreferredUnitTypeImpl
public interface ConversionToPreferredUnitType extends UnitOfMeasureType
A representation of the model object 'Conversion To Preferred Unit Type'. Relation of a unit to the preferred unit for this quantity type, specified by an arithmetic conversion (scaling and/or offset). A preferred unit is either a base unit or a derived unit selected for all units of one quantity type. The mandatory attribute "uom" shall reference the preferred unit that this conversion applies to. The conversion is specified by one of two alternative elements: "factor" or "formula".The following features are supported:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getFactor()
Returns the value of the 'Factor' attribute.FormulaType
getFormula()
Returns the value of the 'Formula' containment reference.boolean
isSetFactor()
Returns whether the value of the 'Factor
' attribute is set.void
setFactor(double value)
Sets the value of the 'Factor
' attribute.void
setFormula(FormulaType value)
Sets the value of the 'Formula
' containment reference.void
unsetFactor()
Unsets the value of the 'Factor
' attribute.-
Methods inherited from interface EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface UnitOfMeasureType
getUom, setUom
-
-
-
-
Method Detail
-
getFactor
double getFactor()
Returns the value of the 'Factor' attribute. Specification of the scale factor by which a value using this unit of measure can be multiplied to obtain the corresponding value using the preferred unit of measure.- Returns:
- the value of the 'Factor' attribute.
- See Also:
isSetFactor()
,unsetFactor()
,setFactor(double)
,Gml311Package.getConversionToPreferredUnitType_Factor()
-
setFactor
void setFactor(double value)
Sets the value of the 'Factor
' attribute.- Parameters:
value
- the new value of the 'Factor' attribute.- See Also:
isSetFactor()
,unsetFactor()
,getFactor()
-
unsetFactor
void unsetFactor()
Unsets the value of the 'Factor
' attribute.- See Also:
isSetFactor()
,getFactor()
,setFactor(double)
-
isSetFactor
boolean isSetFactor()
Returns whether the value of the 'Factor
' attribute is set.- Returns:
- whether the value of the 'Factor' attribute is set.
- See Also:
unsetFactor()
,getFactor()
,setFactor(double)
-
getFormula
FormulaType getFormula()
Returns the value of the 'Formula' containment reference. Specification of the formula by which a value using this unit of measure can be converted to obtain the corresponding value using the preferred unit of measure.- Returns:
- the value of the 'Formula' containment reference.
- See Also:
setFormula(FormulaType)
,Gml311Package.getConversionToPreferredUnitType_Formula()
-
setFormula
void setFormula(FormulaType value)
Sets the value of the 'Formula
' containment reference.- Parameters:
value
- the new value of the 'Formula' containment reference.- See Also:
getFormula()
-
-