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 propertyvoid
Set the namevoid
Set the typevoid
Set the valuevoid
Set multiple values as an array, where the values are contained in the string as one value per line.private Object
private Object
toTypeArray
(String[] valueList) void
validate
(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
Set the name- Parameters:
name
-
-
setType
Set the type- Parameters:
type
-
-
setValue
Set the value- Parameters:
value
-
-
setValues
Set multiple values as an array, where the values are contained in the string as one value per line.- Parameters:
values
-
-
getName
Get the name of the property- Returns:
- the name of the property
-
getType
Get the type of the property- Returns:
- the type of the property
-
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
-