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

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

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

A default behavior provider which retrieves default values from a managed object in an absolute location. It should be used by properties which inherit their default value(s) from properties held in an other managed object.


Constructor Summary
AbsoluteInheritedDefaultBehaviorProvider(java.lang.String pathString, java.lang.String propertyName)
          Create an absolute inherited default behavior provider associated with the managed object at the specified absolute location.
 
Method Summary
<R,P> R
accept(DefaultBehaviorProviderVisitor<T,R,P> v, P p)
          Apply a visitor to this default behavior provider.
 AbstractManagedObjectDefinition<?,?> getManagedObjectDefinition()
          Get the definition of the parent managed object containing the inherited default values.
 ManagedObjectPath<?,?> getManagedObjectPath()
          Get the absolute path of the managed object containing the property which has the default values.
 java.lang.String getPropertyName()
          Gets the name of the property containing the inherited default values.
protected  void initialize()
          Performs any run-time initialization required by this default behavior provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsoluteInheritedDefaultBehaviorProvider

public AbsoluteInheritedDefaultBehaviorProvider(java.lang.String pathString,
                                                java.lang.String propertyName)
Create an absolute inherited default behavior provider associated with the managed object at the specified absolute location.

Parameters:
pathString - The string representation of the managed object path specifying the absolute location of the managed object.
propertyName - The name of the property containing the inherited default values.
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.

getManagedObjectDefinition

public AbstractManagedObjectDefinition<?,?> getManagedObjectDefinition()
Get the definition of the parent managed object containing the inherited default values.

Returns:
Returns the definition of the parent managed object containing the inherited default values.

getManagedObjectPath

public ManagedObjectPath<?,?> getManagedObjectPath()
Get the absolute path of the managed object containing the property which has the default values.

Returns:
Returns the absolute path of the managed object containing the property which has the default values.

getPropertyName

public java.lang.String getPropertyName()
Gets the name of the property containing the inherited default values.

Returns:
Returns the name of the property containing the inherited default values.

initialize

protected void initialize()
                   throws java.lang.Exception
Performs any run-time initialization required by this default behavior provider. This may include resolving managed object paths and property names.

The default implementation is to do nothing.

Overrides:
initialize in class DefaultBehaviorProvider<T>
Throws:
java.lang.Exception - If this default behavior provider could not be initialized.