/*
* 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.v212;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
*
* Coordinates can be included in a single string, but there is no
* facility for validating string content. The value of the 'cs' attribute
* is the separator for coordinate values, and the value of the 'ts'
* attribute gives the tuple separator (a single space by default); the
* default values may be changed to reflect local usage.
*
*
* <p>Java class for CoordinatesType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="CoordinatesType">
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="decimal" type="{http://www.w3.org/2001/XMLSchema}string" default="." />
* <attribute name="cs" type="{http://www.w3.org/2001/XMLSchema}string" default="," />
* <attribute name="ts" type="{http://www.w3.org/2001/XMLSchema}string" default=" " />
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CoordinatesType", propOrder = {
"value"
})
public class CoordinatesType {
@XmlValue
private String value;
@XmlAttribute
private String decimal;
@XmlAttribute
private String cs;
@XmlAttribute
private String ts;
public CoordinatesType() {
}
public CoordinatesType(final CoordinatesType that) {
if (that != null) {
this.cs = that.cs;
this.decimal = that.decimal;
this.ts = that.cs;
this.value = that.value;
}
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(final String value) {
this.value = value;
}
/**
* Gets the value of the decimal property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDecimal() {
if (decimal == null) {
return ".";
} else {
return decimal;
}
}
/**
* Sets the value of the decimal property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDecimal(final String value) {
this.decimal = value;
}
/**
* Gets the value of the cs property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCs() {
if (cs == null) {
return ",";
} else {
return cs;
}
}
/**
* Sets the value of the cs property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCs(final String value) {
this.cs = value;
}
/**
* Gets the value of the ts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTs() {
if (ts == null) {
return " ";
} else {
return ts;
}
}
/**
* Sets the value of the ts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTs(final String value) {
this.ts = value;
}
}