/* * 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.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; import org.geotoolkit.swe.xml.AbstractAllowedTokens; /** * <p>Java class for AllowedTokensType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="AllowedTokensType"> * <complexContent> * <extension base="{http://www.opengis.net/swe/2.0}AbstractSWEType"> * <sequence> * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="pattern" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AllowedTokensType", propOrder = { "value", "pattern" }) public class AllowedTokensType extends AbstractSWEType implements AbstractAllowedTokens { private List<String> value; private String pattern; /** * Gets the value of the value property. * * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getValue() { if (value == null) { value = new ArrayList<String>(); } return this.value; } /** * Gets the value of the pattern property. * * @return * possible object is * {@link String } * */ public String getPattern() { return pattern; } /** * Sets the value of the pattern property. * * @param value * allowed object is * {@link String } * */ public void setPattern(String value) { this.pattern = value; } @Override public List<JAXBElement<List<String>>> getValueList() { return null; } }