/** * 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)); } }
/** * 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)); } }