/**
*
* geo-platform
* Rich webgis framework
* http://geo-platform.org
* ====================================================================
*
* Copyright (C) 2008-2017 geoSDI Group (CNR IMAA - Potenza - ITALY).
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. This program 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 General Public License
* for more details. You should have received a copy of the GNU General
* Public License along with this program. If not, see http://www.gnu.org/licenses/
*
* ====================================================================
*
* Linking this library statically or dynamically with other modules is
* making a combined work based on this library. Thus, the terms and
* conditions of the GNU General Public License cover the whole combination.
*
* As a special exception, the copyright holders of this library give you permission
* to link this library with independent modules to produce an executable, regardless
* of the license terms of these independent modules, and to copy and distribute
* the resulting executable under terms of your choice, provided that you also meet,
* for each linked independent module, the terms and conditions of the license of
* that module. An independent module is a module which is not derived from or
* based on this library. If you modify this library, you may extend this exception
* to your version of the library, but you are not obligated to do so. If you do not
* wish to do so, delete this exception statement from your version.
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.04.17 at 10:27:36 PM CEST
//
package org.geosdi.geoplatform.xml.gml.v311;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
/**
* Paremeters of a simple formula by which a value using this unit of measure can be converted to the corresponding value using the preferred unit of measure. The formula element contains elements a, b, c and d, whose values use the XML Schema type "double". These values are used in the formula y = (a + bx) / (c + dx), where x is a value using this unit, and y is the corresponding value using the preferred unit. The elements a and d are optional, and if values are not provided, those parameters are considered to be zero. If values are not provided for both a and d, the formula is equivalent to a fraction with numerator and denominator parameters.
*
* <p>Java class for FormulaType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="FormulaType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="a" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
* <element name="b" type="{http://www.w3.org/2001/XMLSchema}double"/>
* <element name="c" type="{http://www.w3.org/2001/XMLSchema}double"/>
* <element name="d" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FormulaType", propOrder = {
"a",
"b",
"c",
"d"
})
public class FormulaType
implements ToString
{
protected Double a;
protected double b;
protected double c;
protected Double d;
/**
* Gets the value of the a property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getA() {
return a;
}
/**
* Sets the value of the a property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setA(Double value) {
this.a = value;
}
public boolean isSetA() {
return (this.a!= null);
}
/**
* Gets the value of the b property.
*
*/
public double getB() {
return b;
}
/**
* Sets the value of the b property.
*
*/
public void setB(double value) {
this.b = value;
}
public boolean isSetB() {
return true;
}
/**
* Gets the value of the c property.
*
*/
public double getC() {
return c;
}
/**
* Sets the value of the c property.
*
*/
public void setC(double value) {
this.c = value;
}
public boolean isSetC() {
return true;
}
/**
* Gets the value of the d property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getD() {
return d;
}
/**
* Sets the value of the d property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setD(Double value) {
this.d = value;
}
public boolean isSetD() {
return (this.d!= null);
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
Double theA;
theA = this.getA();
strategy.appendField(locator, this, "a", buffer, theA);
}
{
double theB;
theB = (this.isSetB()?this.getB(): 0.0D);
strategy.appendField(locator, this, "b", buffer, theB);
}
{
double theC;
theC = (this.isSetC()?this.getC(): 0.0D);
strategy.appendField(locator, this, "c", buffer, theC);
}
{
Double theD;
theD = this.getD();
strategy.appendField(locator, this, "d", buffer, theD);
}
return buffer;
}
}