/*
* 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.wcs.xml.v100;
import java.util.List;
import java.util.Collections;
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;
import org.geotoolkit.wcs.xml.DescribeCoverageResponse;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* WCS version 1.0.0
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.opengis.net/wcs}CoverageOffering" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" fixed="1.0.0" />
* <attribute name="updateSequence" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
* @author Guilhem Legal
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"coverageOffering"
})
@XmlRootElement(name = "CoverageDescription")
public class CoverageDescription implements DescribeCoverageResponse {
@XmlElement(name = "CoverageOffering", required = true)
private List<CoverageOfferingType> coverageOffering;
@XmlAttribute(required = true)
private String version;
@XmlAttribute
private String updateSequence;
/**
* Empty constructor used by JAXB.
*/
CoverageDescription() {
}
/**
* Build a new response for a DescribeCoverage request.
*/
public CoverageDescription(final List<CoverageOfferingType> coverageOffering, final String version) {
this.coverageOffering = coverageOffering;
this.version = version;
}
/**
* Gets the value of the coverageOffering property.
*/
public List<CoverageOfferingType> getCoverageOffering() {
return Collections.unmodifiableList(coverageOffering);
}
/**
* Gets the value of the version property.
*
*/
public String getVersion() {
if (version == null) {
return "1.0.0";
} else {
return version;
}
}
/**
* Gets the value of the updateSequence property.
*/
public String getUpdateSequence() {
return updateSequence;
}
}