Package de.xima.fc.annotations
Annotation Type Placeholder
-
@Documented @Target(FIELD) @Retention(RUNTIME) public @interface Placeholder
Informational annotation that may be placed on a field to indicate whether the field's value may contain formcycle placeholders, such as[%tf1%]
.This annotation does not prescribe which actions are to be taken when it is placed on a field. APIs may choose to use this annotation for custom behavior. If they do, they must document how they treat this annotation.
Note that while it is most common for
String
fields to contain placeholders, this annotation does not forbid its usage on fields of other types. APIs should clarify which field types they support.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
context
Class<? extends IPlaceholderEscaper>
customSyntax
boolean
form
boolean
i18n
boolean
session
EPlaceholderEscaper
syntax
boolean
system
boolean
template
boolean
value
-
-
-
-
customSyntax
Class<? extends IPlaceholderEscaper> customSyntax
- Returns:
- The syntax of the field's value. The class must have an accessible public no-arg constructor. This takes
precedence over
syntax()
: If this is set toIPlaceholderEscaper
.class, this value is ignored and the syntax given bysyntax()
is used. Otherwise, this value is used andsyntax()
is ignored.
- Default:
- de.xima.fc.interfaces.placeholder.params.IPlaceholderEscaper.class
-
-
-
syntax
EPlaceholderEscaper syntax
- Returns:
- The syntax of the field's value. APIs may use this to decide how to insert the evaluated value of a
placeholder into the field's value. This value is ignored when
customSyntax()
is set to any value other thanIPlaceholderEscaper
.class.
- Default:
- de.xima.fc.mdl.enums.EPlaceholderEscaper.PLAIN_TEXT
-
-