/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2011, Open Source Geospatial Foundation (OSGeo)
* (C) 2004-2005, Open Geospatial Consortium Inc.
*
* All Rights Reserved. http://www.opengis.org/legal/
*/
package org.opengis.metadata.quality;
import java.util.Collection;
import org.opengis.metadata.lineage.Lineage;
import org.opengis.annotation.UML;
import org.opengis.annotation.Profile;
import static org.opengis.annotation.Obligation.*;
import static org.opengis.annotation.Specification.*;
import static org.opengis.annotation.ComplianceLevel.*;
/**
* Quality information for the data specified by a data quality scope.
*
*
* @source $URL: http://svn.osgeo.org/geotools/trunk/modules/library/opengis/src/main/java/org/opengis/metadata/quality/DataQuality.java $
* @version <A HREF="http://www.opengeospatial.org/standards/as#01-111">ISO 19115</A>
* @author Martin Desruisseaux (IRD)
* @since GeoAPI 2.0
*/
@Profile (level=CORE)
@UML(identifier="DQ_DataQuality", specification=ISO_19115)
public interface DataQuality {
/**
* The specific data to which the data quality information applies.
*
* @return The specific data to which the data quality information applies.
*/
@UML(identifier="scope", obligation=MANDATORY, specification=ISO_19115)
Scope getScope();
/**
* Quantitative quality information for the data specified by the scope.
* Should be provided only if {@linkplain Scope#getLevel scope level} is
* {@linkplain org.opengis.metadata.maintenance.ScopeCode#DATASET dataset}.
*
* @return Quantitative quality information for the data.
*/
@UML(identifier="report", obligation=CONDITIONAL, specification=ISO_19115)
Collection<? extends Element> getReports();
/**
* Non-quantitative quality information about the lineage of the data specified by the scope.
* Should be provided only if {@linkplain Scope#getLevel scope level} is
* {@linkplain org.opengis.metadata.maintenance.ScopeCode#DATASET dataset}.
*
* @return Non-quantitative quality information about the lineage of the data specified,
* or {@code null}.
*/
@Profile (level=CORE)
@UML(identifier="lineage", obligation=CONDITIONAL, specification=ISO_19115)
Lineage getLineage();
}