|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.oxml.action.AbstractOXMLAction
net.sf.doolin.oxml.action.PropertyOXMLAction
public class PropertyOXMLAction
property action.
| Constructor Summary | |
|---|---|
PropertyOXMLAction()
|
|
| Method Summary | |
|---|---|
void |
parse(Element e)
Parses the action from an XML configuration. |
void |
process(OXMLContext context)
Processes the action against a context |
protected void |
setProperty(Object instance,
Object propertyValue)
Sets the property on a instance, using the parameters of this action. |
protected Object |
toEnum(Object instance,
Object propertyValue)
Converts, if possible, the property value to a corresponding enumeration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyOXMLAction()
| Method Detail |
|---|
public void parse(Element e)
throws IOException
OXMLAction
e - Configuration element for this action.
IOException - If the element cannot be parsedpublic void process(OXMLContext context)
OXMLAction
context - Execution context
protected void setProperty(Object instance,
Object propertyValue)
throws Exception
setter is defined, the property is directly set on the
instance using the property name. If a setter
has been defined, a sub-instance is first accessed using the
name property and the setter is then called on
this sub-instance.
instance - Object to set the property onpropertyValue - Property value to set
Exception - In case the property cannot be setUtils.getProperty(Object, String)
protected Object toEnum(Object instance,
Object propertyValue)
instance - Current instance that will host the property valuepropertyValue - Raw property value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||