接口 PropertyDefinition<T>

    • 方法详细资料

      • 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.
        返回:
        PropertyKey or 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 - value
        exceptionInterceptor - exception interceptor
        返回:
        the value object
      • createRuntimeProperty

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