Package aQute.bnd.annotation.metatype
Annotation Type Meta.AD
-
@Target(METHOD) @Retention(RUNTIME) public static @interface Meta.ADThe AD element in the Metatype specification.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intcardinalityThe cardinality of the attribute.java.lang.StringdefltThe default value.java.lang.StringdescriptionA description of the attribute.java.lang.StringidThe id of the attribute.java.lang.StringmaxThe maximum value.java.lang.StringminThe minimum value.java.lang.StringnameThe name of the attribute.java.lang.String[]optionLabelsProvide labels for options.java.lang.String[]optionValuesThe values of options.booleanrequiredIndicates that this attribute is required.Meta.TypetypeThe type of the field.
-
-
-
-
type
Meta.Type type
The type of the field. This must be one of the basic types in the metatype specification. By default, the type is derived from the return type of the method. This includes most collections and arrays. Unrecognized types are defaulted to String.- Returns:
- the type to be used.
- Default:
- aQute.bnd.annotation.metatype.Meta.Type.String
-
-
-
cardinality
int cardinality
The cardinality of the attribute. If not explicitly set it will be derived from the attributes return type. Collections return Integer.MIN_VALUE and arrays use Integer.MAX_VALUE. If a single string needs to be converted to a Collection or array then the | will be used as a separator to split the line.- Returns:
- the cardinality of the attribute
- Default:
- 0
-
-