Package org.forgerock.opendj.config
Class EnumPropertyDefinition.Builder<E extends Enum<E>>
- java.lang.Object
-
- org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder<E,EnumPropertyDefinition<E>>
-
- org.forgerock.opendj.config.EnumPropertyDefinition.Builder<E>
-
- Type Parameters:
E
- The enumeration that should be used for values of this property definition.
- Enclosing class:
- EnumPropertyDefinition<E extends Enum<E>>
public static final class EnumPropertyDefinition.Builder<E extends Enum<E>> extends PropertyDefinition.AbstractBuilder<E,EnumPropertyDefinition<E>>
An interface for incrementally constructing enumeration property definitions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EnumPropertyDefinition<E>
buildInstance(AbstractManagedObjectDefinition<?,?> d, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<E>> defaultBehavior, Deprecated deprecated)
Build a property definition based on the properties of this builder.void
setEnumClass(Class<E> enumClass)
Set the enumeration class which should be used for values of this property definition.-
Methods inherited from class org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder
getInstance, setAdministratorAction, setDefaultBehaviorProvider, setDeprecated, setOption
-
-
-
-
Method Detail
-
setEnumClass
public void setEnumClass(Class<E> enumClass)
Set the enumeration class which should be used for values of this property definition.- Parameters:
enumClass
- The enumeration class which should be used for values of this property definition.
-
buildInstance
protected EnumPropertyDefinition<E> buildInstance(AbstractManagedObjectDefinition<?,?> d, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<E>> 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<E extends Enum<E>,EnumPropertyDefinition<E extends Enum<E>>>
- 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.
-
-