/** * Creates a new validator. * * @param scope {@code FEATURE} if the object to validate is a feature, or * {@code ATTRIBUTE} for an attribute, or {@code null} otherwise. */ Validator(final ScopeCode scope) { quality = new DefaultDataQuality(); if (scope != null) { quality.setScope(new DefaultScope(scope)); } }
/** * Sets the digital representation of data quality measures composing the coverage result. * * @param newValue the new spatial representation value. */ public void setResultSpatialRepresentation(final SpatialRepresentation newValue) { checkWritePermission(); resultSpatialRepresentation = newValue; }
/** * Sets the name of the test applied to the data. * * @param newValues the new name of measures. */ public void setNamesOfMeasure(final Collection<? extends InternationalString> newValues) { namesOfMeasure = writeCollection(newValues, namesOfMeasure, InternationalString.class); }
/** * Sets the explanation of the meaning of conformance for this result. * * @param newValue the new explanation. */ public void setExplanation(final InternationalString newValue) { checkWritePermission(); explanation = newValue; }
/** * Sets the description of the evaluation method. * * @param newValue the new evaluation method description. */ public void setEvaluationMethodDescription(final InternationalString newValue) { checkWritePermission(); evaluationMethodDescription = newValue; }
/** * Sets the value unit for reporting a data quality result. * * @param newValue the new value unit. */ public void setValueUnit(final Unit<?> newValue) { checkWritePermission(valueUnit); valueUnit = newValue; }
/** * Sets the quantitative value or values, content determined by the evaluation procedure used. * * @param newValues the new values. */ public void setValues(final List<? extends Record> newValues) { values = writeList(newValues, values, Record.class); }
/** * Sets the quantitative quality information for the data specified by the scope. * * @param newValues the new reports. */ public void setReports(final Collection<? extends Element> newValues) { reports = writeCollection(newValues, reports, Element.class); }
/** * Sets the non-quantitative quality information about the lineage of the data specified by the scope. * * @param newValue the new lineage. */ public void setLineage(final Lineage newValue) { checkWritePermission(); lineage = newValue; } }
/** * Sets the information about the data file containing the result coverage data. * * @param newValue the new result file value. */ public void setResultFile(final DataFile newValue) { checkWritePermission(); resultFile = newValue; } }
/** * Sets the citation of product specification or user requirement against which data is being evaluated. * * @param newValue the new specification. */ public void setSpecification(final Citation newValue) { checkWritePermission(specification); specification = newValue; }
/** * Sets the name of the test applied to the data. * * @param newValues the new name of measures. */ public void setNamesOfMeasure(final Collection<? extends InternationalString> newValues) { namesOfMeasure = writeCollection(newValues, namesOfMeasure, InternationalString.class); }
/** * Sets the description of the measure being determined. * * @param newValue the new measure description. */ public void setMeasureDescription(final InternationalString newValue) { checkWritePermission(measureDescription); measureDescription = newValue; }
/** * Sets the statistical method used to determine the value, or {@code null} if none. * * @param newValue the new error statistic. */ public void setErrorStatistic(final InternationalString newValue) { checkWritePermission(errorStatistic); errorStatistic = newValue; } }
/** * Sets the information about the data file containing the result coverage data. * * @param newValue the new result file value. */ public void setResultFile(final DataFile newValue) { checkWritePermission(resultFile); resultFile = newValue; } }
/** * Sets the indication of the conformance result. * * @param newValue {@code true} if the test pass. */ public void setPass(final Boolean newValue) { checkWritePermission(pass); pass = newValue; } }
/** * Sets the 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. * * @param newValues the new results. */ public void setResults(final Collection<? extends Result> newValues) { results = writeCollection(newValues, results, Result.class); } }
/** * Sets the reference to the procedure information. * * @param newValue the new evaluation procedure. */ public void setEvaluationProcedure(final Citation newValue) { checkWritePermission(evaluationProcedure); evaluationProcedure = newValue; }
/** * Sets the digital representation of data quality measures composing the coverage result. * * @param newValue the new spatial representation value. */ public void setResultSpatialRepresentation(final SpatialRepresentation newValue) { checkWritePermission(resultSpatialRepresentation); resultSpatialRepresentation = newValue; }
/** * Sets the indication of the conformance result. * * @param newValue {@code true} if the test pass. */ public void setPass(final Boolean newValue) { checkWritePermission(); pass = newValue; } }