Annotation Interface ElementDefaultAttribute
Annotates a static final non-null field. When loading an
Element, the ElementLoader scans for all
fields bearing this annotation and will assign the value of this annotation to the default value to populate the
Attributes of the Element at load time. The value of the static field is to be the name of the
attribute.
This makes it such that the static constant may be used to retrieve the value from Attributes and the
default value will-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe default supplier that simply returns the value of the annotation. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionA description of the attribute.booleanWhether the attribute is sensitive (e.g., passwords, API keys).Class<? extends Function<ElementDefaultAttribute, String>> A supplier class that can be used to generate the default value dynamically.The default value of the configuration value.
-
Element Details
-
value
String valueThe default value of the configuration value.- Returns:
- the default value
- Default:
""
-
supplier
Class<? extends Function<ElementDefaultAttribute,String>> supplierA supplier class that can be used to generate the default value dynamically.- Returns:
- the supplier class
- Default:
dev.getelements.elements.sdk.annotation.ElementDefaultAttribute.DefaultValueSupplier.class
-
description
String descriptionA description of the attribute.- Returns:
- the description
- Default:
""
-
sensitive
boolean sensitiveWhether the attribute is sensitive (e.g., passwords, API keys).- Returns:
- true if sensitive, false otherwise
- Default:
false
-