public static final class SizePropertyDefinition.Builder extends PropertyDefinition.AbstractBuilder<Long,SizePropertyDefinition>
| Modifier and Type | Method and Description |
|---|---|
protected SizePropertyDefinition |
buildInstance(AbstractManagedObjectDefinition<?,?> d,
String propertyName,
EnumSet<PropertyOption> options,
AdministratorAction adminAction,
DefaultBehaviorProvider<Long> 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(long lowerLimit)
Set the lower limit in bytes.
|
void |
setLowerLimit(String lowerLimit)
Set the lower limit using a string representation of the limit.
|
void |
setUpperLimit(Long upperLimit)
Set the upper limit in bytes.
|
void |
setUpperLimit(String upperLimit)
Set the upper limit using a string representation of the limit.
|
getInstance, setAdministratorAction, setDefaultBehaviorProvider, setOptionpublic final void setLowerLimit(long lowerLimit)
lowerLimit - The new lower limit (must be >= 0) in bytes.IllegalArgumentException - If a negative lower limit was specified, or if the lower
limit is greater than the upper limit.public final void setLowerLimit(String lowerLimit)
lowerLimit - The string representation of the new lower limit.IllegalArgumentException - If the lower limit could not be parsed, or if a negative
lower limit was specified, or the lower limit is greater
than the upper limit.public final void setUpperLimit(Long upperLimit)
upperLimit - The new upper limit in bytes or null if there
is no upper limit.IllegalArgumentException - If the lower limit is greater than the upper limit.public final void setUpperLimit(String upperLimit)
upperLimit - The string representation of the new upper limit, or
null if there is no upper limit.IllegalArgumentException - If the upper limit could not be parsed, or if the lower
limit is greater than the upper limit.public final void setAllowUnlimited(boolean allowUnlimited)
allowUnlimited - true if the property will allow unlimited
values, or false otherwise.protected SizePropertyDefinition buildInstance(AbstractManagedObjectDefinition<?,?> d, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<Long> defaultBehavior)
buildInstance in class PropertyDefinition.AbstractBuilder<Long,SizePropertyDefinition>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.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.