|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.architecture.PropertyDescription
public class PropertyDescription
Property Information.
| Constructor Summary | |
|---|---|
PropertyDescription(Property prop)
Constructor. |
|
PropertyDescription(String name,
String type,
String value)
Constructor. |
|
PropertyDescription(String name,
String type,
String value,
boolean immutable)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getName()
Gets the current property name. |
Object |
getObjectValue(BundleContext context)
Gets the object value of the current immutable property. |
String |
getType()
Gets the current property type. |
String |
getValue()
Gets the current property value. |
boolean |
isImmutable()
Is the property immutable. |
boolean |
isMandatory()
Is the property mandatory. |
void |
setMandatory()
Sets the property as mandatory. |
void |
setValue(Object value)
Sets the property value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyDescription(String name,
String type,
String value)
name - the name of the propertytype - the type of the propertyvalue - the default value of the property, can be nullpublic PropertyDescription(Property prop)
prop - the attache Property object.
public PropertyDescription(String name,
String type,
String value,
boolean immutable)
name - the name of the propertytype - the type of the propertyvalue - the default value (String form) of the property, can be nullimmutable - the property is immutable.| Method Detail |
|---|
public String getName()
public String getType()
public String getValue()
null if the property hasn't a value..public void setValue(Object value)
Property object).
value - the new value.public boolean isImmutable()
true if the property is immutable.public void setMandatory()
public boolean isMandatory()
true if the property is mandatory,
false otherwise.public Object getObjectValue(BundleContext context)
context - the bundle context to use to load classes.
null if the current value is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||