org.opends.server.admin
Class EnumPropertyDefinition.Builder<E extends java.lang.Enum<E>>

java.lang.Object
  extended by org.opends.server.admin.PropertyDefinition.AbstractBuilder<E,EnumPropertyDefinition<E>>
      extended by org.opends.server.admin.EnumPropertyDefinition.Builder<E>
Type Parameters:
E - The enumeration that should be used for values of this property definition.
Enclosing class:
EnumPropertyDefinition<E extends java.lang.Enum<E>>

public static class EnumPropertyDefinition.Builder<E extends java.lang.Enum<E>>
extends PropertyDefinition.AbstractBuilder<E,EnumPropertyDefinition<E>>

An interface for incrementally constructing enumeration property definitions.


Method Summary
protected  EnumPropertyDefinition<E> buildInstance(AbstractManagedObjectDefinition<?,?> d, java.lang.String propertyName, java.util.EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<E> defaultBehavior)
          Build a property definition based on the properties of this builder.
 void setEnumClass(java.lang.Class<E> enumClass)
          Set the enumeration class which should be used for values of this property definition.
 
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

setEnumClass

public final void setEnumClass(java.lang.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,
                                                  java.lang.String propertyName,
                                                  java.util.EnumSet<PropertyOption> options,
                                                  AdministratorAction adminAction,
                                                  DefaultBehaviorProvider<E> defaultBehavior)
Build a property definition based on the properties of this builder.

Specified by:
buildInstance in class PropertyDefinition.AbstractBuilder<E extends java.lang.Enum<E>,EnumPropertyDefinition<E extends java.lang.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.
Returns:
The new property definition.