public abstract class AbstractDriverProperty extends java.lang.Object implements DriverProperty
Unless overridden, the properties file should contain the following:
getPropertyIdentifier().
The following default values are provided (and overridable):
| Constructor and Description |
|---|
AbstractDriverProperty() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
getBundlePrefix() |
java.util.List<java.lang.Object> |
getChoices() |
java.lang.String |
getDescription()
Retrieves the description from the properties file using the key returned by
getDescriptionKey(). |
protected java.lang.String |
getDescriptionKey() |
java.lang.String |
getDisplayName()
Retrieves the display name from the properties file using the key returned by
getDisplayNameKey(). |
protected java.lang.String |
getDisplayNameKey() |
protected java.lang.String |
getPropertyIdentifier() |
java.lang.String |
getValidationType()
Returns the type of validation, if any, to use on this property.
|
java.lang.String |
getValidationValue()
If a validation type was specified, this is the value to use for validation.
|
boolean |
isRequired() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultValue, getId, getTypepublic java.lang.String getDisplayName()
getDisplayNameKey().getDisplayName in interface DriverPropertyprotected java.lang.String getDisplayNameKey()
public java.lang.String getDescription()
getDescriptionKey().getDescription in interface DriverPropertyprotected java.lang.String getDescriptionKey()
public boolean isRequired()
isRequired in interface DriverPropertypublic java.lang.String getValidationType()
DriverPropertyCurrently available types: "regex" and "range"
getValidationType in interface DriverPropertypublic java.lang.String getValidationValue()
DriverPropertyIf you wanted to validate port ranges, for example, you might return "1-65535".
getValidationValue in interface DriverPropertypublic java.util.List<java.lang.Object> getChoices()
getChoices in interface DriverPropertyprotected java.lang.String getPropertyIdentifier()
protected abstract java.lang.String getBundlePrefix()