Package de.xima.fc.annotations
Annotation Type 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 ElementsModifier and TypeOptional ElementDescriptionboolean
Class<? extends IPlaceholderEscaper>
boolean
boolean
boolean
boolean
boolean
boolean
-
Element Details
-
context
boolean context- Returns:
true
if the field's value may contain formcycle placeholders of typecontext
, orfalse
if it never contains such placeholders.
- Default:
- true
-
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
-
form
boolean form- Returns:
true
if the field's value may contain formcycle placeholders of typeform
, orfalse
if it never contains such placeholders.
- Default:
- true
-
i18n
boolean i18n- Returns:
true
if the field's value may contain formcycle placeholders of typei18n
, orfalse
if it never contains such placeholders.
- Default:
- true
-
session
boolean session- Returns:
true
if the field's value may contain formcycle placeholders of typesession
, orfalse
if it never contains such placeholders.
- Default:
- true
-
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:
- PLAIN_TEXT
-
system
boolean system- Returns:
true
if the field's value may contain formcycle placeholders of typesystem
, orfalse
if it never contains such placeholders.
- Default:
- true
-
template
boolean template- Returns:
true
if the field's value may contain formcycle placeholders of typetemplate
, orfalse
if it never contains such placeholders.
- Default:
- true
-
value
boolean value- Returns:
true
if the field's value may contain formcycle placeholders of any type, orfalse
otherwise. When set tofalse
, the values ofcontext()
,form()
etc. are ignored.
- Default:
- true
-