Interface PropertyDefinition<T>

All Known Implementing Classes:
AbstractPropertyDefinition, BooleanPropertyDefinition, EnumPropertyDefinition, IntegerPropertyDefinition, LongPropertyDefinition, MemorySizePropertyDefinition, StringPropertyDefinition

public interface PropertyDefinition<T>
  • Method Summary

    Modifier and Type Method Description
    RuntimeProperty<T> createRuntimeProperty()
    Creates instance of ReadableProperty or ModifiableProperty depending on isRuntimeModifiable() result.
    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.
    T parseObject​(java.lang.String value, ExceptionInterceptor exceptionInterceptor)
    Returns the value object parsed from it's string representation and checked against allowable values.
  • Method Details

    • hasValueConstraints

      boolean hasValueConstraints()
      Does the property have fixed values based constraints.
      Returns:
      true if property has fixed values based constraints.
    • isRangeBased

      boolean isRangeBased()
      Returns true if property has range-based constraints
      Returns:
      true if property has range-based constraints
    • getPropertyKey

      PropertyKey getPropertyKey()
      Get the property key.
      Returns:
      PropertyKey or null if it's a custom property.
    • getName

      java.lang.String getName()
      Returns the property name.
      Returns:
      the property name
    • getCcAlias

      java.lang.String getCcAlias()
      Returns the property camel-case alias.
      Returns:
      the property camel-case alias.
    • hasCcAlias

      boolean hasCcAlias()
      Returns true if property has a camel-case alias.
      Returns:
      true if property has a camel-case alias.
    • getDefaultValue

      T getDefaultValue()
      Returns the default value.
      Returns:
      default value
    • isRuntimeModifiable

      boolean isRuntimeModifiable()
      May the property be changed after initialization.
      Returns:
      true if the property value may be changed after initialization.
    • getDescription

      java.lang.String getDescription()
      Returns the property description. Used for documentation.
      Returns:
      property description
    • getSinceVersion

      java.lang.String getSinceVersion()
      Returns the driver version where the property was introduced first. Used for documentation.
      Returns:
      the driver version where the property was introduced first
    • getCategory

      java.lang.String getCategory()
      Returns the property category.
      Returns:
      property category
    • getOrder

      int getOrder()
      Returns the property order. Used as preferred property position in properties table in documentation.
      Returns:
      property order
    • getAllowableValues

      java.lang.String[] getAllowableValues()
      Returns the list of allowable values.
      Returns:
      the list of allowable values
    • getLowerBound

      int getLowerBound()
      The lowest possible value of range-based property
      Returns:
      the lowest possible value of range-based property
    • getUpperBound

      int getUpperBound()
      The highest possible value of range-based property
      Returns:
      the highest possible value of range-based property
    • parseObject

      T parseObject​(java.lang.String value, ExceptionInterceptor exceptionInterceptor)
      Returns the value object parsed from it's string representation and checked against allowable values.
      Parameters:
      value - value
      exceptionInterceptor - exception interceptor
      Returns:
      the value object
    • createRuntimeProperty

      RuntimeProperty<T> createRuntimeProperty()
      Creates instance of ReadableProperty or ModifiableProperty depending on isRuntimeModifiable() result.
      Returns:
      RuntimeProperty instance