/* * 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.swe.xml.v100; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.geotoolkit.swe.xml.AbstractNormalizedCurve; /** * <p>Java class for NormalizedCurveType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="NormalizedCurveType"> * <complexContent> * <extension base="{http://www.opengis.net/swe/1.0}AbstractDataRecordType"> * <sequence> * <element name="inputGain" type="{http://www.opengis.net/swe/1.0}QuantityPropertyType" minOccurs="0"/> * <element name="inputBias" type="{http://www.opengis.net/swe/1.0}QuantityPropertyType" minOccurs="0"/> * <element name="outputGain" type="{http://www.opengis.net/swe/1.0}QuantityPropertyType" minOccurs="0"/> * <element name="outputBias" type="{http://www.opengis.net/swe/1.0}QuantityPropertyType" minOccurs="0"/> * <element name="interpolationMethod" type="{http://www.opengis.net/swe/1.0}CategoryPropertyType" minOccurs="0"/> * <element name="extrapolationMethod" type="{http://www.opengis.net/swe/1.0}CategoryPropertyType" minOccurs="0"/> * <element name="function" type="{http://www.opengis.net/swe/1.0}CurvePropertyType"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "NormalizedCurveType", propOrder = { "inputGain", "inputBias", "outputGain", "outputBias", "interpolationMethod", "extrapolationMethod", "function" }) public class NormalizedCurveType extends AbstractDataRecordType implements AbstractNormalizedCurve{ private QuantityPropertyType inputGain; private QuantityPropertyType inputBias; private QuantityPropertyType outputGain; private QuantityPropertyType outputBias; private CategoryPropertyType interpolationMethod; private CategoryPropertyType extrapolationMethod; @XmlElement(required = true) private CurvePropertyType function; public NormalizedCurveType() { } public NormalizedCurveType(final AbstractNormalizedCurve nc) { super(nc); if (nc != null) { if (nc.getInputGain() != null) { this.inputGain = new QuantityPropertyType(nc.getInputGain()); } if (nc.getInputBias() != null) { this.inputBias = new QuantityPropertyType(nc.getInputBias()); } if (nc.getOutputGain() != null) { this.outputGain = new QuantityPropertyType(nc.getOutputGain()); } if (nc.getOutputBias() != null) { this.outputBias = new QuantityPropertyType(nc.getOutputBias()); } if (nc.getExtrapolationMethod() != null) { this.extrapolationMethod = new CategoryPropertyType(nc.getExtrapolationMethod()); } if (nc.getInterpolationMethod() != null) { this.interpolationMethod = new CategoryPropertyType(nc.getInterpolationMethod()); } if (nc.getFunction() != null) { this.function = new CurvePropertyType(nc.getFunction()); } } } /** * Gets the value of the inputGain property. * * @return * possible object is * {@link QuantityPropertyType } * */ public QuantityPropertyType getInputGain() { return inputGain; } /** * Sets the value of the inputGain property. * * @param value * allowed object is * {@link QuantityPropertyType } * */ public void setInputGain(final QuantityPropertyType value) { this.inputGain = value; } /** * Gets the value of the inputBias property. * * @return * possible object is * {@link QuantityPropertyType } * */ public QuantityPropertyType getInputBias() { return inputBias; } /** * Sets the value of the inputBias property. * * @param value * allowed object is * {@link QuantityPropertyType } * */ public void setInputBias(final QuantityPropertyType value) { this.inputBias = value; } /** * Gets the value of the outputGain property. * * @return * possible object is * {@link QuantityPropertyType } * */ public QuantityPropertyType getOutputGain() { return outputGain; } /** * Sets the value of the outputGain property. * * @param value * allowed object is * {@link QuantityPropertyType } * */ public void setOutputGain(final QuantityPropertyType value) { this.outputGain = value; } /** * Gets the value of the outputBias property. * * @return * possible object is * {@link QuantityPropertyType } * */ public QuantityPropertyType getOutputBias() { return outputBias; } /** * Sets the value of the outputBias property. * * @param value * allowed object is * {@link QuantityPropertyType } * */ public void setOutputBias(final QuantityPropertyType value) { this.outputBias = value; } /** * Gets the value of the interpolationMethod property. * * @return * possible object is * {@link CategoryPropertyType } * */ public CategoryPropertyType getInterpolationMethod() { return interpolationMethod; } /** * Sets the value of the interpolationMethod property. * * @param value * allowed object is * {@link CategoryPropertyType } * */ public void setInterpolationMethod(final CategoryPropertyType value) { this.interpolationMethod = value; } /** * Gets the value of the extrapolationMethod property. * * @return * possible object is * {@link CategoryPropertyType } * */ public CategoryPropertyType getExtrapolationMethod() { return extrapolationMethod; } /** * Sets the value of the extrapolationMethod property. * * @param value * allowed object is * {@link CategoryPropertyType } * */ public void setExtrapolationMethod(final CategoryPropertyType value) { this.extrapolationMethod = value; } /** * Gets the value of the function property. * * @return * possible object is * {@link CurvePropertyType } * */ public CurvePropertyType getFunction() { return function; } /** * Sets the value of the function property. * * @param value * allowed object is * {@link CurvePropertyType } * */ public void setFunction(final CurvePropertyType value) { this.function = value; } }