Package nl.b3p.csw.jaxb.gml
Class ConversionToPreferredUnitType
- java.lang.Object
-
- nl.b3p.csw.jaxb.gml.UnitOfMeasureType
-
- nl.b3p.csw.jaxb.gml.ConversionToPreferredUnitType
-
public class ConversionToPreferredUnitType extends UnitOfMeasureType
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".Java class for ConversionToPreferredUnitType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ConversionToPreferredUnitType"> <complexContent> <extension base="{http://www.opengis.net/gml}UnitOfMeasureType"> <choice> <element name="factor" type="{http://www.w3.org/2001/XMLSchema}double"/> <element name="formula" type="{http://www.opengis.net/gml}FormulaType"/> </choice> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Doublefactorprotected FormulaTypeformula-
Fields inherited from class nl.b3p.csw.jaxb.gml.UnitOfMeasureType
uom
-
-
Constructor Summary
Constructors Constructor Description ConversionToPreferredUnitType()Default no-arg constructorConversionToPreferredUnitType(String uom, Double factor, FormulaType formula)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetFactor()Gets the value of the factor property.FormulaTypegetFormula()Gets the value of the formula property.voidsetFactor(Double value)Sets the value of the factor property.voidsetFormula(FormulaType value)Sets the value of the formula property.-
Methods inherited from class nl.b3p.csw.jaxb.gml.UnitOfMeasureType
getUom, setUom
-
-
-
-
Field Detail
-
factor
protected Double factor
-
formula
protected FormulaType formula
-
-
Constructor Detail
-
ConversionToPreferredUnitType
public ConversionToPreferredUnitType()
Default no-arg constructor
-
ConversionToPreferredUnitType
public ConversionToPreferredUnitType(String uom, Double factor, FormulaType formula)
Fully-initialising value constructor
-
-
Method Detail
-
getFactor
public Double getFactor()
Gets the value of the factor property.- Returns:
- possible object is
Double
-
setFactor
public void setFactor(Double value)
Sets the value of the factor property.- Parameters:
value- allowed object isDouble
-
getFormula
public FormulaType getFormula()
Gets the value of the formula property.- Returns:
- possible object is
FormulaType
-
setFormula
public void setFormula(FormulaType value)
Sets the value of the formula property.- Parameters:
value- allowed object isFormulaType
-
-