Package org.forgerock.opendj.config
Class IntegerPropertyDefinition.Builder
java.lang.Object
org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder<Integer,IntegerPropertyDefinition>
org.forgerock.opendj.config.IntegerPropertyDefinition.Builder
- Enclosing class:
- IntegerPropertyDefinition
public static final class IntegerPropertyDefinition.Builder
extends PropertyDefinition.AbstractBuilder<Integer,IntegerPropertyDefinition>
An interface for incrementally constructing integer property definitions.
-
Method Summary
Modifier and TypeMethodDescriptionprotected IntegerPropertyDefinition
buildInstance
(AbstractManagedObjectDefinition<?, ?> d, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<Integer>> defaultBehavior, Deprecated deprecated) Build a property definition based on the properties of this builder.void
setAllowUnlimited
(boolean allowUnlimited) Specify whether this property definition will allow unlimited values (default is false).void
setLowerLimit
(int lowerLimit) Set the lower limit.void
setUpperLimit
(Integer upperLimit) Set the upper limit.Methods inherited from class org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder
getInstance, setAdministratorAction, setDefaultBehaviorProvider, setDeprecated, setOption
-
Method Details
-
setLowerLimit
public void setLowerLimit(int lowerLimit) Set the lower limit.- Parameters:
lowerLimit
- The new lower limit (must be>= 0
).- Throws:
IllegalArgumentException
- If a negative lower limit was specified or the lower limit is greater than the upper limit.
-
setUpperLimit
Set the upper limit.- Parameters:
upperLimit
- The new upper limit ornull
if there is no upper limit.
-
setAllowUnlimited
public void setAllowUnlimited(boolean allowUnlimited) Specify whether this property definition will allow unlimited values (default is false).- Parameters:
allowUnlimited
-true
if the property will allow unlimited values, orfalse
otherwise.
-
buildInstance
protected IntegerPropertyDefinition buildInstance(AbstractManagedObjectDefinition<?, ?> d, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<Integer>> defaultBehavior, Deprecated deprecated) Description copied from class:PropertyDefinition.AbstractBuilder
Build a property definition based on the properties of this builder.- Specified by:
buildInstance
in classPropertyDefinition.AbstractBuilder<Integer,
IntegerPropertyDefinition> - Parameters:
d
- The managed object definition associated with this property definition.propertyName
- The property name.options
- Options applicable to this definition.adminAction
- The administrator action.defaultBehavior
- The default behavior provider.deprecated
- The deprecation description.- Returns:
- The new property definition.
-