/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008 - 2009, 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.owc.xml.v030;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for OWSContextType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="OWSContextType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="General" type="{http://www.opengis.net/ows-context}GeneralType"/>
* <element ref="{http://www.opengis.net/ows-context}ResourceList"/>
* </sequence>
* <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="0.3.0" />
* <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OWSContextType", propOrder = {
"general",
"resourceList"
})
@XmlRootElement(name = "OWSContext", namespace = "http://www.opengis.net/ows-context")
public class OWSContextType {
@XmlElement(name = "General", required = true)
protected GeneralType general;
@XmlElement(name = "ResourceList", required = true)
protected ResourceListType resourceList;
@XmlAttribute(required = true)
protected String version;
@XmlAttribute(required = true)
protected String id;
/**
* Gets the value of the general property.
*
* @return
* possible object is
* {@link GeneralType }
*
*/
public GeneralType getGeneral() {
return general;
}
/**
* Sets the value of the general property.
*
* @param value
* allowed object is
* {@link GeneralType }
*
*/
public void setGeneral(final GeneralType value) {
this.general = value;
}
/**
* Gets the value of the resourceList property.
*
* @return
* possible object is
* {@link ResourceListType }
*
*/
public ResourceListType getResourceList() {
return resourceList;
}
/**
* Sets the value of the resourceList property.
*
* @param value
* allowed object is
* {@link ResourceListType }
*
*/
public void setResourceList(final ResourceListType value) {
this.resourceList = value;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
if (version == null) {
return "0.3.0";
} else {
return version;
}
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(final String value) {
this.version = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(final String value) {
this.id = value;
}
}