/**
*
* 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.18 at 11:58:17 AM CEST
//
package org.geosdi.geoplatform.xml.gml.v321;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
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;
/**
* <p>Java class for ParameterValueType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ParameterValueType">
* <complexContent>
* <extension base="{http://www.opengis.net/gml/3.2}AbstractGeneralParameterValueType">
* <sequence>
* <choice>
* <element ref="{http://www.opengis.net/gml/3.2}value"/>
* <element ref="{http://www.opengis.net/gml/3.2}dmsAngleValue"/>
* <element ref="{http://www.opengis.net/gml/3.2}stringValue"/>
* <element ref="{http://www.opengis.net/gml/3.2}integerValue"/>
* <element ref="{http://www.opengis.net/gml/3.2}booleanValue"/>
* <element ref="{http://www.opengis.net/gml/3.2}valueList"/>
* <element ref="{http://www.opengis.net/gml/3.2}integerValueList"/>
* <element ref="{http://www.opengis.net/gml/3.2}valueFile"/>
* </choice>
* <element ref="{http://www.opengis.net/gml/3.2}operationParameter"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ParameterValueType", propOrder = {
"value",
"dmsAngleValue",
"stringValue",
"integerValue",
"booleanValue",
"valueList",
"integerValueList",
"valueFile",
"operationParameter"
})
public class ParameterValueType
extends AbstractGeneralParameterValueType
implements ToString
{
protected MeasureType value;
protected DMSAngleType dmsAngleValue;
protected String stringValue;
@XmlSchemaType(name = "positiveInteger")
protected BigInteger integerValue;
protected java.lang.Boolean booleanValue;
protected MeasureListType valueList;
@XmlList
protected List<BigInteger> integerValueList;
@XmlSchemaType(name = "anyURI")
protected String valueFile;
@XmlElementRef(name = "operationParameter", namespace = "http://www.opengis.net/gml/3.2", type = JAXBElement.class)
protected JAXBElement<OperationParameterPropertyType> operationParameter;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link MeasureType }
*
*/
public MeasureType getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link MeasureType }
*
*/
public void setValue(MeasureType value) {
this.value = value;
}
public boolean isSetValue() {
return (this.value!= null);
}
/**
* Gets the value of the dmsAngleValue property.
*
* @return
* possible object is
* {@link DMSAngleType }
*
*/
public DMSAngleType getDmsAngleValue() {
return dmsAngleValue;
}
/**
* Sets the value of the dmsAngleValue property.
*
* @param value
* allowed object is
* {@link DMSAngleType }
*
*/
public void setDmsAngleValue(DMSAngleType value) {
this.dmsAngleValue = value;
}
public boolean isSetDmsAngleValue() {
return (this.dmsAngleValue!= null);
}
/**
* Gets the value of the stringValue property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStringValue() {
return stringValue;
}
/**
* Sets the value of the stringValue property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStringValue(String value) {
this.stringValue = value;
}
public boolean isSetStringValue() {
return (this.stringValue!= null);
}
/**
* Gets the value of the integerValue property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getIntegerValue() {
return integerValue;
}
/**
* Sets the value of the integerValue property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setIntegerValue(BigInteger value) {
this.integerValue = value;
}
public boolean isSetIntegerValue() {
return (this.integerValue!= null);
}
/**
* Gets the value of the booleanValue property.
*
* @return
* possible object is
* {@link java.lang.Boolean }
*
*/
public java.lang.Boolean isBooleanValue() {
return booleanValue;
}
/**
* Sets the value of the booleanValue property.
*
* @param value
* allowed object is
* {@link java.lang.Boolean }
*
*/
public void setBooleanValue(java.lang.Boolean value) {
this.booleanValue = value;
}
public boolean isSetBooleanValue() {
return (this.booleanValue!= null);
}
/**
* Gets the value of the valueList property.
*
* @return
* possible object is
* {@link MeasureListType }
*
*/
public MeasureListType getValueList() {
return valueList;
}
/**
* Sets the value of the valueList property.
*
* @param value
* allowed object is
* {@link MeasureListType }
*
*/
public void setValueList(MeasureListType value) {
this.valueList = value;
}
public boolean isSetValueList() {
return (this.valueList!= null);
}
/**
* Gets the value of the integerValueList property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the integerValueList property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getIntegerValueList().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link BigInteger }
*
*
*/
public List<BigInteger> getIntegerValueList() {
if (integerValueList == null) {
integerValueList = new ArrayList<BigInteger>();
}
return this.integerValueList;
}
public boolean isSetIntegerValueList() {
return ((this.integerValueList!= null)&&(!this.integerValueList.isEmpty()));
}
public void unsetIntegerValueList() {
this.integerValueList = null;
}
/**
* Gets the value of the valueFile property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValueFile() {
return valueFile;
}
/**
* Sets the value of the valueFile property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValueFile(String value) {
this.valueFile = value;
}
public boolean isSetValueFile() {
return (this.valueFile!= null);
}
/**
* Gets the value of the operationParameter property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link OperationParameterPropertyType }{@code >}
* {@link JAXBElement }{@code <}{@link OperationParameterPropertyType }{@code >}
*
*/
public JAXBElement<OperationParameterPropertyType> getOperationParameter() {
return operationParameter;
}
/**
* Sets the value of the operationParameter property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link OperationParameterPropertyType }{@code >}
* {@link JAXBElement }{@code <}{@link OperationParameterPropertyType }{@code >}
*
*/
public void setOperationParameter(JAXBElement<OperationParameterPropertyType> value) {
this.operationParameter = value;
}
public boolean isSetOperationParameter() {
return (this.operationParameter!= 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) {
super.appendFields(locator, buffer, strategy);
{
MeasureType theValue;
theValue = this.getValue();
strategy.appendField(locator, this, "value", buffer, theValue);
}
{
DMSAngleType theDmsAngleValue;
theDmsAngleValue = this.getDmsAngleValue();
strategy.appendField(locator, this, "dmsAngleValue", buffer, theDmsAngleValue);
}
{
String theStringValue;
theStringValue = this.getStringValue();
strategy.appendField(locator, this, "stringValue", buffer, theStringValue);
}
{
BigInteger theIntegerValue;
theIntegerValue = this.getIntegerValue();
strategy.appendField(locator, this, "integerValue", buffer, theIntegerValue);
}
{
java.lang.Boolean theBooleanValue;
theBooleanValue = this.isBooleanValue();
strategy.appendField(locator, this, "booleanValue", buffer, theBooleanValue);
}
{
MeasureListType theValueList;
theValueList = this.getValueList();
strategy.appendField(locator, this, "valueList", buffer, theValueList);
}
{
List<BigInteger> theIntegerValueList;
theIntegerValueList = (this.isSetIntegerValueList()?this.getIntegerValueList():null);
strategy.appendField(locator, this, "integerValueList", buffer, theIntegerValueList);
}
{
String theValueFile;
theValueFile = this.getValueFile();
strategy.appendField(locator, this, "valueFile", buffer, theValueFile);
}
{
JAXBElement<OperationParameterPropertyType> theOperationParameter;
theOperationParameter = this.getOperationParameter();
strategy.appendField(locator, this, "operationParameter", buffer, theOperationParameter);
}
return buffer;
}
public void setIntegerValueList(List<BigInteger> value) {
this.integerValueList = null;
List<BigInteger> draftl = this.getIntegerValueList();
draftl.addAll(value);
}
}