public abstract class AbstractPropertyDefinition<T> extends java.lang.Object implements PropertyDefinition<T>, java.io.Serializable
| Constructor and Description |
|---|
AbstractPropertyDefinition(PropertyKey key,
T defaultValue,
boolean isRuntimeModifiable,
java.lang.String description,
java.lang.String sinceVersion,
java.lang.String category,
int orderInCategory) |
AbstractPropertyDefinition(PropertyKey key,
T defaultValue,
boolean isRuntimeModifiable,
java.lang.String description,
java.lang.String sinceVersion,
java.lang.String category,
int orderInCategory,
int lowerBound,
int upperBound) |
AbstractPropertyDefinition(java.lang.String name,
java.lang.String camelCaseAlias,
T defaultValue,
boolean isRuntimeModifiable,
java.lang.String description,
java.lang.String sinceVersion,
java.lang.String category,
int orderInCategory) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getAllowableValues()
Returns the list of allowable values.
|
java.lang.String |
getCategory()
Returns the property category.
|
java.lang.String |
getCcAlias()
Returns the property camel-case alias.
|
T |
getDefaultValue()
Returns the default value.
|
java.lang.String |
getDescription()
Returns the property description.
|
int |
getLowerBound()
The lowest possible value of range-based property
|
java.lang.String |
getName()
Returns the property name.
|
int |
getOrder()
Returns the property order.
|
PropertyKey |
getPropertyKey()
Get the property key.
|
java.lang.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.
|
abstract T |
parseObject(java.lang.String value,
ExceptionInterceptor exceptionInterceptor)
Returns the value object parsed from it's string representation and checked against allowable values.
|
void |
setCategory(java.lang.String category) |
void |
setDefaultValue(T defaultValue) |
void |
setDescription(java.lang.String description) |
void |
setLowerBound(int lowerBound) |
void |
setOrder(int order) |
void |
setRuntimeModifiable(boolean isRuntimeModifiable) |
void |
setSinceVersion(java.lang.String sinceVersion) |
void |
setUpperBound(int upperBound) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRuntimePropertypublic AbstractPropertyDefinition(java.lang.String name,
java.lang.String camelCaseAlias,
T defaultValue,
boolean isRuntimeModifiable,
java.lang.String description,
java.lang.String sinceVersion,
java.lang.String category,
int orderInCategory)
public AbstractPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory)
public AbstractPropertyDefinition(PropertyKey key, T defaultValue, boolean isRuntimeModifiable, java.lang.String description, java.lang.String sinceVersion, java.lang.String category, int orderInCategory, int lowerBound, int upperBound)
public boolean hasValueConstraints()
PropertyDefinitionhasValueConstraints in interface PropertyDefinition<T>public boolean isRangeBased()
PropertyDefinitionisRangeBased in interface PropertyDefinition<T>public PropertyKey getPropertyKey()
PropertyDefinitiongetPropertyKey in interface PropertyDefinition<T>PropertyKey or null if it's a custom property.public java.lang.String getName()
PropertyDefinitiongetName in interface PropertyDefinition<T>public java.lang.String getCcAlias()
PropertyDefinitiongetCcAlias in interface PropertyDefinition<T>public boolean hasCcAlias()
PropertyDefinitionhasCcAlias in interface PropertyDefinition<T>public T getDefaultValue()
PropertyDefinitiongetDefaultValue in interface PropertyDefinition<T>public void setDefaultValue(T defaultValue)
public boolean isRuntimeModifiable()
PropertyDefinitionisRuntimeModifiable in interface PropertyDefinition<T>public void setRuntimeModifiable(boolean isRuntimeModifiable)
public java.lang.String getDescription()
PropertyDefinitiongetDescription in interface PropertyDefinition<T>public void setDescription(java.lang.String description)
public java.lang.String getSinceVersion()
PropertyDefinitiongetSinceVersion in interface PropertyDefinition<T>public void setSinceVersion(java.lang.String sinceVersion)
public java.lang.String getCategory()
PropertyDefinitiongetCategory in interface PropertyDefinition<T>public void setCategory(java.lang.String category)
public int getOrder()
PropertyDefinitiongetOrder in interface PropertyDefinition<T>public void setOrder(int order)
public java.lang.String[] getAllowableValues()
PropertyDefinitiongetAllowableValues in interface PropertyDefinition<T>public int getLowerBound()
PropertyDefinitiongetLowerBound in interface PropertyDefinition<T>public void setLowerBound(int lowerBound)
public int getUpperBound()
PropertyDefinitiongetUpperBound in interface PropertyDefinition<T>public void setUpperBound(int upperBound)
public abstract T parseObject(java.lang.String value, ExceptionInterceptor exceptionInterceptor)
PropertyDefinitionparseObject in interface PropertyDefinition<T>value - valueexceptionInterceptor - exception interceptor