org.apache.felix.ipojo.architecture
Class PropertyDescription

java.lang.Object
  extended by org.apache.felix.ipojo.architecture.PropertyDescription

public class PropertyDescription
extends java.lang.Object

Property Information.

Author:
Felix Project Team

Constructor Summary
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.
 
Method Summary
 java.lang.String getName()
          Get the current property name.
 java.lang.Object getObjectValue(org.osgi.framework.BundleContext context)
          Get the object value of the current immutable property.
 java.lang.String getType()
          Get the current property type.
 java.lang.String getValue()
          Get the current property value.
 boolean isImmutable()
          Is the property immutable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDescription

public PropertyDescription(java.lang.String name,
                           java.lang.String type,
                           java.lang.String value)
Constructor.

Parameters:
name - : name of the property
type - : type of the property
value - : default value of the property

PropertyDescription

public PropertyDescription(java.lang.String name,
                           java.lang.String type,
                           java.lang.String value,
                           boolean immutable)
Constructor.

Parameters:
name - : name of the property
type - : type of the property
value - : default value of the property
immutable - : the property is immutable.
Method Detail

getName

public java.lang.String getName()
Get the current property name.

Returns:
the property name.

getType

public java.lang.String getType()
Get the current property type.

Returns:
the property type.

getValue

public java.lang.String getValue()
Get the current property value.

Returns:
the default value for the property.

isImmutable

public boolean isImmutable()
Is the property immutable.

Returns:
true if the property is immutable.

getObjectValue

public java.lang.Object getObjectValue(org.osgi.framework.BundleContext context)
Get the object value of the current immutable property.

Parameters:
context - : bundle context to use to load classes.
Returns:
the object value of the current property.