/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2016, 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.wps.xml.v200;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.geotoolkit.ows.xml.v200.ValueType;
/**
*
* Representation of a simple literal value (such as an integer, a real number, or a string).
*
* String representation of the actual value (e.g., "49").
*
*
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <simpleContent>
* <extension base="<http://www.opengis.net/ows/2.0>ValueType">
* <attribute name="dataType" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <attribute name="uom" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "LiteralValue")
public class LiteralValue extends ValueType implements org.geotoolkit.wps.xml.LiteralDataType {
@XmlAttribute(name = "dataType")
@XmlSchemaType(name = "anyURI")
protected String dataType;
@XmlAttribute(name = "uom")
@XmlSchemaType(name = "anyURI")
protected String uom;
public LiteralValue() {
}
public LiteralValue(final String value, final String dataType, final String uom) {
super(value);
this.dataType = dataType;
this.uom = uom;
}
/**
* Gets the value of the dataType property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getDataType() {
return dataType;
}
/**
* Sets the value of the dataType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setDataType(String value) {
this.dataType = value;
}
/**
* Gets the value of the uom property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getUom() {
return uom;
}
/**
* Sets the value of the uom property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setUom(String value) {
this.uom = value;
}
}