/** Returns the list of enumerations of the same kind than this enum. */ public EvaluationMethodType[] family() { return values(); }
/** * Returns the evaluation method type that matches the given string, or returns a new one if * none match it. * * @param code The name of the code to fetch or to create. * @return A code matching the given name. */ public static EvaluationMethodType valueOf(String code) { return valueOf(EvaluationMethodType.class, code); } }
for (final PositionalAccuracy accuracy : accuracies) { if (accuracy != null) for (final Result result : accuracy.getResults()) { if (result instanceof QuantitativeResult) { final QuantitativeResult quantity = (QuantitativeResult) result; final Collection<? extends Record> records = quantity.getValues(); if (records != null) { final Unit unit = quantity.getValueUnit(); if (unit != null && SI.METRE.isCompatible(unit)) { for (final Record record : records) {
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. * * @see #castOrCopy(ConformanceResult) */ public DefaultConformanceResult(final ConformanceResult object) { super(object); if (object != null) { specification = object.getSpecification(); explanation = object.getExplanation(); pass = object.pass(); } }
/** * Verifies that the given element reports a validation failure with the given explanation. * * @param propertyName the name of the property that failed validation. * @param explanation the expected explanation. * @param consistency the report element to test. */ private static void assertDomainConsistencyEquals(final String propertyName, final String explanation, final DomainConsistency consistency) { assertEquals("report.measureIdentification", propertyName, consistency.getMeasureIdentification().getCode()); final ConformanceResult result = (ConformanceResult) getSingleton(consistency.getResults()); assertFalse ("report.result.pass", result.pass()); assertEquals("report.result.explanation", explanation, result.getExplanation().toString(Locale.US)); }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. * * @see #castOrCopy(DataQuality) */ public DefaultDataQuality(final DataQuality object) { super(object); if (object != null) { scope = object.getScope(); reports = copyCollection(object.getReports(), Element.class); lineage = object.getLineage(); } }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. * * @see #castOrCopy(CoverageResult) */ public DefaultCoverageResult(final CoverageResult object) { super(object); if (object != null) { spatialRepresentationType = object.getSpatialRepresentationType(); resultSpatialRepresentation = object.getResultSpatialRepresentation(); resultContentDescription = object.getResultContentDescription(); resultFormat = object.getResultFormat(); resultFile = object.getResultFile(); } }
/** Extracts the legacy value from the new kind of value. */ @Override protected ScopeCode unwrap(final Scope container) { return container.getLevel(); }
/** * Constructs a metadata entity initialized with the values from the specified metadata. * * @param source The metadata to copy, or {@code null} if none. * * @since 2.4 */ public AbstractElement(final Element source) { super(source); if (source != null) { // Be careful to not overwrite date values (GEOTK-170). if (date1 == 0 && date2 == 0 && XCollections.isNullOrEmpty(source.getDates())) { date1 = Long.MIN_VALUE; date2 = Long.MIN_VALUE; } } }
/** Extracts the legacy value from the new kind of value. */ @Override protected ScopeDescription unwrap(final Scope container) { return getSingleton(container.getLevelDescription(), ScopeDescription.class, this, DefaultMaintenanceInformation.class, "getUpdateScopeDescriptions"); }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. * * @see #castOrCopy(ConformanceResult) */ public DefaultConformanceResult(final ConformanceResult object) { super(object); if (object != null) { specification = object.getSpecification(); explanation = object.getExplanation(); pass = object.pass(); } }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. * * @see #castOrCopy(DataQuality) */ public DefaultDataQuality(final DataQuality object) { super(object); if (object != null) { scope = object.getScope(); reports = copyCollection(object.getReports(), Element.class); lineage = object.getLineage(); } }
/** * Returns the list of codes of the same kind than this code list element. * Invoking this method is equivalent to invoking {@link #values()}, except that * this method can be invoked on an instance of the parent {@code CodeList} class. * * @return all code {@linkplain #values() values} for this code list. */ @Override public EvaluationMethodType[] family() { return values(); }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. * * @see #castOrCopy(CoverageResult) */ public DefaultCoverageResult(final CoverageResult object) { super(object); if (object != null) { spatialRepresentationType = object.getSpatialRepresentationType(); resultSpatialRepresentation = object.getResultSpatialRepresentation(); resultContentDescription = object.getResultContentDescription(); resultFormat = object.getResultFormat(); resultFile = object.getResultFile(); } }
/** * Returns the evaluation method type that matches the given string, or returns a * new one if none match it. More specifically, this methods returns the first instance for * which <code>{@linkplain #name() name()}.{@linkplain String#equals equals}(code)</code> * returns {@code true}. If no existing instance is found, then a new one is created for * the given name. * * @param code the name of the code to fetch or to create. * @return a code matching the given name. */ public static EvaluationMethodType valueOf(String code) { return valueOf(EvaluationMethodType.class, code); } }
/** Extracts the legacy value from the new kind of value. */ @Override protected ScopeCode unwrap(final Scope container) { return container.getLevel(); }
/** Extracts the legacy value from the new kind of value. */ @Override protected ScopeDescription unwrap(final Scope container) { return getSingleton(container.getLevelDescription(), ScopeDescription.class, this, DefaultMaintenanceInformation.class, "getUpdateScopeDescriptions"); }
/** * Returns the list of enumerations of the same kind than this enum. */ public /*{EvaluationMethodType}*/ CodeList[] family() { return values(); }
/** * Returns the evaluation method type that matches the given string, or returns a * new one if none match it. More specifically, this methods returns the first instance for * which <code>{@linkplain #name() name()}.{@linkplain String#equals equals}(code)</code> * returns {@code true}. If no existing instance is found, then a new one is created for * the given name. * * @param code the name of the code to fetch or to create. * @return a code matching the given name. */ public static EvaluationMethodType valueOf(String code) { return valueOf(EvaluationMethodType.class, code); } }
/** * Returns the list of codes of the same kind than this code list element. * Invoking this method is equivalent to invoking {@link #values()}, except that * this method can be invoked on an instance of the parent {@code CodeList} class. * * @return all code {@linkplain #values() values} for this code list. */ @Override public EvaluationMethodType[] family() { return values(); }