E
- The enumeration that should be used for values of this property
definition.public final class EnumPropertyDefinition<E extends Enum<E>> extends PropertyDefinition<E>
Modifier and Type | Class and Description |
---|---|
static class |
EnumPropertyDefinition.Builder<E extends Enum<E>>
An interface for incrementally constructing enumeration 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,
ValueOrExpression<E> value,
P p)
Apply a visitor to a property value associated with this property
definition.
|
static <E extends Enum<E>> |
createBuilder(AbstractManagedObjectDefinition<?,?> d,
String propertyName)
Create an enumeration property definition builder.
|
Class<E> |
getEnumClass()
Get the enumeration class used for values of this property.
|
LocalizableMessage |
getValueSynopsis(E value)
Gets the synopsis of the specified enumeration value of this enumeration
property definition in the default locale.
|
LocalizableMessage |
getValueSynopsis(Locale locale,
E value)
Gets the synopsis of the specified enumeration value of this enumeration
property definition in the specified locale.
|
compare, compareTo, decodeValue, encodeValue, equals, getAdministratorAction, getDefaultBehaviorProvider, getDescription, getDescription, getManagedObjectDefinition, getName, getSynopsis, getSynopsis, getValueComparator, hashCode, hasOption, initialize, normalizeValue, toString, toString, validateValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static <E extends Enum<E>> EnumPropertyDefinition.Builder<E> createBuilder(AbstractManagedObjectDefinition<?,?> d, String propertyName)
E
- The enumeration that should be used for values of this
property definition.d
- The managed object definition associated with this property
definition.propertyName
- The property name.public <R,P> R accept(PropertyDefinitionVisitor<R,P> v, P p)
PropertyDefinition
accept
in class PropertyDefinition<E extends Enum<E>>
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, ValueOrExpression<E> value, P p)
PropertyDefinition
accept
in class PropertyDefinition<E extends Enum<E>>
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 Class<E> getEnumClass()
public final LocalizableMessage getValueSynopsis(E value)
value
- The enumeration value.public final LocalizableMessage getValueSynopsis(Locale locale, E value)
value
- The enumeration value.locale
- The locale.Copyright 2010-2022 ForgeRock AS.