public class PropertyDescription
extends java.lang.Object
| Constructor and Description |
|---|
PropertyDescription(Property prop)
Constructor.
|
PropertyDescription(java.lang.String name,
java.lang.String type,
java.lang.String value)
Constructor.
|
PropertyDescription(java.lang.String name,
java.lang.String type,
java.lang.String value,
boolean immutable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCurrentValue()
Gets the current value of the property as object.
|
java.lang.String |
getName()
Gets the current property name.
|
java.lang.Object |
getObjectValue(org.osgi.framework.BundleContext context)
Gets the object value of the current immutable property.
|
java.lang.String |
getType()
Gets the current property type.
|
java.lang.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(java.lang.Object value)
Sets the property value.
|
public PropertyDescription(java.lang.String name,
java.lang.String type,
java.lang.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(java.lang.String name,
java.lang.String type,
java.lang.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.public java.lang.String getName()
public java.lang.String getType()
public java.lang.String getValue()
null if the property hasn't a value..public void setValue(java.lang.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 java.lang.Object getObjectValue(org.osgi.framework.BundleContext context)
context - the bundle context to use to load classes.
null if the current value is null.public java.lang.Object getCurrentValue()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.