public interface PropertyDefinition<T>
| Modifier and Type | Method | Description |
|---|---|---|
RuntimeProperty<T> |
createRuntimeProperty() |
Creates instance of ReadableProperty or ModifiableProperty depending on isRuntimeModifiable() result.
|
String[] |
getAllowableValues() |
Returns the list of allowable values.
|
String |
getCategory() |
Returns the property category.
|
String |
getCcAlias() |
Returns the property camel-case alias.
|
T |
getDefaultValue() |
Returns the default value.
|
String |
getDescription() |
Returns the property description.
|
int |
getLowerBound() |
The lowest possible value of range-based property
|
String |
getName() |
Returns the property name.
|
int |
getOrder() |
Returns the property order.
|
PropertyKey |
getPropertyKey() |
Get the property key.
|
String |
getSinceVersion() |
Returns the driver version where the property was introduced first.
|
int |
getUpperBound() |
The highest possible value of range-based property
|
boolean |
hasCcAlias() |
Returns true if property has a camel-case alias.
|
boolean |
hasValueConstraints() |
Does the property have fixed values based constraints.
|
boolean |
isRangeBased() |
Returns true if property has range-based constraints
|
boolean |
isRuntimeModifiable() |
May the property be changed after initialization.
|
T |
parseObject(String value,
ExceptionInterceptor exceptionInterceptor) |
Returns the value object parsed from it's string representation and checked against allowable values.
|
boolean hasValueConstraints()
boolean isRangeBased()
PropertyKey getPropertyKey()
PropertyKey or null if it's a custom property.String getName()
String getCcAlias()
boolean hasCcAlias()
T getDefaultValue()
boolean isRuntimeModifiable()
String getDescription()
String getSinceVersion()
String getCategory()
int getOrder()
String[] getAllowableValues()
int getLowerBound()
int getUpperBound()
T parseObject(String value, ExceptionInterceptor exceptionInterceptor)
value - valueexceptionInterceptor - exception interceptorRuntimeProperty<T> createRuntimeProperty()
RuntimeProperty instance