Annotation Interface Attribute
Annotates a method of a view interface, including the name of the attribute.
- Author:
- Kevin Goeser
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionReturns the default value of an optional attribute.Returns the description of the attribute.booleanReturns true, if the field is translatable (only valid for strings). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant expressing that no default value is provided.
-
Field Details
-
ATTRIBUTE_NO_DEFAULT_VALUE
Constant expressing that no default value is provided.- See Also:
-
-
Element Details
-
name
String nameReturns the name of the attribute.- Returns:
- The name of the attribute.
-
-
-
label
String label- Returns:
- A label, e.g. for the UI formatted name.
- Default:
- "ATTRIBUTE_NO_DEFAULT_VALUE"
-
description
String descriptionReturns the description of the attribute.- Returns:
- The description of the attribute.
- Default:
- ""
-
type
Attribute.Type type- Returns:
- A type specialisation.
- Default:
- DEFAULT
-
defaultValue
String defaultValueReturns the default value of an optional attribute.- Returns:
- The default value of an optional attribute.
- Default:
- "ATTRIBUTE_NO_DEFAULT_VALUE"
-
localised
boolean localisedReturns true, if the field is translatable (only valid for strings).- Returns:
- True, if the field is translatable (only valid for strings).
- Default:
- false
-