/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2012, 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.v200;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for VectorType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="VectorType">
* <complexContent>
* <extension base="{http://www.opengis.net/swe/2.0}AbstractDataComponentType">
* <sequence>
* <element name="coordinate" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <extension base="{http://www.opengis.net/swe/2.0}AnyNumericalPropertyType">
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
* </extension>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="referenceFrame" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <attribute name="localFrame" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "VectorType", propOrder = {
"coordinate"
})
public class VectorType extends AbstractDataComponentType {
@XmlElement(required = true)
private List<VectorType.Coordinate> coordinate;
@XmlAttribute(required = true)
@XmlSchemaType(name = "anyURI")
private String referenceFrame;
@XmlAttribute
@XmlSchemaType(name = "anyURI")
private String localFrame;
/**
* Gets the value of the coordinate property.
*
* Objects of the following type(s) are allowed in the list
* {@link VectorType.Coordinate }
*
*/
public List<VectorType.Coordinate> getCoordinate() {
if (coordinate == null) {
coordinate = new ArrayList<VectorType.Coordinate>();
}
return this.coordinate;
}
/**
* Gets the value of the referenceFrame property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReferenceFrame() {
return referenceFrame;
}
/**
* Sets the value of the referenceFrame property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReferenceFrame(String value) {
this.referenceFrame = value;
}
/**
* Gets the value of the localFrame property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLocalFrame() {
return localFrame;
}
/**
* Sets the value of the localFrame property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLocalFrame(String value) {
this.localFrame = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{http://www.opengis.net/swe/2.0}AnyNumericalPropertyType">
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Coordinate
extends AnyNumericalPropertyType
{
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NCName")
private String name;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
}
}