|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.scrplugin.helper.PropertyHandler
public class PropertyHandler
Utility class for handling the properties.
Nested Class Summary | |
---|---|
protected static class |
PropertyHandler.PropertyDescription
|
Constructor Summary | |
---|---|
PropertyHandler(Component c,
OCD o)
|
Method Summary | |
---|---|
protected String |
getPropertyName(JavaTag tag,
JavaField field)
Return the name of the property. |
protected String[] |
getPropertyValueRef(JavaTag tag,
Property prop,
String valueRef)
|
protected JavaField |
getReferencedField(JavaTag tag,
String ref)
|
void |
handleField(JavaField javaField,
boolean isInspectedClass)
|
void |
processProperties(Map<String,String> globalProperties,
IssueLog iLog)
Process all found properties for the component. |
protected void |
processProperty(JavaTag tag,
String name,
JavaField javaField,
IssueLog iLog)
Process a property. |
protected void |
setPropertyValueRef(JavaTag tag,
Property property,
String valueRef)
|
void |
testProperty(JavaTag property,
JavaField field,
boolean isInspectedClass)
Test if there is already a property with the same name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyHandler(Component c, OCD o)
Method Detail |
---|
protected void processProperty(JavaTag tag, String name, JavaField javaField, IssueLog iLog) throws SCRDescriptorException
tag
- The property tag.name
- The name of the property.javaField
- The corresponding java field or null.
SCRDescriptorException
protected String getPropertyName(JavaTag tag, JavaField field) throws SCRDescriptorException
Constants.PROPERTY_NAME
Constants.PROPERTY_NAME_REF
property
- The property tag.field
- The corresponding field if the property is a tag of a field.
SCRDescriptorException
protected void setPropertyValueRef(JavaTag tag, Property property, String valueRef) throws SCRDescriptorException
SCRDescriptorException
protected JavaField getReferencedField(JavaTag tag, String ref) throws SCRDescriptorException
SCRDescriptorException
protected String[] getPropertyValueRef(JavaTag tag, Property prop, String valueRef) throws SCRDescriptorException
SCRDescriptorException
public void testProperty(JavaTag property, JavaField field, boolean isInspectedClass) throws SCRDescriptorException
property
- The tag.field
- isInspectedClass
-
SCRDescriptorException
public void handleField(JavaField javaField, boolean isInspectedClass) throws SCRDescriptorException
SCRDescriptorException
public void processProperties(Map<String,String> globalProperties, IssueLog iLog) throws SCRDescriptorException
globalProperties
- Global properties are set on all components.iLog
- The issue log.
SCRDescriptorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |