public class DefaultConformanceResult extends AbstractResult implements ConformanceResult
Defined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultConformanceResult()
Constructs an initially empty conformance result.
|
DefaultConformanceResult(Citation specification,
CharSequence explanation,
boolean pass)
Creates a conformance result initialized to the given values.
|
DefaultConformanceResult(ConformanceResult object)
Constructs a new instance initialized with the values from the specified metadata object.
|
Modifier and Type | Method and Description |
---|---|
static DefaultConformanceResult |
castOrCopy(ConformanceResult object)
Returns a SIS metadata implementation with the values of 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.
|
castOrCopy
getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultConformanceResult()
public DefaultConformanceResult(Citation specification, CharSequence explanation, boolean pass)
specification
- Specification or requirement against which data is being evaluated, or null
.explanation
- The meaning of conformance for this result, or null
.pass
- Indication of the conformance result, or null
.public DefaultConformanceResult(ConformanceResult object)
object
- The metadata to copy values from, or null
if none.castOrCopy(ConformanceResult)
public static DefaultConformanceResult castOrCopy(ConformanceResult object)
null
, then this method returns null
.DefaultConformanceResult
, then it is returned unchanged.DefaultConformanceResult
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.public Citation getSpecification()
getSpecification
in interface ConformanceResult
null
.public void setSpecification(Citation newValue)
newValue
- The new specification.public InternationalString getExplanation()
getExplanation
in interface ConformanceResult
null
.public void setExplanation(InternationalString newValue)
newValue
- The new explanation.public Boolean pass()
pass
in interface ConformanceResult
null
.public void setPass(Boolean newValue)
newValue
- true
if the test pass.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.