public abstract class AbstractPathConfigurationOption extends AbstractConfigurationOption
ConfigurationOptions of type File. This uses the results of ConfigurationOption.getUIType()
to determine whether to validate as a file or as a directory.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPathConfigurationOption(boolean mustExist)
If mustExist is set to true, then the path will fail to validate if it does not already exist.
|
| Modifier and Type | Method and Description |
|---|---|
protected Path |
castToPath(Object file) |
Class<?> |
getType()
Returns the datatype for this Option (typically File, String, or List
|
ValidationResult |
validate(Object fileObject)
Validate the user indicated value and return the result.
|
getAvailableValues, getDefaultValue, getPriority, setAvailableValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getLabel, getName, getUIType, isRequiredprotected AbstractPathConfigurationOption(boolean mustExist)
public Class<?> getType()
ConfigurationOptionpublic ValidationResult validate(Object fileObject)
ConfigurationOptionCopyright © 2021 JBoss by Red Hat. All rights reserved.