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 PropertyValueVisitor<R,P> extends Object
Each visitXXX method is provided with a default implementation
which calls visitUnknown(PropertyDefinition, Object, Object).
Sub-classes can override any or all of the methods to provide their own
type-specific behavior.
| Modifier | Constructor and Description |
|---|---|
protected |
PropertyValueVisitor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
R |
visitACI(ACIPropertyDefinition pd,
String v,
P p)
Visit a dseecompat ACI.
|
<C extends ConfigurationClient,S extends Configuration> |
visitAggregation(AggregationPropertyDefinition<C,S> pd,
String v,
P p)
Visit an aggregation property value.
|
R |
visitAttributeType(AttributeTypePropertyDefinition pd,
org.forgerock.opendj.ldap.schema.AttributeType v,
P p)
Visit an attribute type.
|
R |
visitBoolean(BooleanPropertyDefinition pd,
Boolean v,
P p)
Visit a boolean.
|
R |
visitClass(ClassPropertyDefinition pd,
String v,
P p)
Visit a class.
|
R |
visitDN(DNPropertyDefinition pd,
org.forgerock.opendj.ldap.DN v,
P p)
Visit a DN.
|
R |
visitDuration(DurationPropertyDefinition pd,
Long v,
P p)
Visit a duration.
|
<E extends Enum<E>> |
visitEnum(EnumPropertyDefinition<E> pd,
E v,
P p)
Visit an enumeration.
|
R |
visitInteger(IntegerPropertyDefinition pd,
Integer v,
P p)
Visit an integer.
|
R |
visitIPAddress(IPAddressPropertyDefinition pd,
InetAddress v,
P p)
Visit a IP address.
|
R |
visitIPAddressMask(IPAddressMaskPropertyDefinition pd,
org.forgerock.opendj.ldap.AddressMask v,
P p)
Visit a IP address mask.
|
R |
visitSize(SizePropertyDefinition pd,
Long v,
P p)
Visit a size.
|
R |
visitString(StringPropertyDefinition pd,
String v,
P p)
Visit a string.
|
<T> R |
visitUnknown(PropertyDefinition<T> pd,
T v,
P p)
Visit an unknown type of property value.
|
protected PropertyValueVisitor()
public R visitACI(ACIPropertyDefinition pd, String v, P p)
pd - The dseecompat ACI property definition.v - The property value to visit.p - A visitor specified parameter.public <C extends ConfigurationClient,S extends Configuration> R visitAggregation(AggregationPropertyDefinition<C,S> pd, String v, 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.v - The property value to visit.p - A visitor specified parameter.public R visitAttributeType(AttributeTypePropertyDefinition pd, org.forgerock.opendj.ldap.schema.AttributeType v, P p)
pd - The attribute type property definition.v - The property value to visit.p - A visitor specified parameter.public R visitBoolean(BooleanPropertyDefinition pd, Boolean v, P p)
pd - The boolean property definition.v - The property value to visit.p - A visitor specified parameter.public R visitClass(ClassPropertyDefinition pd, String v, P p)
pd - The class property definition.v - The property value to visit.p - A visitor specified parameter.public R visitDN(DNPropertyDefinition pd, org.forgerock.opendj.ldap.DN v, P p)
pd - The DN property definition.v - The property value to visit.p - A visitor specified parameter.public R visitDuration(DurationPropertyDefinition pd, Long v, P p)
pd - The duration property definition.v - The property value to visit.p - A visitor specified parameter.public <E extends Enum<E>> R visitEnum(EnumPropertyDefinition<E> pd, E v, P p)
E - The enumeration that should be used for values of the property
definition.pd - The enumeration property definition.v - The property value to visit.p - A visitor specified parameter.public R visitInteger(IntegerPropertyDefinition pd, Integer v, P p)
pd - The integer property definition.v - The property value to visit.p - A visitor specified parameter.public R visitIPAddress(IPAddressPropertyDefinition pd, InetAddress v, P p)
pd - The IP address property definition.v - The property value to visit.p - A visitor specified parameter.public R visitIPAddressMask(IPAddressMaskPropertyDefinition pd, org.forgerock.opendj.ldap.AddressMask v, P p)
pd - The IP address mask property definition.v - The property value to visit.p - A visitor specified parameter.public R visitSize(SizePropertyDefinition pd, Long v, P p)
pd - The size property definition.v - The property value to visit.p - A visitor specified parameter.public R visitString(StringPropertyDefinition pd, String v, P p)
pd - The string property definition.v - The property value to visit.p - A visitor specified parameter.public <T> R visitUnknown(PropertyDefinition<T> pd, T v, P p)
The default implementation of this method throws an
PropertyException. Sub-classes can override this
method with their own default behavior.
T - The type of property value to visit.pd - The property definition.v - The property value.p - A visitor specified parameter.PropertyException - Visitor implementations may optionally throw this exception.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.