Name | Default Value | Required | SCR | Metatype | Description |
name | The name of constant | yes | property.name | AD.id | The name of the property. If this tag is defined on a field with an initialization expression, the value of that expression is used as the name if the field is of type String . |
value | | no | property.value | AD.default | The value of the property. If the property type is not String , parsing of the value is done using the valueOf(String) method of the class defined by the property type |
type | String | no | property.type | AD.type | The type of the property value. This must be one of String , Long , Double , Float , Integer , Byte , Char , Boolean and Short . |
label | %<name>.name | no | | AD.name | The label to display in a form to configure this property. This name may be localized by prepending a % sign to the name. |
description | %<name>.description | no | | AD.description | A descriptive text to provide the client in a form to configure this property. This name may be localized by prepending a % sign to the name. |
private | Depending on the name | no | | See description | Boolean flag defining whether a metatype descriptor entry should be generated for this property or not. By default a metatype descriptor entry, i.e. an AD element, is generated except for the properties service.pid , service.description , service.id , service.ranking , service.vendor , service.bundlelocation and service.factoryPid . If a property should not be available for display in a configuration user interface, this parameter should be set to true . |
cardinality | Depends on property value(s) | no | | AD.cardinality | Defines the cardinality of the property and its collection type. If the cardinality is negative, the property is expected to be stored in a java.util.Vector (primitive types such as boolean are boxed in the Wrapper class), if the cardinality is positive, the property is stored in an array (primitve types are unboxed, that is Boolean type values are stored in boolean[] ). The actual value defines the maximum number of elements in the vector or array, where Integer.MIN_INT describes an unbounded Vector and Integer.MAX_INT describes an unbounded array. If the cardinality is zero, the property is a scalar value. If the defined value of the property is set in the value attribute, the cardinality defaults to 0 (zero for scalar value). If the property is defined in one or more properties starting with values , the cardinality defaults to Integer.MAX_INT , that is an unbounded array. |
options | | no | | See below | See below for a description of the options parameter. |
values* | | no | | See below | See below for a description of parameters starting with values . |