/* * 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.swes.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.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import org.geotoolkit.ows.xml.RequestBase; import org.apache.sis.util.Version; /** * <p>Java class for ExtensibleRequestType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ExtensibleRequestType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="extension" type="{http://www.w3.org/2001/XMLSchema}anyType" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="service" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ExtensibleRequestType", propOrder = { "extension" }) @XmlSeeAlso({ // GetFeatureOfInterestType.class, // GetObservationType.class, // GetResultType.class, // InsertResultType.class, // GetObservationByIdType.class, // InsertResultTemplateType.class, // InsertObservationType.class, // GetResultTemplateType.class, DeleteSensorType.class, DescribeSensorType.class, InsertSensorType.class, UpdateSensorDescriptionType.class }) public abstract class ExtensibleRequestType implements RequestBase { private List<Object> extension; @XmlAttribute(required = true) private String version; @XmlAttribute(required = true) private String service; public ExtensibleRequestType() { } public ExtensibleRequestType(final String version, final String service) { this.service = service; this.version = version; } public ExtensibleRequestType(final String version, final String service, final List<Object> extension) { this.service = service; this.version = version; this.extension = extension; } /** * Gets the value of the extension property. * * Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List<Object> getExtension() { if (extension == null) { extension = new ArrayList<>(); } return this.extension; } public void setExtension(List<Object> extension) { this.extension = extension; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ @Override public Version getVersion() { if (version != null) { return new Version(version); } return null; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ @Override public void setVersion(String value) { this.version = value; } /** * Gets the value of the service property. * * @return * possible object is * {@link String } * */ @Override public String getService() { return service; } /** * Sets the value of the service property. * * @param value * allowed object is * {@link String } * */ @Override public void setService(String value) { this.service = value; } }