/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2012, 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.swes.xml.v200; import java.util.ArrayList; import java.util.List; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for AbstractContentsType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="AbstractContentsType"> * <complexContent> * <extension base="{http://www.opengis.net/swes/2.0}AbstractSWESType"> * <sequence> * <element name="procedureDescriptionFormat" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> * <element name="observableProperty" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> * <element name="relatedFeature" maxOccurs="unbounded" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{http://www.opengis.net/swes/2.0}FeatureRelationship"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="offering" maxOccurs="unbounded" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{http://www.opengis.net/swes/2.0}AbstractOffering"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AbstractContentsType", propOrder = { "procedureDescriptionFormat", "observableProperty", "relatedFeature", "offering" }) /*@XmlSeeAlso({ ContentsType.class })*/ public abstract class AbstractContentsType extends AbstractSWESType { @XmlSchemaType(name = "anyURI") private List<String> procedureDescriptionFormat; @XmlSchemaType(name = "anyURI") private List<String> observableProperty; private List<AbstractContentsType.RelatedFeature> relatedFeature; private List<AbstractContentsType.Offering> offering; public AbstractContentsType() { } public AbstractContentsType(final List<JAXBElement<? extends AbstractOfferingType>> offerings) { this.offering = new ArrayList<Offering>(); for (JAXBElement<? extends AbstractOfferingType> off : offerings) { this.offering.add(new Offering(off)); } } /** * Gets the value of the procedureDescriptionFormat property. * * Objects of the following type(s) are allowed in the list * {@link String } * */ public List<String> getProcedureDescriptionFormat() { if (procedureDescriptionFormat == null) { procedureDescriptionFormat = new ArrayList<String>(); } return this.procedureDescriptionFormat; } /** * Gets the value of the observableProperty property. * * Objects of the following type(s) are allowed in the list * {@link String } * */ public List<String> getObservableProperty() { if (observableProperty == null) { observableProperty = new ArrayList<String>(); } return this.observableProperty; } /** * Gets the value of the relatedFeature property. * * Objects of the following type(s) are allowed in the list * {@link AbstractContentsType.RelatedFeature } * */ public List<AbstractContentsType.RelatedFeature> getRelatedFeature() { if (relatedFeature == null) { relatedFeature = new ArrayList<AbstractContentsType.RelatedFeature>(); } return this.relatedFeature; } /** * Gets the value of the offering property. * * Objects of the following type(s) are allowed in the list * {@link AbstractContentsType.Offering } * * */ public List<AbstractContentsType.Offering> getOffering() { if (offering == null) { offering = new ArrayList<AbstractContentsType.Offering>(); } return this.offering; } /** * <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"> * <sequence> * <element ref="{http://www.opengis.net/swes/2.0}AbstractOffering"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "abstractOffering" }) public static class Offering { @XmlElementRef(name = "AbstractOffering", namespace = "http://www.opengis.net/swes/2.0", type = JAXBElement.class) private JAXBElement<? extends AbstractOfferingType> abstractOffering; public Offering() { } public Offering(final JAXBElement<? extends AbstractOfferingType> off) { if (off != null) { this.abstractOffering = off; } } /** * Gets the value of the abstractOffering property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link ObservationOfferingType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractOfferingType }{@code >} * */ public JAXBElement<? extends AbstractOfferingType> getAbstractOffering() { return abstractOffering; } /** * Sets the value of the abstractOffering property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link ObservationOfferingType }{@code >} * {@link JAXBElement }{@code <}{@link AbstractOfferingType }{@code >} * */ public void setAbstractOffering(JAXBElement<? extends AbstractOfferingType> value) { this.abstractOffering = ((JAXBElement<? extends AbstractOfferingType> ) 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"> * <sequence> * <element ref="{http://www.opengis.net/swes/2.0}FeatureRelationship"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "featureRelationship" }) public static class RelatedFeature { @XmlElement(name = "FeatureRelationship", required = true) private FeatureRelationshipType featureRelationship; /** * Gets the value of the featureRelationship property. * * @return * possible object is * {@link FeatureRelationshipType } * */ public FeatureRelationshipType getFeatureRelationship() { return featureRelationship; } /** * Sets the value of the featureRelationship property. * * @param value * allowed object is * {@link FeatureRelationshipType } * */ public void setFeatureRelationship(FeatureRelationshipType value) { this.featureRelationship = value; } } }