public class PropertyMetadata
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
m_name |
private java.lang.String |
m_type |
private boolean |
m_validated |
private java.lang.Object |
m_value |
Constructor and Description |
---|
PropertyMetadata() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of the property
|
java.lang.String |
getType()
Get the type of the property
|
java.lang.Object |
getValue()
Get the value of the property
|
void |
setName(java.lang.String name)
Set the name
|
void |
setType(java.lang.String type)
Set the type
|
void |
setValue(java.lang.String value)
Set the value
|
void |
setValues(java.lang.String values)
Set multiple values as an array, where the values are contained in
the string as one value per line.
|
private java.lang.Object |
toType(java.lang.String value) |
private java.lang.Object |
toTypeArray(java.lang.String[] valueList) |
void |
validate(ComponentMetadata componentMetadata)
Method used to verify if the semantics of this metadata are correct
|
private java.lang.String m_name
private java.lang.String m_type
private java.lang.Object m_value
private boolean m_validated
public void setName(java.lang.String name)
name
- public void setType(java.lang.String type)
type
- public void setValue(java.lang.String value)
value
- public void setValues(java.lang.String values)
values
- public java.lang.String getName()
public java.lang.String getType()
public java.lang.Object getValue()
public void validate(ComponentMetadata componentMetadata)
private java.lang.Object toType(java.lang.String value)
java.lang.IllegalArgumentException
- if the property type is not valid
according to the specjava.lang.NumberFormatException
- if the string value cannot be converted
to the numeric type indicated by the property typeprivate java.lang.Object toTypeArray(java.lang.String[] valueList)
java.lang.IllegalArgumentException
- if the property type is not valid
according to the specjava.lang.NumberFormatException
- if the string value cannot be converted
to the numeric type indicated by the property type