Class AD


  • @Deprecated(since="2021-05-27")
    public class AD
    extends OptionalAttributes
    Deprecated.
    The Apache Felix metatype API is deprecated, please use the OSGi metatype API instead.
    The AD class represents the AD element of the meta type descriptor.
    • Field Detail

      • VALIDATE_NOT_A_VALID_OPTION

        public static final java.lang.String VALIDATE_NOT_A_VALID_OPTION
        Deprecated.
        The message returned from the validate(String) method if the value is not any of the specified option values (value is "%not a valid option").
        See Also:
        Constant Field Values
      • VALIDATE_INVALID_VALUE

        public static final java.lang.String VALIDATE_INVALID_VALUE
        Deprecated.
        The message returned from the validate(String) method if the value is invalid considering its type (value is "%invalid value").
        See Also:
        Constant Field Values
      • VALIDATE_GREATER_THAN_MAXIMUM

        public static final java.lang.String VALIDATE_GREATER_THAN_MAXIMUM
        Deprecated.
        The message returned from the validate(String) method if the value is greater than the specified maximum value (value is "%greater than maximum").
        See Also:
        Constant Field Values
      • VALIDATE_LESS_THAN_MINIMUM

        public static final java.lang.String VALIDATE_LESS_THAN_MINIMUM
        Deprecated.
        The message returned from the validate(String) method if the value is less than the specified minimum value (value is "%less than minimum").
        See Also:
        Constant Field Values
      • VALIDATE_MISSING

        public static final java.lang.String VALIDATE_MISSING
        Deprecated.
        The message returned from the validate(String) method if the value is null or cannot be converted to an attribute value and a value is required (value is "%missing required value").
        See Also:
        Constant Field Values
    • Constructor Detail

      • AD

        public AD()
        Deprecated.
    • Method Detail

      • getID

        public java.lang.String getID()
        Deprecated.
      • getName

        public java.lang.String getName()
        Deprecated.
      • getDescription

        public java.lang.String getDescription()
        Deprecated.
      • getType

        public int getType()
        Deprecated.
      • getCardinality

        public int getCardinality()
        Deprecated.
      • getOptionLabels

        public java.lang.String[] getOptionLabels()
        Deprecated.
      • getOptionValues

        public java.lang.String[] getOptionValues()
        Deprecated.
      • getDefaultValue

        public java.lang.String[] getDefaultValue()
        Deprecated.
      • getMin

        public java.lang.String getMin()
        Deprecated.
      • getMax

        public java.lang.String getMax()
        Deprecated.
      • isRequired

        public boolean isRequired()
        Deprecated.
      • setID

        public void setID​(java.lang.String id)
        Deprecated.
        Parameters:
        id - the id to set
      • setName

        public void setName​(java.lang.String name)
        Deprecated.
        Parameters:
        name - the name to set
      • setDescription

        public void setDescription​(java.lang.String description)
        Deprecated.
        Parameters:
        description - the description to set
      • setType

        public void setType​(java.lang.String typeString)
        Deprecated.
        Parameters:
        typeString - the type to set
      • setCardinality

        public void setCardinality​(int cardinality)
        Deprecated.
        Parameters:
        cardinality - the cardinality to set
      • setOptions

        public void setOptions​(java.util.Map options)
        Deprecated.
        Parameters:
        options - the options to set
      • setDefaultValue

        public void setDefaultValue​(java.lang.String defaultValue)
        Deprecated.
        Sets the default value(s) for this AD.

        NOTE: this method is depending on the value of getCardinality()! Make sure that the cardinality is properly set before calling this method.

        Parameters:
        defaultValue - the default value to set, as encoded string-value (using comma's as separator), can be null.
      • setMin

        public void setMin​(java.lang.String min)
        Deprecated.
        Parameters:
        min - the min to set
      • setMax

        public void setMax​(java.lang.String max)
        Deprecated.
        Parameters:
        max - the max to set
      • setRequired

        public void setRequired​(boolean isRequired)
        Deprecated.
        Parameters:
        isRequired - the isRequired to set
      • toType

        public static int toType​(java.lang.String typeString)
        Deprecated.
      • splitList

        public static java.lang.String[] splitList​(java.lang.String listString)
        Deprecated.