org.geotoolkit.metadata.iso.quality
Class DefaultConformanceResult

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by AbstractResult
                  extended by DefaultConformanceResult
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject, ConformanceResult, Result

@ThreadSafe
public class DefaultConformanceResult
extends AbstractResult
implements ConformanceResult

Information about the outcome of evaluating the obtained value (or set of values) against a specified acceptable conformance quality level.

Since:
2.1
Version:
3.19
Author:
Martin Desruisseaux (IRD, Geomatys), Touraïvane (IRD), Guilhem Legal (Geomatys)
See Also:
Serialized Form
Module:
metadata/geotk-metadata (download)    View source code for this class

Field Summary
 
Fields inherited from class MetadataEntity
identifiers
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
DefaultConformanceResult()
          Constructs an initially empty conformance result.
DefaultConformanceResult(Citation specification, InternationalString explanation, boolean pass)
          Creates a conformance result initialized to the given values.
DefaultConformanceResult(ConformanceResult source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
static DefaultConformanceResult castOrCopy(ConformanceResult object)
          Returns a Geotk metadata implementation with the same values than the given arbitrary implementation.
 InternationalString getExplanation()
          Returns the explanation of the meaning of conformance for this result.
 Citation getSpecification()
          Returns the citation of product specification or user requirement against which data is being evaluated.
 Boolean pass()
          Returns an indication of the conformance result.
 void setExplanation(InternationalString newValue)
          Sets the explanation of the meaning of conformance for this result.
 void setPass(Boolean newValue)
          Sets the indication of the conformance result.
 void setSpecification(Citation newValue)
          Sets the citation of product specification or user requirement against which data is being evaluated.
 
Methods inherited from class AbstractResult
castOrCopy
 
Methods inherited from class MetadataEntity
getIdentifier, getIdentifierMap, getIdentifiers, getStandard
 
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable
 
Methods inherited from class AbstractMetadata
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultConformanceResult

public DefaultConformanceResult()
Constructs an initially empty conformance result.


DefaultConformanceResult

public DefaultConformanceResult(ConformanceResult source)
Constructs a metadata entity initialized with the values from the specified metadata.

Parameters:
source - The metadata to copy, or null if none.
Since:
2.4

DefaultConformanceResult

public DefaultConformanceResult(Citation specification,
                                InternationalString explanation,
                                boolean pass)
Creates a conformance result initialized to the given values.

Parameters:
specification - Specification or requirement against which data is being evaluated.
explanation - The meaning of conformance for this result.
pass - Indication of the conformance result.
Method Detail

castOrCopy

public static DefaultConformanceResult castOrCopy(ConformanceResult object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. If the given object is null, then this method returns null. Otherwise if the given object is already a Geotk implementation, then the given object is returned unchanged. Otherwise a new Geotk implementation is created and initialized to the attribute values of the given object, using a shallow copy operation (i.e. attributes are not cloned).

Parameters:
object - The object to get as a Geotk implementation, or null if none.
Returns:
A Geotk implementation containing the values of the given object (may be the given object itself), or null if the argument was null.
Since:
3.18

getSpecification

public Citation getSpecification()
Returns the citation of product specification or user requirement against which data is being evaluated.

Specified by:
getSpecification in interface ConformanceResult

setSpecification

public void setSpecification(Citation newValue)
Sets the citation of product specification or user requirement against which data is being evaluated.

Parameters:
newValue - The new specification.

getExplanation

public InternationalString getExplanation()
Returns the explanation of the meaning of conformance for this result.

Specified by:
getExplanation in interface ConformanceResult

setExplanation

public void setExplanation(InternationalString newValue)
Sets the explanation of the meaning of conformance for this result.

Parameters:
newValue - The new explanation.

pass

public Boolean pass()
Returns an indication of the conformance result.

Specified by:
pass in interface ConformanceResult

setPass

public void setPass(Boolean newValue)
Sets the indication of the conformance result.

Parameters:
newValue - true if the test pass.


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.