@Target(value=METHOD) @Retention(value=RUNTIME) public @interface PropertyRendering
Modifier and Type | Optional Element and Description |
---|---|
boolean |
allowBlank
When set to true, indicates that a user-defined value will be necessarily rendered into an attribute
even if it maps to an empty or a blank string
|
boolean |
ignorePrefix
When set to true, allows overriding prefix set for this field name
(in.
|
String[] |
ignoreValues
When set, indicates that if a user-provided value matches one of the defined strings, the attribute will not
be rendered (used to omit meaningless defaults from the resulting XML markup)
|
String |
name
When set, maps to the
name attribute of a dialog field node |
String[] |
scope
When set, used to specify one or more scopes this annotation property is rendered in,
i.e.
|
StringTransformation |
transform
Defines whether the string value is stored as-is, or else is rendered in uppercase, lowercase, or came-lase.
|
Class<?> |
valueType
When set, defines what value type will be assumed for the underlying property.
|
public abstract boolean allowBlank
public abstract boolean ignorePrefix
FieldSet
annotation)public abstract String[] ignoreValues
public abstract String name
name
attribute of a dialog field nodepublic abstract String[] scope
cq:Component
(component root), cq:dialog
, cq:editorConfig
,
or any other appropriate JCR node.
This setting applies only to values that technically can be rendered to multiple JCR nodes,
such as Dialog
annotation propertiesScope
valueScopes
public abstract StringTransformation transform
Enum
valuesStringTransformation
variantspublic abstract Class<?> valueType
String
, long
, double
, etc. This value is used to modify a default type hint
or remove a type hint for the "XML-stringified" representation of a value, e.g. when a boolean value must be
rendered as "true"
and not as "{Boolean}true"
which is by defaultClass
reference. One of the JCR-compliant classes must be usedCopyright © 2024 Exadel, Inc.. All rights reserved.