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, wait
createRuntimeProperty
public 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()
PropertyDefinition
hasValueConstraints
in interface PropertyDefinition<T>
public boolean isRangeBased()
PropertyDefinition
isRangeBased
in interface PropertyDefinition<T>
public PropertyKey getPropertyKey()
PropertyDefinition
getPropertyKey
in interface PropertyDefinition<T>
PropertyKey
or null if it's a custom property.public java.lang.String getName()
PropertyDefinition
getName
in interface PropertyDefinition<T>
public java.lang.String getCcAlias()
PropertyDefinition
getCcAlias
in interface PropertyDefinition<T>
public boolean hasCcAlias()
PropertyDefinition
hasCcAlias
in interface PropertyDefinition<T>
public T getDefaultValue()
PropertyDefinition
getDefaultValue
in interface PropertyDefinition<T>
public void setDefaultValue(T defaultValue)
public boolean isRuntimeModifiable()
PropertyDefinition
isRuntimeModifiable
in interface PropertyDefinition<T>
public void setRuntimeModifiable(boolean isRuntimeModifiable)
public java.lang.String getDescription()
PropertyDefinition
getDescription
in interface PropertyDefinition<T>
public void setDescription(java.lang.String description)
public java.lang.String getSinceVersion()
PropertyDefinition
getSinceVersion
in interface PropertyDefinition<T>
public void setSinceVersion(java.lang.String sinceVersion)
public java.lang.String getCategory()
PropertyDefinition
getCategory
in interface PropertyDefinition<T>
public void setCategory(java.lang.String category)
public int getOrder()
PropertyDefinition
getOrder
in interface PropertyDefinition<T>
public void setOrder(int order)
public java.lang.String[] getAllowableValues()
PropertyDefinition
getAllowableValues
in interface PropertyDefinition<T>
public int getLowerBound()
PropertyDefinition
getLowerBound
in interface PropertyDefinition<T>
public void setLowerBound(int lowerBound)
public int getUpperBound()
PropertyDefinition
getUpperBound
in interface PropertyDefinition<T>
public void setUpperBound(int upperBound)
public abstract T parseObject(java.lang.String value, ExceptionInterceptor exceptionInterceptor)
PropertyDefinition
parseObject
in interface PropertyDefinition<T>
value
- valueexceptionInterceptor
- exception interceptor