@Internal public abstract class HierarchyDescriptorValidator extends Object implements DescriptorValidator
HierarchyDescriptor
.Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_PREFIX |
Constructor and Description |
---|
HierarchyDescriptorValidator(String keyPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
validate(DescriptorProperties properties)
Performs basic validation such as completeness tests.
|
protected abstract void |
validateWithPrefix(String keyPrefix,
DescriptorProperties properties)
Performs validation with a prefix for the keys.
|
public static final String EMPTY_PREFIX
public HierarchyDescriptorValidator(String keyPrefix)
keyPrefix
- prefix to be added to every property before validationpublic void validate(DescriptorProperties properties)
DescriptorValidator
validate
in interface DescriptorValidator
protected abstract void validateWithPrefix(String keyPrefix, DescriptorProperties properties)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.