/* * 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.observation.xml.v100; import java.util.Collection; import java.util.Date; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; import org.apache.sis.metadata.iso.DefaultIdentifier; import org.apache.sis.metadata.iso.citation.DefaultCitation; import org.apache.sis.metadata.iso.quality.AbstractResult; import org.apache.sis.util.iso.SimpleInternationalString; import org.opengis.metadata.Identifier; import org.opengis.metadata.citation.Citation; import org.opengis.metadata.quality.Element; import org.opengis.metadata.quality.EvaluationMethodType; import org.opengis.metadata.quality.Result; import org.opengis.util.InternationalString; /** * * @version $Id: * @author Guilhem Legal * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Element") public class ElementType implements Element { /** * Name of the test applied to the data. */ private Collection<SimpleInternationalString> namesOfMeasure; /** * Code identifying a registered standard procedure, or {@code null} if none. */ private DefaultIdentifier measureIdentification; /** * Description of the measure being determined. */ private SimpleInternationalString measureDescription; /** * Type of method used to evaluate quality of the dataset, or {@code null} if unspecified. JAXB issue private EvaluationMethodType evaluationMethodType; */ /** * Description of the evaluation method. */ private SimpleInternationalString evaluationMethodDescription; /** * Reference to the procedure information, or {@code null} if none. */ private DefaultCitation evaluationProcedure; /** * Date that the metadata was created. * The array length is 1 for a single date, or 2 for a range. * Returns {@code null} if this information is not available. * * @deprecated Replaced by {@link #getDates}. */ private Date[] date; /** * Date or range of dates on which a data quality measure was applied. * The collection size is 1 for a single date, or 2 for a range. Returns * an empty collection if this information is not available. * * @since Types 2.1 */ private Collection<Date> dates; /** * Value (or set of values) obtained from applying a data quality measure or the out * come of evaluating the obtained value (or set of values) against a specified * acceptable conformance quality level. * * @deprecated Replaced by {@link #getResults}. */ private AbstractResult result; /** * Value (or set of values) obtained from applying a data quality measure or the out * come of evaluating the obtained value (or set of values) against a specified * acceptable conformance quality level. * * @since Types 2.1 */ private Collection<? extends AbstractResult> results; /** * */ public ElementType() { } /** * Name of the test applied to the data. */ public Collection<InternationalString> getNamesOfMeasure(){ throw new UnsupportedOperationException("Not supported yet."); //return namesOfMeasure; } /** * Code identifying a registered standard procedure, or {@code null} if none. */ public Identifier getMeasureIdentification(){ return measureIdentification; } /** * Description of the measure being determined. */ public InternationalString getMeasureDescription(){ return measureDescription; } /** * Type of method used to evaluate quality of the dataset, or {@code null} if unspecified. */ public EvaluationMethodType getEvaluationMethodType(){ throw new UnsupportedOperationException("Not supported yet."); //return evaluationMethodType; } /** * Description of the evaluation method. */ public InternationalString getEvaluationMethodDescription(){ return evaluationMethodDescription; } /** * Reference to the procedure information, or {@code null} if none. */ public Citation getEvaluationProcedure(){ return evaluationProcedure; } /** * Date that the metadata was created. * The array length is 1 for a single date, or 2 for a range. * Returns {@code null} if this information is not available. * * @deprecated Replaced by {@link #getDates}. */ public Date[] getDate(){ return date; } /** * Date or range of dates on which a data quality measure was applied. * The collection size is 1 for a single date, or 2 for a range. Returns * an empty collection if this information is not available. * * @since Types 2.1 */ public Collection<Date> getDates(){ return dates; } /** * Value (or set of values) obtained from applying a data quality measure or the out * come of evaluating the obtained value (or set of values) against a specified * acceptable conformance quality level. * * @deprecated Replaced by {@link #getResults}. */ public AbstractResult getResult(){ return result; } /** * Value (or set of values) obtained from applying a data quality measure or the out * come of evaluating the obtained value (or set of values) against a specified * acceptable conformance quality level. * * @since Types 2.1 */ public Collection<? extends Result> getResults(){ return results; } }