@Target(value={}) @Retention(value=RUNTIME) public @interface OptionSource
OptionProvider
. An option source points to an
option supplier, such as a JCR node, an HTTP endpoint, or a Java enumeration, and specifies the way to render the
dataModifier and Type | Optional Element and Description |
---|---|
String[] |
attributeMembers
If set, specifies one or more names of attributes of the underlying option resource (such as a JCR node) that are
to be rendered as the selectable option's attributes
|
String[] |
attributes
If set, specifies one or more string values that are to be rendered as the selectable option's attributes
|
Class<?> |
enumeration
Specifies a Java class that will be used as the source of options.
|
boolean |
isFallback
If set to
true , specifies that the current OptionSource is to be used as the fallback within the
current OptionProvider . |
String |
textMember
If set, specifies the name of an attribute of the underlying option resource (such as a JCR node) to be used as
the selectable option's text
|
StringTransformation |
textTransform
If set, specifies the way to transform option text before rendering in UI
|
String |
value
Specifies an address from which the options can be retrieved.
|
String |
valueMember
If set, specifies the name of an attribute of the underlying option resource (such as a JCR node) to be used as
the selectable option's text
|
StringTransformation |
valueTransform
If set, specifies the way to transform option value before rendering in UI
|
public abstract String[] attributeMembers
public abstract String[] attributes
public abstract Class<?> enumeration
value()
. If both are specified, only
value
is used. If none is specified, an exception is thrownClass
valuepublic abstract boolean isFallback
true
, specifies that the current OptionSource
is to be used as the fallback within the
current OptionProvider
. This property does not have an effect if there is only one option source setpublic abstract String textMember
public abstract StringTransformation textTransform
StringTransformation
public abstract String value
enumeration()
. If both are specified, only value
is used. If none is specified, an
exception is thrownpublic abstract String valueMember
public abstract StringTransformation valueTransform
StringTransformation
Copyright © 2024 Exadel, Inc.. All rights reserved.