/* * 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.sml.xml.v100; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; import org.geotoolkit.sml.xml.AbstractDataSource; /** * <p>Java class for DataSourceType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="DataSourceType"> * <complexContent> * <extension base="{http://www.opengis.net/sensorML/1.0}AbstractProcessType"> * <sequence> * <choice> * <sequence> * <element name="dataDefinition"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <choice minOccurs="0"> * <element ref="{http://www.opengis.net/swe/1.0}DataBlockDefinition"/> * <element ref="{http://www.opengis.net/swe/1.0}DataStreamDefinition"/> * </choice> * <attGroup ref="{http://www.opengis.net/gml}AssociationAttributeGroup"/> * </restriction> * </complexContent> * </complexType> * </element> * <element name="values"> * <complexType> * <complexContent> * <extension base="{http://www.w3.org/2001/XMLSchema}anyType"> * </extension> * </complexContent> * </complexType> * </element> * </sequence> * <element name="observationReference"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attGroup ref="{http://www.opengis.net/gml}AssociationAttributeGroup"/> * </restriction> * </complexContent> * </complexType> * </element> * </choice> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DataSourceType", propOrder = { "dataDefinition", "values", "observationReference" }) public class DataSourceType extends AbstractProcessType implements AbstractDataSource { private DataDefinition dataDefinition; private Values values; private ObservationReference observationReference; public DataSourceType() { } public DataSourceType(final AbstractDataSource ds) { super(ds); if (ds != null) { if (ds.getDataDefinition() != null) { this.dataDefinition = new DataDefinition(ds.getDataDefinition()); } if (ds.getValues() != null) { this.values = new Values(ds.getValues()); } if (ds.getObservationReference() != null) { this.observationReference = new ObservationReference(ds.getObservationReference()); } } } /** * Gets the value of the dataDefinition property. */ public DataDefinition getDataDefinition() { return dataDefinition; } /** * Sets the value of the dataDefinition property. */ public void setDataDefinition(final DataDefinition value) { this.dataDefinition = value; } /** * Gets the value of the values property. */ public Values getValues() { return values; } /** * Sets the value of the values property. */ public void setValues(final Values value) { this.values = value; } /** * Gets the value of the observationReference property. */ public ObservationReference getObservationReference() { return observationReference; } /** * Sets the value of the observationReference property. */ public void setObservationReference(final ObservationReference value) { this.observationReference = value; } }