|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.admin.PropertyDefinition.AbstractBuilder<java.lang.Integer,IntegerPropertyDefinition>
org.opends.server.admin.IntegerPropertyDefinition.Builder
public static class IntegerPropertyDefinition.Builder
An interface for incrementally constructing integer property definitions.
Method Summary | |
---|---|
protected IntegerPropertyDefinition |
buildInstance(AbstractManagedObjectDefinition<?,?> d,
java.lang.String propertyName,
java.util.EnumSet<PropertyOption> options,
AdministratorAction adminAction,
DefaultBehaviorProvider<java.lang.Integer> defaultBehavior)
Build a property definition based on the properties of this builder. |
void |
setAllowUnlimited(boolean allowUnlimited)
Specify whether or not this property definition will allow unlimited values (default is false). |
void |
setLowerLimit(int lowerLimit)
Set the lower limit. |
void |
setUpperLimit(java.lang.Integer upperLimit)
Set the upper limit. |
Methods inherited from class org.opends.server.admin.PropertyDefinition.AbstractBuilder |
---|
getInstance, setAdministratorAction, setDefaultBehaviorProvider, setOption |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final void setLowerLimit(int lowerLimit) throws java.lang.IllegalArgumentException
lowerLimit
- The new lower limit (must be >= 0).
java.lang.IllegalArgumentException
- If a negative lower limit was specified or the lower limit is
greater than the upper limit.public final void setUpperLimit(java.lang.Integer upperLimit)
upperLimit
- The new upper limit or null
if there is no upper
limit.public final void setAllowUnlimited(boolean allowUnlimited)
allowUnlimited
- true
if the property will allow unlimited values,
or false
otherwise.protected IntegerPropertyDefinition buildInstance(AbstractManagedObjectDefinition<?,?> d, java.lang.String propertyName, java.util.EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<java.lang.Integer> defaultBehavior)
buildInstance
in class PropertyDefinition.AbstractBuilder<java.lang.Integer,IntegerPropertyDefinition>
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |