T
- The type of values represented by this provider.public final class RelativeInheritedDefaultBehaviorProvider<T> extends DefaultBehaviorProvider<T>
Constructor and Description |
---|
RelativeInheritedDefaultBehaviorProvider(AbstractManagedObjectDefinition<?,?> d,
String propertyName,
int offset)
Create a relative inherited default behavior provider associated with a
parent managed object.
|
Modifier and Type | Method and Description |
---|---|
<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(ManagedObjectPath<?,?> path)
Get the absolute path of the managed object containing the property which
has the default values.
|
String |
getPropertyName()
Gets the name of the property containing the inherited default values.
|
int |
getRelativeOffset()
Get the relative location of the parent managed object.
|
initialize
public RelativeInheritedDefaultBehaviorProvider(AbstractManagedObjectDefinition<?,?> d, String propertyName, int offset)
d
- The type of parent managed object expected at the relative
location.propertyName
- The name of the property containing the inherited default
values.offset
- The relative location of the parent managed object (where 0 is
the managed object itself, 1 is the parent, and 2 is the
grand-parent).IllegalArgumentException
- If the offset is less than 0.public <R,P> R accept(DefaultBehaviorProviderVisitor<T,R,P> v, P p)
DefaultBehaviorProvider
accept
in class DefaultBehaviorProvider<T>
R
- The return type of the visitor's methods.P
- The type of the additional parameters to the visitor's
methods.v
- The default behavior visitor.p
- Optional additional visitor parameter.public AbstractManagedObjectDefinition<?,?> getManagedObjectDefinition()
public ManagedObjectPath<?,?> getManagedObjectPath(ManagedObjectPath<?,?> path)
path
- The path of the current managed object from which the relative
path should be determined.public String getPropertyName()
public int getRelativeOffset()
Copyright 2010-2020 ForgeRock AS.