@Internal public class LiteralValueValidator extends HierarchyDescriptorValidator
LiteralValue.| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
static String |
VALUE |
EMPTY_PREFIX| Constructor and Description |
|---|
LiteralValueValidator(String keyPrefix) |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getValue(String keyPrefix,
DescriptorProperties properties)
Gets the value according to the type and value strings.
|
protected void |
validateWithPrefix(String keyPrefix,
DescriptorProperties properties)
Performs validation with a prefix for the keys.
|
validatepublic static final String TYPE
public static final String VALUE
public LiteralValueValidator(String keyPrefix)
keyPrefix - prefix to be added to every property before validationpublic static Object getValue(String keyPrefix, DescriptorProperties properties)
keyPrefix - the prefix of the literal type keyproperties - the descriptor propertiesprotected void validateWithPrefix(String keyPrefix, DescriptorProperties properties)
HierarchyDescriptorValidatorvalidateWithPrefix in class HierarchyDescriptorValidatorCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.