|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.dm.impl.metatype.PropertyMetaDataImpl
public class PropertyMetaDataImpl
DependencyManager PropertyMetaData Implementation. This class describes meta informations regarding one given configuration property.
Constructor Summary | |
---|---|
PropertyMetaDataImpl()
|
Method Summary | |
---|---|
PropertyMetaData |
addOption(String optionLabel,
String optionValue)
Return a list of valid options for this property (the labels may be localized). |
int |
getCardinality()
|
String[] |
getDefaults()
|
String |
getDescription()
|
String |
getHeading()
|
String |
getId()
|
String[] |
getOptionLabels()
|
String[] |
getOptionValues()
|
int |
getType()
|
boolean |
isRequired()
|
PropertyMetaData |
setCardinality(int cardinality)
Return the cardinality of this property. |
PropertyMetaData |
setDefaults(String[] defaults)
Returns a default for this property. |
PropertyMetaData |
setDescription(String description)
Returns the property description. |
PropertyMetaData |
setHeading(String heading)
The label used to display the property. |
PropertyMetaData |
setId(String id)
The key of a ConfigurationAdmin property. |
PropertyMetaData |
setRequired(boolean required)
Tells if this property is required or not. |
PropertyMetaData |
setType(Class classType)
Returns the property primitive type. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyMetaDataImpl()
Method Detail |
---|
public PropertyMetaData addOption(String optionLabel, String optionValue)
PropertyMetaData
addOption
in interface PropertyMetaData
public PropertyMetaData setCardinality(int cardinality)
PropertyMetaData
setCardinality
in interface PropertyMetaData
public PropertyMetaData setDefaults(String[] defaults)
PropertyMetaData
setDefaults
in interface PropertyMetaData
public PropertyMetaData setDescription(String description)
PropertyMetaData
setDescription
in interface PropertyMetaData
public PropertyMetaData setHeading(String heading)
PropertyMetaData
setHeading
in interface PropertyMetaData
public PropertyMetaData setId(String id)
PropertyMetaData
setId
in interface PropertyMetaData
public PropertyMetaData setRequired(boolean required)
PropertyMetaData
setRequired
in interface PropertyMetaData
public PropertyMetaData setType(Class classType)
PropertyMetaData
setType
in interface PropertyMetaData
public String[] getOptionLabels()
public String[] getOptionValues()
public int getCardinality()
public String[] getDefaults()
public String getDescription()
public String getHeading()
public String getId()
public boolean isRequired()
public int getType()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |