public class Property
extends java.lang.Object
Constructor and Description |
---|
Property() |
Modifier and Type | Method and Description |
---|---|
org.apache.felix.ipojo.metadata.Element |
getElement()
Gets the property element.
|
PropertyDescription |
getPropertyDescription(ComponentInstance instance)
Gets the property description for the current property.
|
Property |
setConstructorParameter(int index)
Sets the constructor parameter index of the property.
|
Property |
setField(java.lang.String name)
Sets the property field.
|
Property |
setImmutable(boolean immutable)
Sets if the property is immutable.
|
Property |
setMandatory(boolean mandatory)
Sets if the property is mandatory.
|
Property |
setMethod(java.lang.String name)
Sets the property method.
|
Property |
setName(java.lang.String name)
Sets the property name.
|
Property |
setValue(java.lang.String name)
Sets the property value.
|
public Property setName(java.lang.String name)
name
- the property namepublic Property setField(java.lang.String name)
name
- the property fieldpublic Property setConstructorParameter(int index)
index
- the parameter indexpublic Property setMethod(java.lang.String name)
name
- the property methodpublic Property setValue(java.lang.String name)
name
- the property valuepublic Property setMandatory(boolean mandatory)
mandatory
- true
if the dependency is mandatory.public Property setImmutable(boolean immutable)
immutable
- true
if the dependency is immutable.public org.apache.felix.ipojo.metadata.Element getElement()
public PropertyDescription getPropertyDescription(ComponentInstance instance)
instance
- the component instance on which looking for the property.null
if not found.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.