Class 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>
     
    • 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 is Double
      • 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 is FormulaType