| Modifier and Type | Class and Description |
|---|---|
| public static @interface | Meta.
The AD element in the Metatype specification. |
| public static @interface | Meta.
The OCD Annotation maps to the OCD element in the Metatype specification. |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | NULL
Constant NULL for default usage |
| NULL | back to summary |
|---|---|
| public static final String NULL Constant NULL for default usage | |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String[] | |
| public String[] | |
| public boolean | |
| public Meta. |
| cardinality | back to summary |
|---|---|
| public 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.
| |
| deflt | back to summary |
|---|---|
| public String deflt() The default value. This value must be converted to the return type of the attribute. For multi valued returns use the | as separator.
| |
| description | back to summary |
|---|---|
| public String description() A description of the attribute. Default is empty.
| |
| id | back to summary |
|---|---|
| public String id() The id of the attribute. By default the name of the method. The id is the key used to access the properties. This is the reason the AD is a runtime annotation so the runtime can find the proper key.
| |
| max | back to summary |
|---|---|
| public String max() The maximum value. This string must be converted to the attribute type before comparison takes place.
| |
| min | back to summary |
|---|---|
| public String min() The minimum value. This string must be converted to the attribute type before comparison takes place.
| |
| name | back to summary |
|---|---|
| public String name() The name of the attribute. By default the un-camel cased version of the method name.
| |
| optionLabels | back to summary |
|---|---|
| public String[] optionLabels() Provide labels for options. These labels must match the values. If no labels are set, the un-cameled version of the values are used (if they are set of course).
| |
| optionValues | back to summary |
|---|---|
| public String[] optionValues() The values of options. If not set and the return type is an enum class then the values will be derived from this return type.
| |
| required | back to summary |
|---|---|
| public boolean required() Indicates that this attribute is required. By default attributes are required. | |
| type | back to summary |
|---|---|
| public Meta. 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. | |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public boolean | |
| public String | |
| public String | |
| public String |
| description | back to summary |
|---|---|
| public String description() A description for this ocd. The default is empty.
| |
| factory | back to summary |
|---|---|
| public boolean factory() Defines if this is for a factory or not. | |
| id | back to summary |
|---|---|
| public String id() The id of the component. Default the name of the class in FQN notation but with nested classes using the $ as separator (not .). The Felix webconsole always uses this id as the PID and not the pid in the Designate element. Reported as an error.
| |
| localization | back to summary |
|---|---|
| public String localization() The localization prefix. The default localization prefix is the name of the class with a $ separator for nested classes.
| |
| name | back to summary |
|---|---|
| public String name() The name for this component. The default name is a the short class name that us un-camel cased to make it more readable.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Meta. | |
| public static final Meta. | |
| public static final Meta. | |
| public static final Meta. | |
| public static final Meta. | |
| public static final Meta. | |
| public static final Meta. | |
| public static final Meta. | |
| public static final Meta. | |
| public static final Meta. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Meta. | |
| public static Meta. |
| Boolean | back to summary |
|---|---|
| public static final Meta. | |
| Byte | back to summary |
|---|---|
| public static final Meta. | |
| Character | back to summary |
|---|---|
| public static final Meta. | |
| Double | back to summary |
|---|---|
| public static final Meta. | |
| Float | back to summary |
|---|---|
| public static final Meta. | |
| Integer | back to summary |
|---|---|
| public static final Meta. | |
| Long | back to summary |
|---|---|
| public static final Meta. | |
| Password | back to summary |
|---|---|
| public static final Meta. | |
| Short | back to summary |
|---|---|
| public static final Meta. | |
| String | back to summary |
|---|---|
| public static final Meta. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static Meta. | |
| values | back to summary |
|---|---|
| public static Meta. | |