/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2014, 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.
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// 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: 2014.04.20 at 07:08:32 PM CEST
//
package org.geotoolkit.owc.xml.v10;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import org.w3c.dom.Element;
/**
*
* Service operations useful to retrieve the information.
*
*
* <p>Java class for OperationType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="OperationType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice maxOccurs="unbounded">
* <element name="request" type="{http://www.opengis.net/owc/1.0}ContentType" minOccurs="0"/>
* <element name="result" type="{http://www.opengis.net/owc/1.0}ContentType" minOccurs="0"/>
* <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
* </choice>
* <attribute name="method" type="{http://www.opengis.net/owc/1.0}MethodCodeType" default="GET" />
* <attribute name="code" use="required" type="{http://www.opengis.net/owc/1.0}OperationCodeType" />
* <attribute name="href" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* <attribute name="type" type="{http://www.w3.org/2005/Atom}ContentTypeType" />
* <anyAttribute processContents='lax' namespace='##other'/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OperationType", propOrder = {
"requestOrResultOrAny"
})
public class OperationType {
@XmlElementRefs({
@XmlElementRef(name = "request", namespace = "http://www.opengis.net/owc/1.0", type = JAXBElement.class, required = false),
@XmlElementRef(name = "result", namespace = "http://www.opengis.net/owc/1.0", type = JAXBElement.class, required = false)
})
@XmlAnyElement(lax = true)
protected List<Object> requestOrResultOrAny;
@XmlAttribute(name = "method")
protected MethodCodeType method;
@XmlAttribute(name = "code", required = true)
protected String code;
@XmlAttribute(name = "href", required = true)
@XmlSchemaType(name = "anyURI")
protected String href;
@XmlAttribute(name = "type")
protected String type;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the requestOrResultOrAny 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 requestOrResultOrAny property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRequestOrResultOrAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link Element }
* {@link JAXBElement }{@code <}{@link ContentType }{@code >}
* {@link JAXBElement }{@code <}{@link ContentType }{@code >}
*
*
*/
public List<Object> getRequestOrResultOrAny() {
if (requestOrResultOrAny == null) {
requestOrResultOrAny = new ArrayList<Object>();
}
return this.requestOrResultOrAny;
}
/**
* Gets the value of the method property.
*
* @return
* possible object is
* {@link MethodCodeType }
*
*/
public MethodCodeType getMethod() {
if (method == null) {
return MethodCodeType.GET;
} else {
return method;
}
}
/**
* Sets the value of the method property.
*
* @param value
* allowed object is
* {@link MethodCodeType }
*
*/
public void setMethod(MethodCodeType value) {
this.method = value;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(String value) {
this.code = value;
}
/**
* Gets the value of the href property.
*
* @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;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}