|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.scrplugin.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 java.lang.String |
getPropertyName(JavaTag tag,
JavaField field)
Return the name of the property. |
protected java.lang.String[] |
getPropertyValueRef(JavaTag tag,
Property prop,
java.lang.String valueRef)
|
protected JavaField |
getReferencedField(JavaTag tag,
java.lang.String ref)
|
void |
handleField(JavaField javaField,
boolean isInspectedClass)
|
void |
processProperties(java.util.Map globalProperties)
Process all found properties for the component. |
protected void |
processProperty(JavaTag tag,
java.lang.String name,
JavaField javaField)
Process a property. |
protected void |
setPropertyValueRef(JavaTag tag,
Property property,
java.lang.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, java.lang.String name, JavaField javaField) throws org.apache.maven.plugin.MojoExecutionException
tag
- The property tag.name
- The name of the property.javaField
- The corresponding java field or null.
org.apache.maven.plugin.MojoExecutionException
protected java.lang.String getPropertyName(JavaTag tag, JavaField field) throws org.apache.maven.plugin.MojoExecutionException
Constants.PROPERTY_NAME
Constants.PROPERTY_NAME_REF
property
- The property tag.field
- The corresponding field if the property is a tag of a field.
org.apache.maven.plugin.MojoExecutionException
protected void setPropertyValueRef(JavaTag tag, Property property, java.lang.String valueRef) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected JavaField getReferencedField(JavaTag tag, java.lang.String ref) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.lang.String[] getPropertyValueRef(JavaTag tag, Property prop, java.lang.String valueRef) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void testProperty(JavaTag property, JavaField field, boolean isInspectedClass) throws org.apache.maven.plugin.MojoExecutionException
property
- The tag.field
- isInspectedClass
-
org.apache.maven.plugin.MojoExecutionException
public void handleField(JavaField javaField, boolean isInspectedClass) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void processProperties(java.util.Map globalProperties) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |