|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.admin.PropertyDefinitionVisitor<R,P>
R - The return type of this visitor's methods. Use
Void for visitors that do not need to
return results.P - The type of the additional parameter to this visitor's
methods. Use Void for visitors that do
not need an additional parameter.public abstract class PropertyDefinitionVisitor<R,P>
A visitor of property definitions, in the style of the visitor design pattern. Classes implementing this interface can query property definitions in a type-safe manner when the kind of property definition is unknown at compile time. When a visitor is passed to a property definition's accept method, the corresponding visit method most applicable to that property definition is invoked.
Each visitXXX method is provided with a default
implementation which calls
visitUnknown(PropertyDefinition, Object). Sub-classes can
override any or all of the methods to provide their own
type-specific behavior.
| Constructor Summary | |
|---|---|
protected |
PropertyDefinitionVisitor()
Default constructor. |
| Method Summary | ||
|---|---|---|
R |
visitACI(ACIPropertyDefinition pd,
P p)
Visit a dseecompat Global ACI property definition. |
|
|
visitAggregation(AggregationPropertyDefinition<C,S> pd,
P p)
Visit an aggregation property definition. |
|
R |
visitAttributeType(AttributeTypePropertyDefinition pd,
P p)
Visit an attribute type property definition. |
|
R |
visitBoolean(BooleanPropertyDefinition pd,
P p)
Visit a boolean property definition. |
|
R |
visitClass(ClassPropertyDefinition pd,
P p)
Visit a class property definition. |
|
R |
visitDN(DNPropertyDefinition pd,
P p)
Visit a DN property definition. |
|
R |
visitDuration(DurationPropertyDefinition pd,
P p)
Visit a duration property definition. |
|
|
visitEnum(EnumPropertyDefinition<E> pd,
P p)
Visit an enumeration property definition. |
|
R |
visitInteger(IntegerPropertyDefinition pd,
P p)
Visit an integer property definition. |
|
R |
visitIPAddress(IPAddressPropertyDefinition pd,
P p)
Visit a IP address property definition. |
|
R |
visitIPAddressMask(IPAddressMaskPropertyDefinition pd,
P p)
Visit a IP address mask property definition. |
|
R |
visitSize(SizePropertyDefinition pd,
P p)
Visit a size property definition. |
|
R |
visitString(StringPropertyDefinition pd,
P p)
Visit a string property definition. |
|
|
visitUnknown(PropertyDefinition<T> pd,
P p)
Visit an unknown type of property definition. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PropertyDefinitionVisitor()
| Method Detail |
|---|
public R visitACI(ACIPropertyDefinition pd,
P p)
pd - The Global ACI property definition to visit.p - A visitor specified parameter.
public <C extends ConfigurationClient,S extends Configuration> R visitAggregation(AggregationPropertyDefinition<C,S> pd,
P p)
C - The type of client managed object configuration that
this aggregation property definition refers to.S - The type of server managed object configuration that
this aggregation property definition refers to.pd - The aggregation property definition to visit.p - A visitor specified parameter.
public R visitAttributeType(AttributeTypePropertyDefinition pd,
P p)
pd - The attribute type property definition to visit.p - A visitor specified parameter.
public R visitBoolean(BooleanPropertyDefinition pd,
P p)
pd - The boolean property definition to visit.p - A visitor specified parameter.
public R visitClass(ClassPropertyDefinition pd,
P p)
pd - The class property definition to visit.p - A visitor specified parameter.
public R visitDN(DNPropertyDefinition pd,
P p)
pd - The DN property definition to visit.p - A visitor specified parameter.
public R visitDuration(DurationPropertyDefinition pd,
P p)
pd - The duration property definition to visit.p - A visitor specified parameter.
public <E extends java.lang.Enum<E>> R visitEnum(EnumPropertyDefinition<E> pd,
P p)
E - The enumeration that should be used for values of the
property definition.pd - The enumeration property definition to visit.p - A visitor specified parameter.
public R visitInteger(IntegerPropertyDefinition pd,
P p)
pd - The integer property definition to visit.p - A visitor specified parameter.
public R visitIPAddress(IPAddressPropertyDefinition pd,
P p)
pd - The IP address property definition to visit.p - A visitor specified parameter.
public R visitIPAddressMask(IPAddressMaskPropertyDefinition pd,
P p)
pd - The IP address mask property definition to visit.p - A visitor specified parameter.
public R visitSize(SizePropertyDefinition pd,
P p)
pd - The size property definition to visit.p - A visitor specified parameter.
public R visitString(StringPropertyDefinition pd,
P p)
pd - The string property definition to visit.p - A visitor specified parameter.
public <T> R visitUnknown(PropertyDefinition<T> pd,
P p)
throws UnknownPropertyDefinitionException
The default implementation of this method throws an
UnknownPropertyDefinitionException. Sub-classes can
override this method with their own default behavior.
T - The type of the underlying property.pd - The property definition to visit.p - A visitor specified parameter.
UnknownPropertyDefinitionException - Visitor implementations may optionally throw this
exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||