/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2013, 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.ows.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;
/**
* Request to a service to perform the GetResourceByID
* operation. This operation allows a client to retrieve one or more
* identified resources, including datasets and resources that describe
* datasets or parameters. In this XML encoding, no "request" parameter is
* included, since the element name specifies the specific
* operation.
*
* <p>Java class for GetResourceByIdType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="GetResourceByIdType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ResourceID" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.opengis.net/ows/2.0}OutputFormat" minOccurs="0"/>
* </sequence>
* <attribute name="service" use="required" type="{http://www.opengis.net/ows/2.0}ServiceType" />
* <attribute name="version" use="required" type="{http://www.opengis.net/ows/2.0}VersionType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetResourceByIdType", propOrder = {
"resourceID",
"outputFormat"
})
public class GetResourceByIdType {
@XmlElement(name = "ResourceID")
@XmlSchemaType(name = "anyURI")
private List<String> resourceID;
@XmlElement(name = "OutputFormat")
private String outputFormat;
@XmlAttribute(required = true)
private String service;
@XmlAttribute(required = true)
private String version;
/**
* Gets the value of the resourceID property.
*
*/
public List<String> getResourceID() {
if (resourceID == null) {
resourceID = new ArrayList<String>();
}
return this.resourceID;
}
/**
* Optional reference to the data format to be used for
* response to this operation request. This element shall be included
* when multiple output formats are available for the selected
* resource(s), and the client desires a format other than the
* specified default, if any.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOutputFormat() {
return outputFormat;
}
/**
* Sets the value of the outputFormat property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOutputFormat(String value) {
this.outputFormat = value;
}
/**
* Gets the value of the service property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getService() {
return service;
}
/**
* Sets the value of the service property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setService(String value) {
this.service = value;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(String value) {
this.version = value;
}
}