/** * * geo-platform * Rich webgis framework * http://geo-platform.org * ==================================================================== * * Copyright (C) 2008-2017 geoSDI Group (CNR IMAA - Potenza - ITALY). * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. This program 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 General Public License * for more details. You should have received a copy of the GNU General * Public License along with this program. If not, see http://www.gnu.org/licenses/ * * ==================================================================== * * Linking this library statically or dynamically with other modules is * making a combined work based on this library. Thus, the terms and * conditions of the GNU General Public License cover the whole combination. * * As a special exception, the copyright holders of this library give you permission * to link this library with independent modules to produce an executable, regardless * of the license terms of these independent modules, and to copy and distribute * the resulting executable under terms of your choice, provided that you also meet, * for each linked independent module, the terms and conditions of the license of * that module. An independent module is a module which is not derived from or * based on this library. If you modify this library, you may extend this exception * to your version of the library, but you are not obligated to do so. If you do not * wish to do so, delete this exception statement from your version. */ // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.07.16 at 12:48:05 PM CEST // package org.geosdi.geoplatform.xml.wps.v100; 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 org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy; import org.jvnet.jaxb2_commons.lang.ToString; import org.jvnet.jaxb2_commons.lang.ToStringStrategy; import org.jvnet.jaxb2_commons.locator.ObjectLocator; /** * Reference to an input or output value that is a web accessible resource. * * <p>Java class for InputReferenceType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="InputReferenceType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence minOccurs="0"> * <element name="Header" maxOccurs="unbounded" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * <choice minOccurs="0"> * <element name="Body" type="{http://www.w3.org/2001/XMLSchema}anyType"/> * <element name="BodyReference"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/> * </restriction> * </complexContent> * </complexType> * </element> * </choice> * </sequence> * <attGroup ref="{http://www.opengis.net/wps/1.0.0}ComplexDataEncoding"/> * <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/> * <attribute name="method" default="GET"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="GET"/> * <enumeration value="POST"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "InputReferenceType", propOrder = { "header", "body", "bodyReference" }) public class InputReferenceType implements ToString { @XmlElement(name = "Header") protected List<InputReferenceType.Header> header; @XmlElement(name = "Body") protected Object body; @XmlElement(name = "BodyReference") protected InputReferenceType.BodyReference bodyReference; @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink", required = true) @XmlSchemaType(name = "anyURI") protected String href; @XmlAttribute(name = "method") protected String method; @XmlAttribute(name = "mimeType") protected String mimeType; @XmlAttribute(name = "encoding") @XmlSchemaType(name = "anyURI") protected String encoding; @XmlAttribute(name = "schema") @XmlSchemaType(name = "anyURI") protected String schema; /** * Gets the value of the header property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the header property. * * <p> * For example, to add a new item, do as follows: * <pre> * getHeader().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link InputReferenceType.Header } * * */ public List<InputReferenceType.Header> getHeader() { if (header == null) { header = new ArrayList<InputReferenceType.Header>(); } return this.header; } public boolean isSetHeader() { return ((this.header!= null)&&(!this.header.isEmpty())); } public void unsetHeader() { this.header = null; } /** * Gets the value of the body property. * * @return * possible object is * {@link Object } * */ public Object getBody() { return body; } /** * Sets the value of the body property. * * @param value * allowed object is * {@link Object } * */ public void setBody(Object value) { this.body = value; } public boolean isSetBody() { return (this.body!= null); } /** * Gets the value of the bodyReference property. * * @return * possible object is * {@link InputReferenceType.BodyReference } * */ public InputReferenceType.BodyReference getBodyReference() { return bodyReference; } /** * Sets the value of the bodyReference property. * * @param value * allowed object is * {@link InputReferenceType.BodyReference } * */ public void setBodyReference(InputReferenceType.BodyReference value) { this.bodyReference = value; } public boolean isSetBodyReference() { return (this.bodyReference!= null); } /** * Reference to a web-accessible resource that can be used as input, or is provided by the process as output. This attribute shall contain a URL from which this input/output can be electronically retrieved. * * @return * possible object is * {@link String } * */ public String getHref() { return href; } /** * Sets the value of the href property. * * @param value * allowed object is * {@link String } * */ public void setHref(String value) { this.href = value; } public boolean isSetHref() { return (this.href!= null); } /** * Gets the value of the method property. * * @return * possible object is * {@link String } * */ public String getMethod() { if (method == null) { return "GET"; } else { return method; } } /** * Sets the value of the method property. * * @param value * allowed object is * {@link String } * */ public void setMethod(String value) { this.method = value; } public boolean isSetMethod() { return (this.method!= null); } /** * Gets the value of the mimeType property. * * @return * possible object is * {@link String } * */ public String getMimeType() { return mimeType; } /** * Sets the value of the mimeType property. * * @param value * allowed object is * {@link String } * */ public void setMimeType(String value) { this.mimeType = value; } public boolean isSetMimeType() { return (this.mimeType!= null); } /** * Gets the value of the encoding property. * * @return * possible object is * {@link String } * */ public String getEncoding() { return encoding; } /** * Sets the value of the encoding property. * * @param value * allowed object is * {@link String } * */ public void setEncoding(String value) { this.encoding = value; } public boolean isSetEncoding() { return (this.encoding!= null); } /** * Gets the value of the schema property. * * @return * possible object is * {@link String } * */ public String getSchema() { return schema; } /** * Sets the value of the schema property. * * @param value * allowed object is * {@link String } * */ public void setSchema(String value) { this.schema = value; } public boolean isSetSchema() { return (this.schema!= null); } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { List<InputReferenceType.Header> theHeader; theHeader = (this.isSetHeader()?this.getHeader():null); strategy.appendField(locator, this, "header", buffer, theHeader); } { Object theBody; theBody = this.getBody(); strategy.appendField(locator, this, "body", buffer, theBody); } { InputReferenceType.BodyReference theBodyReference; theBodyReference = this.getBodyReference(); strategy.appendField(locator, this, "bodyReference", buffer, theBodyReference); } { String theHref; theHref = this.getHref(); strategy.appendField(locator, this, "href", buffer, theHref); } { String theMethod; theMethod = this.getMethod(); strategy.appendField(locator, this, "method", buffer, theMethod); } { String theMimeType; theMimeType = this.getMimeType(); strategy.appendField(locator, this, "mimeType", buffer, theMimeType); } { String theEncoding; theEncoding = this.getEncoding(); strategy.appendField(locator, this, "encoding", buffer, theEncoding); } { String theSchema; theSchema = this.getSchema(); strategy.appendField(locator, this, "schema", buffer, theSchema); } return buffer; } public void setHeader(List<InputReferenceType.Header> value) { this.header = null; List<InputReferenceType.Header> draftl = this.getHeader(); draftl.addAll(value); } /** * <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"> * <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class BodyReference implements ToString { @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink", required = true) @XmlSchemaType(name = "anyURI") protected String href; /** * Reference to a remote document to be used as the body of the an HTTP POST request message. This attribute shall contain a URL from which this input can be electronically retrieved. * * @return * possible object is * {@link String } * */ public String getHref() { return href; } /** * Sets the value of the href property. * * @param value * allowed object is * {@link String } * */ public void setHref(String value) { this.href = value; } public boolean isSetHref() { return (this.href!= null); } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theHref; theHref = this.getHref(); strategy.appendField(locator, this, "href", buffer, theHref); } return buffer; } } /** * <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"> * <attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Header implements ToString { @XmlAttribute(name = "key", required = true) protected String key; @XmlAttribute(name = "value", required = true) protected String value; /** * Gets the value of the key property. * * @return * possible object is * {@link String } * */ public String getKey() { return key; } /** * Sets the value of the key property. * * @param value * allowed object is * {@link String } * */ public void setKey(String value) { this.key = value; } public boolean isSetKey() { return (this.key!= null); } /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } public boolean isSetValue() { return (this.value!= null); } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theKey; theKey = this.getKey(); strategy.appendField(locator, this, "key", buffer, theKey); } { String theValue; theValue = this.getValue(); strategy.appendField(locator, this, "value", buffer, theValue); } return buffer; } } }