/* * 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 DataChoiceType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="DataChoiceType"> * <complexContent> * <extension base="{http://www.opengis.net/swe/2.0}AbstractDataComponentType"> * <sequence> * <element name="choiceValue" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{http://www.opengis.net/swe/2.0}Category"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="item" maxOccurs="unbounded" minOccurs="2"> * <complexType> * <complexContent> * <extension base="{http://www.opengis.net/swe/2.0}AbstractDataComponentPropertyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" /> * </extension> * </complexContent> * </complexType> * </element> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DataChoiceType", propOrder = { "choiceValue", "item" }) public class DataChoiceType extends AbstractDataComponentType { private DataChoiceType.ChoiceValue choiceValue; @XmlElement(required = true) private List<DataChoiceType.Item> item; /** * Gets the value of the choiceValue property. * * @return * possible object is * {@link DataChoiceType.ChoiceValue } * */ public DataChoiceType.ChoiceValue getChoiceValue() { return choiceValue; } /** * Sets the value of the choiceValue property. * * @param value * allowed object is * {@link DataChoiceType.ChoiceValue } * */ public void setChoiceValue(DataChoiceType.ChoiceValue value) { this.choiceValue = value; } /** * Gets the value of the item property. * * Objects of the following type(s) are allowed in the list * {@link DataChoiceType.Item } * */ public List<DataChoiceType.Item> getItem() { if (item == null) { item = new ArrayList<DataChoiceType.Item>(); } return this.item; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{http://www.opengis.net/swe/2.0}Category"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "category" }) public static class ChoiceValue { @XmlElement(name = "Category", required = true) private CategoryType category; /** * Gets the value of the category property. * * @return * possible object is * {@link CategoryType } * */ public CategoryType getCategory() { return category; } /** * Sets the value of the category property. * * @param value * allowed object is * {@link CategoryType } * */ public void setCategory(CategoryType value) { this.category = 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}AbstractDataComponentPropertyType"> * <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 Item extends AbstractDataComponentPropertyType { @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; } } }