public class PropertyValidator extends Object
Constructor and Description |
---|
PropertyValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isLiveValues()
Are live values validated?
|
void |
setLiveValues(boolean value)
Set whether live values are validated.
|
PropertyValidationResult |
validate(Object value,
PropertyDescription desc)
Validate the value against the property definition
|
PropertyValidationResult |
validate(Object value,
PropertyDescription desc,
Mode mode)
Validate the value against the property definition
|
public boolean isLiveValues()
true
if live values are validatedpublic void setLiveValues(boolean value)
value
- Flag for validating live valuespublic PropertyValidationResult validate(Object value, PropertyDescription desc)
value
- The value to validatedesc
- The property descriptionpublic PropertyValidationResult validate(Object value, PropertyDescription desc, Mode mode)
value
- The value to validatedesc
- The property descriptionmode
- Optional validation mode - this mode is used if the description does not define a mode. Defaults to Mode.STRICT
.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.