/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2009, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.gml.xml.v311; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * 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". * * <p>Java class for ConversionToPreferredUnitType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ConversionToPreferredUnitType", propOrder = { "factor", "formula" }) public class ConversionToPreferredUnitType extends UnitOfMeasureType { protected Double factor; protected FormulaType formula; /** * Gets the value of the factor property. * * @return * possible object is * {@link Double } * */ public Double getFactor() { return factor; } /** * Sets the value of the factor property. * * @param value * allowed object is * {@link Double } * */ public void setFactor(final Double value) { this.factor = value; } /** * Gets the value of the formula property. * * @return * possible object is * {@link FormulaType } * */ public FormulaType getFormula() { return formula; } /** * Sets the value of the formula property. * * @param value * allowed object is * {@link FormulaType } * */ public void setFormula(final FormulaType value) { this.formula = value; } }