org.opends.server.admin
Class DNPropertyDefinition.Builder

java.lang.Object
  extended by org.opends.server.admin.PropertyDefinition.AbstractBuilder<DN,DNPropertyDefinition>
      extended by org.opends.server.admin.DNPropertyDefinition.Builder
Enclosing class:
DNPropertyDefinition

public static class DNPropertyDefinition.Builder
extends PropertyDefinition.AbstractBuilder<DN,DNPropertyDefinition>

An interface for incrementally constructing DN property definitions.


Method Summary
protected  DNPropertyDefinition buildInstance(AbstractManagedObjectDefinition<?,?> d, java.lang.String propertyName, java.util.EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<DN> defaultBehavior)
          Build a property definition based on the properties of this builder.
 void setBaseDN(DN baseDN)
          Set the base DN which all valid values must be immediately subordinate to.
 void setBaseDN(java.lang.String baseDN)
          Set the base DN which all valid values must be immediately subordinate to.
 
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

setBaseDN

public void setBaseDN(java.lang.String baseDN)
               throws java.lang.IllegalArgumentException
Set the base DN which all valid values must be immediately subordinate to. By default there is no based DN.

Parameters:
baseDN - The string representation of the base DN.
Throws:
java.lang.IllegalArgumentException - If the provided string is not a valid DN string representation.

setBaseDN

public void setBaseDN(DN baseDN)
Set the base DN which all valid values must be immediately subordinate to. By default there is no based DN.

Parameters:
baseDN - The base DN.

buildInstance

protected DNPropertyDefinition buildInstance(AbstractManagedObjectDefinition<?,?> d,
                                             java.lang.String propertyName,
                                             java.util.EnumSet<PropertyOption> options,
                                             AdministratorAction adminAction,
                                             DefaultBehaviorProvider<DN> defaultBehavior)
Build a property definition based on the properties of this builder.

Specified by:
buildInstance in class PropertyDefinition.AbstractBuilder<DN,DNPropertyDefinition>
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.