Annotation Type Attribute
-
@Retention(RUNTIME) @Target(METHOD) public @interface Attribute
Annotates a method of a view interface, including the name of the attribute.- Author:
- Kevin Goeser
-
-
Field Summary
Fields Modifier and Type Fields Description static String
ATTRIBUTE_NO_DEFAULT_VALUE
Constant expressing that no default value is provided.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
defaultValue
Returns the default value of an optional attribute.String
description
Returns the description of the attribute.String
label
boolean
localised
Returns true, if the field is translatable (only valid for strings).Attribute.Type
type
-
-
-
Field Detail
-
ATTRIBUTE_NO_DEFAULT_VALUE
static final String ATTRIBUTE_NO_DEFAULT_VALUE
Constant expressing that no default value is provided.
-
-
Element Detail
-
name
String name
Returns 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 description
Returns the description of the attribute.- Returns:
- The description of the attribute.
- Default:
- ""
-
-
-
type
Attribute.Type type
- Returns:
- A type specialisation.
- Default:
- de.aristaflow.adept2.model.common.viewer.Attribute.Type.DEFAULT
-
-
-
defaultValue
String defaultValue
Returns the default value of an optional attribute.- Returns:
- The default value of an optional attribute.
- Default:
- "ATTRIBUTE_NO_DEFAULT_VALUE"
-
-