org.opends.server.admin
Class AliasDefaultBehaviorProvider<T>

java.lang.Object
  extended by org.opends.server.admin.DefaultBehaviorProvider<T>
      extended by org.opends.server.admin.AliasDefaultBehaviorProvider<T>
Type Parameters:
T - The type of values represented by this provider.

public final class AliasDefaultBehaviorProvider<T>
extends DefaultBehaviorProvider<T>

A default behavior provider which indicates special behavior. It should be used by properties which have a default behavior which cannot be directly represented using real values of the property. For example, a property containing a set of user names might default to "all users" when no values are provided. This meaning cannot be represented using a finite set of values.


Constructor Summary
AliasDefaultBehaviorProvider(AbstractManagedObjectDefinition<?,?> d, java.lang.String propertyName)
          Create an alias default behavior provider.
 
Method Summary
<R,P> R
accept(DefaultBehaviorProviderVisitor<T,R,P> v, P p)
          Apply a visitor to this default behavior provider.
 Message getSynopsis()
          Gets the synopsis of this alias default behavior in the default locale.
 Message getSynopsis(java.util.Locale locale)
          Gets the synopsis of this alias default behavior in the specified locale.
 
Methods inherited from class org.opends.server.admin.DefaultBehaviorProvider
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasDefaultBehaviorProvider

public AliasDefaultBehaviorProvider(AbstractManagedObjectDefinition<?,?> d,
                                    java.lang.String propertyName)
Create an alias default behavior provider.

Parameters:
d - The managed object definition associated with this default behavior.
propertyName - The name of the property definition associated with this default behavior.
Method Detail

accept

public <R,P> R accept(DefaultBehaviorProviderVisitor<T,R,P> v,
                      P p)
Apply a visitor to this default behavior provider.

Specified by:
accept in class DefaultBehaviorProvider<T>
Type Parameters:
R - The return type of the visitor's methods.
P - The type of the additional parameters to the visitor's methods.
Parameters:
v - The default behavior visitor.
p - Optional additional visitor parameter.
Returns:
Returns a result as specified by the visitor.

getSynopsis

public final Message getSynopsis()
Gets the synopsis of this alias default behavior in the default locale.

Returns:
Returns the synopsis of this alias default behavior in the default locale.

getSynopsis

public final Message getSynopsis(java.util.Locale locale)
Gets the synopsis of this alias default behavior in the specified locale.

Parameters:
locale - The locale.
Returns:
Returns the synopsis of this alias default behavior in the specified locale.