Class PropertyMetadata
java.lang.Object
org.apache.felix.scr.impl.metadata.PropertyMetadata
A property descriptor that contains the information for properties
defined in the descriptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of the propertygetType()Get the type of the propertygetValue()Get the value of the propertyvoidSet the namevoidSet the typevoidSet the valuevoidSet multiple values as an array, where the values are contained in the string as one value per line.private Objectprivate ObjecttoTypeArray(String[] valueList) voidvalidate(ComponentMetadata componentMetadata) Method used to verify if the semantics of this metadata are correct
-
Field Details
-
m_name
-
m_type
-
m_value
-
m_validated
private boolean m_validated
-
-
Constructor Details
-
PropertyMetadata
public PropertyMetadata()
-
-
Method Details
-
setName
-
setType
-
setValue
-
setValues
Set multiple values as an array, where the values are contained in the string as one value per line.- Parameters:
values-
-
getName
-
getType
-
getValue
Get the value of the property- Returns:
- the value of the property as an Object
-
validate
Method used to verify if the semantics of this metadata are correct -
toType
- Throws:
IllegalArgumentException- if the property type is not valid according to the specNumberFormatException- if the string value cannot be converted to the numeric type indicated by the property type
-
toTypeArray
- Throws:
IllegalArgumentException- if the property type is not valid according to the specNumberFormatException- if the string value cannot be converted to the numeric type indicated by the property type
-