org.geotools.metadata.iso.quality
Class QuantitativeResultImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.quality.ResultImpl
          extended byorg.geotools.metadata.iso.quality.QuantitativeResultImpl
All Implemented Interfaces:
java.lang.Cloneable, org.opengis.metadata.quality.QuantitativeResult, org.opengis.metadata.quality.Result, java.io.Serializable

public class QuantitativeResultImpl
extends ResultImpl
implements org.opengis.metadata.quality.QuantitativeResult

Information about the value (or set of values) obtained from applying a data quality measure.

Since:
2.1
Version:
$Id: QuantitativeResultImpl.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux, Toura?vane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
QuantitativeResultImpl()
          Constructs an initially empty quantitative result.
QuantitativeResultImpl(double[] values)
          Constructs a quantitative result initialized to the specified value.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this quantitative result with the specified object for equality.
protected  void freeze()
          Declares this metadata and all its attributes as unmodifiable.
 org.opengis.util.InternationalString getErrorStatistic()
          Statistical method used to determine the value, or if none.
 double[] getValues()
          Quantitative value or values, content determined by the evaluation procedure used.
 java.lang.Class getValueType()
          Value type for reporting a data quality result, or if none.
 javax.units.Unit getValueUnit()
          Value unit for reporting a data quality result, or if none.
 int hashCode()
          Returns a hash code value for this address.
 void setErrorStatistic(org.opengis.util.InternationalString newValue)
          Set the statistical method used to determine the value, or if none.
 void setValues(double[] newValues)
          Set the quantitative value or values, content determined by the evaluation procedure used.
 void setValueType(java.lang.Class newValue)
          Set the value type for reporting a data quality result, or if none.
 void setValueUnit(javax.units.Unit newValue)
          Set the value unit for reporting a data quality result, or if none.
 java.lang.String toString()
          Returns a string representation of this result.
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
appendLineSeparator, checkWritePermission, copyCollection, isModifiable, nonNullCollection, unmodifiable, unmodifiable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuantitativeResultImpl

public QuantitativeResultImpl()
Constructs an initially empty quantitative result.


QuantitativeResultImpl

public QuantitativeResultImpl(double[] values)
Constructs a quantitative result initialized to the specified value.

Method Detail

getValues

public double[] getValues()
Quantitative value or values, content determined by the evaluation procedure used.

Specified by:
getValues in interface org.opengis.metadata.quality.QuantitativeResult

setValues

public void setValues(double[] newValues)
Set the quantitative value or values, content determined by the evaluation procedure used.


getValueType

public java.lang.Class getValueType()
Value type for reporting a data quality result, or if none.

Specified by:
getValueType in interface org.opengis.metadata.quality.QuantitativeResult

setValueType

public void setValueType(java.lang.Class newValue)
Set the value type for reporting a data quality result, or if none.

To Do:
Verify if the value is of the requested type.

getValueUnit

public javax.units.Unit getValueUnit()
Value unit for reporting a data quality result, or if none.

Specified by:
getValueUnit in interface org.opengis.metadata.quality.QuantitativeResult

setValueUnit

public void setValueUnit(javax.units.Unit newValue)
Set the value unit for reporting a data quality result, or if none.


getErrorStatistic

public org.opengis.util.InternationalString getErrorStatistic()
Statistical method used to determine the value, or if none.

Specified by:
getErrorStatistic in interface org.opengis.metadata.quality.QuantitativeResult

setErrorStatistic

public void setErrorStatistic(org.opengis.util.InternationalString newValue)
Set the statistical method used to determine the value, or if none.


freeze

protected void freeze()
Declares this metadata and all its attributes as unmodifiable.

Overrides:
freeze in class MetadataEntity

equals

public boolean equals(java.lang.Object object)
Compare this quantitative result with the specified object for equality.


hashCode

public int hashCode()
Returns a hash code value for this address. For performance reason, this method do not uses all attributes for computing the hash code. Instead, it uses the attributes that are the most likely to be unique.


toString

public java.lang.String toString()
Returns a string representation of this result.

To Do:
Provides a more elaborated implementation.


Copyright © GeoTools. All Rights Reserved.