public final class AttributeTypePropertyDefinition extends PropertyDefinition<AttributeType>
| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeTypePropertyDefinition.Builder
An interface for incrementally constructing attribute type
property definitions.
|
PropertyDefinition.AbstractBuilder<T,D extends PropertyDefinition<T>>| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(PropertyDefinitionVisitor<R,P> v,
P p)
Apply a visitor to this property definition.
|
<R,P> R |
accept(PropertyValueVisitor<R,P> v,
AttributeType value,
P p)
Apply a visitor to a property value associated with this property
definition.
|
int |
compare(AttributeType o1,
AttributeType o2)
Compares two property values for order.
|
static AttributeTypePropertyDefinition.Builder |
createBuilder(AbstractManagedObjectDefinition<?,?> d,
String propertyName)
Create a attribute type property definition builder.
|
AttributeType |
decodeValue(String value)
Parse and validate a string representation of a property value.
|
String |
encodeValue(AttributeType value)
Encode the provided property value into its string
representation.
|
static boolean |
isCheckSchema()
Determines whether or not attribute type names should be
validated against the schema.
|
static void |
setCheckSchema(boolean value)
Specify whether or not attribute type names should be validated
against the schema.
|
void |
validateValue(AttributeType value)
Determine if the provided property value is valid according to
this property definition.
|
castValue, compareTo, equals, getAdministratorAction, getDefaultBehaviorProvider, getDescription, getDescription, getManagedObjectDefinition, getName, getSynopsis, getSynopsis, hashCode, hasOption, initialize, normalizeValue, toString, toStringpublic static AttributeTypePropertyDefinition.Builder createBuilder(AbstractManagedObjectDefinition<?,?> d, String propertyName)
d - The managed object definition associated with this
property definition.propertyName - The property name.public static boolean isCheckSchema()
true if attribute type names
should be validated against the schema.public static void setCheckSchema(boolean value)
By default validation is switched on.
value - true if attribute type names should be
validated against the schema.public <R,P> R accept(PropertyDefinitionVisitor<R,P> v, P p)
accept in class PropertyDefinition<AttributeType>R - The return type of the visitor's methods.P - The type of the additional parameters to the visitor's
methods.v - The property definition visitor.p - Optional additional visitor parameter.public <R,P> R accept(PropertyValueVisitor<R,P> v, AttributeType value, P p)
accept in class PropertyDefinition<AttributeType>R - The return type of the visitor's methods.P - The type of the additional parameters to the visitor's
methods.v - The property value visitor.value - The property value.p - Optional additional visitor parameter.public int compare(AttributeType o1, AttributeType o2)
This default implementation normalizes both values using
PropertyDefinition.normalizeValue(Object) and then performs a
case-sensitive string comparison.
compare in interface Comparator<AttributeType>compare in class PropertyDefinition<AttributeType>o1 - the first object to be compared.o2 - the second object to be compared.public AttributeType decodeValue(String value) throws PropertyException
decodeValue in class PropertyDefinition<AttributeType>value - The property string value (must not be null).PropertyException - If the property value string is invalid.public String encodeValue(AttributeType value) throws PropertyException
This default implementation simply returns invokes the
Object.toString() method on the provided value.
encodeValue in class PropertyDefinition<AttributeType>value - The property value (must not be null).PropertyException - If the property value is invalid.public void validateValue(AttributeType value) throws PropertyException
validateValue in class PropertyDefinition<AttributeType>value - The property value (must not be null).PropertyException - If the property value is invalid.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.