类 AbstractPropertyDefinition<T>

    • 构造器详细资料

      • AbstractPropertyDefinition

        public AbstractPropertyDefinition​(String name,
                                          String camelCaseAlias,
                                          T defaultValue,
                                          boolean isRuntimeModifiable,
                                          String description,
                                          String sinceVersion,
                                          String category,
                                          int orderInCategory)
      • AbstractPropertyDefinition

        public AbstractPropertyDefinition​(PropertyKey key,
                                          T defaultValue,
                                          boolean isRuntimeModifiable,
                                          String description,
                                          String sinceVersion,
                                          String category,
                                          int orderInCategory)
      • AbstractPropertyDefinition

        public AbstractPropertyDefinition​(PropertyKey key,
                                          T defaultValue,
                                          boolean isRuntimeModifiable,
                                          String description,
                                          String sinceVersion,
                                          String category,
                                          int orderInCategory,
                                          int lowerBound,
                                          int upperBound)
    • 方法详细资料

      • hasValueConstraints

        public boolean hasValueConstraints()
        从接口复制的说明: PropertyDefinition
        Does the property have fixed values based constraints.
        指定者:
        hasValueConstraints 在接口中 PropertyDefinition<T>
        返回:
        true if property has fixed values based constraints.
      • isRangeBased

        public boolean isRangeBased()
        从接口复制的说明: PropertyDefinition
        Returns true if property has range-based constraints
        指定者:
        isRangeBased 在接口中 PropertyDefinition<T>
        返回:
        true if property has range-based constraints
      • hasCcAlias

        public boolean hasCcAlias()
        从接口复制的说明: PropertyDefinition
        Returns true if property has a camel-case alias.
        指定者:
        hasCcAlias 在接口中 PropertyDefinition<T>
        返回:
        true if property has a camel-case alias.
      • setDefaultValue

        public void setDefaultValue​(T defaultValue)
      • isRuntimeModifiable

        public boolean isRuntimeModifiable()
        从接口复制的说明: PropertyDefinition
        May the property be changed after initialization.
        指定者:
        isRuntimeModifiable 在接口中 PropertyDefinition<T>
        返回:
        true if the property value may be changed after initialization.
      • setRuntimeModifiable

        public void setRuntimeModifiable​(boolean isRuntimeModifiable)
      • setDescription

        public void setDescription​(String description)
      • getSinceVersion

        public String getSinceVersion()
        从接口复制的说明: PropertyDefinition
        Returns the driver version where the property was introduced first. Used for documentation.
        指定者:
        getSinceVersion 在接口中 PropertyDefinition<T>
        返回:
        the driver version where the property was introduced first
      • setSinceVersion

        public void setSinceVersion​(String sinceVersion)
      • setCategory

        public void setCategory​(String category)
      • getOrder

        public int getOrder()
        从接口复制的说明: PropertyDefinition
        Returns the property order. Used as preferred property position in properties table in documentation.
        指定者:
        getOrder 在接口中 PropertyDefinition<T>
        返回:
        property order
      • setOrder

        public void setOrder​(int order)
      • getLowerBound

        public int getLowerBound()
        从接口复制的说明: PropertyDefinition
        The lowest possible value of range-based property
        指定者:
        getLowerBound 在接口中 PropertyDefinition<T>
        返回:
        the lowest possible value of range-based property
      • setLowerBound

        public void setLowerBound​(int lowerBound)
      • getUpperBound

        public int getUpperBound()
        从接口复制的说明: PropertyDefinition
        The highest possible value of range-based property
        指定者:
        getUpperBound 在接口中 PropertyDefinition<T>
        返回:
        the highest possible value of range-based property
      • setUpperBound

        public void setUpperBound​(int upperBound)
      • parseObject

        public abstract T parseObject​(String value,
                                      ExceptionInterceptor exceptionInterceptor)
        从接口复制的说明: PropertyDefinition
        Returns the value object parsed from it's string representation and checked against allowable values.
        指定者:
        parseObject 在接口中 PropertyDefinition<T>
        参数:
        value - value
        exceptionInterceptor - exception interceptor
        返回:
        the value object