接口 PropertyDefinition<T>
-
- 所有已知实现类:
AbstractPropertyDefinition,BooleanPropertyDefinition,EnumPropertyDefinition,IntegerPropertyDefinition,LongPropertyDefinition,MemorySizePropertyDefinition,StringPropertyDefinition
public interface PropertyDefinition<T>
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 RuntimeProperty<T>createRuntimeProperty()Creates instance of ReadableProperty or ModifiableProperty depending on isRuntimeModifiable() result.String[]getAllowableValues()Returns the list of allowable values.StringgetCategory()Returns the property category.StringgetCcAlias()Returns the property camel-case alias.TgetDefaultValue()Returns the default value.StringgetDescription()Returns the property description.intgetLowerBound()The lowest possible value of range-based propertyStringgetName()Returns the property name.intgetOrder()Returns the property order.PropertyKeygetPropertyKey()Get the property key.StringgetSinceVersion()Returns the driver version where the property was introduced first.intgetUpperBound()The highest possible value of range-based propertybooleanhasCcAlias()Returns true if property has a camel-case alias.booleanhasValueConstraints()Does the property have fixed values based constraints.booleanisRangeBased()Returns true if property has range-based constraintsbooleanisRuntimeModifiable()May the property be changed after initialization.TparseObject(String value, ExceptionInterceptor exceptionInterceptor)Returns the value object parsed from it's string representation and checked against allowable values.
-
-
-
方法详细资料
-
hasValueConstraints
boolean hasValueConstraints()
Does the property have fixed values based constraints.- 返回:
- true if property has fixed values based constraints.
-
isRangeBased
boolean isRangeBased()
Returns true if property has range-based constraints- 返回:
- true if property has range-based constraints
-
getPropertyKey
PropertyKey getPropertyKey()
Get the property key.- 返回:
PropertyKeyor null if it's a custom property.
-
getName
String getName()
Returns the property name.- 返回:
- the property name
-
getCcAlias
String getCcAlias()
Returns the property camel-case alias.- 返回:
- the property camel-case alias.
-
hasCcAlias
boolean hasCcAlias()
Returns true if property has a camel-case alias.- 返回:
- true if property has a camel-case alias.
-
getDefaultValue
T getDefaultValue()
Returns the default value.- 返回:
- default value
-
isRuntimeModifiable
boolean isRuntimeModifiable()
May the property be changed after initialization.- 返回:
- true if the property value may be changed after initialization.
-
getDescription
String getDescription()
Returns the property description. Used for documentation.- 返回:
- property description
-
getSinceVersion
String getSinceVersion()
Returns the driver version where the property was introduced first. Used for documentation.- 返回:
- the driver version where the property was introduced first
-
getCategory
String getCategory()
Returns the property category.- 返回:
- property category
-
getOrder
int getOrder()
Returns the property order. Used as preferred property position in properties table in documentation.- 返回:
- property order
-
getAllowableValues
String[] getAllowableValues()
Returns the list of allowable values.- 返回:
- the list of allowable values
-
getLowerBound
int getLowerBound()
The lowest possible value of range-based property- 返回:
- the lowest possible value of range-based property
-
getUpperBound
int getUpperBound()
The highest possible value of range-based property- 返回:
- the highest possible value of range-based property
-
parseObject
T parseObject(String value, ExceptionInterceptor exceptionInterceptor)
Returns the value object parsed from it's string representation and checked against allowable values.- 参数:
value- valueexceptionInterceptor- exception interceptor- 返回:
- the value object
-
createRuntimeProperty
RuntimeProperty<T> createRuntimeProperty()
Creates instance of ReadableProperty or ModifiableProperty depending on isRuntimeModifiable() result.- 返回:
RuntimePropertyinstance
-
-