@Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) public @interface AnnotationRendering
properties()
.
In addition, this annotation can be used to specify the scope the properties are rendered within.
E.g. Scopes.COMPONENT
certifies that the properties are valid for .content.xml
and not for a
cq:dialog
node. Annotation handlers can use this value to adjust their behavior.
A specific prefix can be specified that will be prepended to all the automatically mapped properties
Modifier and Type | Optional Element and Description |
---|---|
String |
prefix
When initialized to a non-blank value, allows setting name prefix for all the relevant fields of the current
annotation
|
String[] |
properties
Defines the rules for the automapping of the current annotation's properties (methods).
|
String[] |
scope
When set, specifies one or more scopes this annotation can be mapped to,
i.e.
|
public abstract String prefix
public abstract String[] properties
1) If "*
" or "all
" are specified, all the appropriate properties are mapped.
2) If one or more property names are specified "as they are", and the properties list does not end with "*
"
or "all
", only the directly named properties are mapped.
3) If one or more names are specified with the prepended negation sign ("!
"), they are not mapped
while the rest are mapped.
4) If there are names with and without "!
" sign, rule (2) is in effect.
5) If "none
" is specified, there is no automapping
public abstract String[] scope
cq:Component
(component root), cq:dialog
, cq:editorConfig
,
or any other appropriate JCR node. The default value is equal to "all applicable scopes".
Note: this value has no effect for the properties that are rendered by a specific handler.
Also, it can be overridden by a PropertyRendering.scope()
setting if specified at the property level
Scope
valuesScopes
Copyright © 2021 Exadel, Inc.. All rights reserved.