public class PropertyValidationResult extends Object
Constructor and Description |
---|
PropertyValidationResult() |
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue()
Get the default value.
|
List<String> |
getErrors()
If
isValid() returns false this returns
a list of human readable errors. |
List<String> |
getWarnings()
Return the list of warnings
|
boolean |
isSkipped()
Has the validation for this property be skipped?
|
boolean |
isUseDefaultValue()
Should the default be used instead of the configuration value?
|
boolean |
isValid()
Is the property value valid?
|
void |
markSkipped()
Mark the property to be skipped during validation
|
void |
setDefaultValue(Object defaultValue)
Set the default value
|
void |
setUseDefaultValue(boolean useDefault)
Set whether the default value should be used
|
public boolean isValid()
true
if the value is validpublic List<String> getErrors()
isValid()
returns false
this returns
a list of human readable errors.isValid()
returns true
public List<String> getWarnings()
public boolean isSkipped()
true
if it has been skippedpublic void markSkipped()
public boolean isUseDefaultValue()
true
if the default should be used.getDefaultValue()
public void setUseDefaultValue(boolean useDefault)
useDefault
- boolean flagpublic Object getDefaultValue()
isUseDefaultValue()
returns true
.null
)public void setDefaultValue(Object defaultValue)
defaultValue
- the defaultValue to setCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.