org.cantaloop.cgimlet.handler
Class BeanHandler
java.lang.Object
|
+--org.cantaloop.cgimlet.handler.BeanHandler
- All Implemented Interfaces:
- ComponentHandler
- public class BeanHandler
- extends java.lang.Object
- implements ComponentHandler
Handler that generates a java bean.
- Version:
- 0.2.0 ($Revision: 1.10 $)
- Author:
- David Leuschner, Stefan Heimann
Method Summary |
void |
configure(org.dom4j.Element elem)
Request the handler to configure itself with the given configuration element. |
java.lang.Object |
generate(org.dom4j.Element elem)
Request the handler to generate the code. |
void |
init(ProjectGenerator gen)
Initialize the handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMESPACE_URI
public static final java.lang.String NAMESPACE_URI
NAMESPACE
public static final org.dom4j.Namespace NAMESPACE
BeanHandler
public BeanHandler()
init
public void init(ProjectGenerator gen)
- Description copied from interface:
ComponentHandler
- Initialize the handler.
- Specified by:
init
in interface ComponentHandler
- Following copied from interface:
org.cantaloop.cgimlet.ComponentHandler
- Parameters:
gen
- a ProjectGenerator
value
configure
public void configure(org.dom4j.Element elem)
- Description copied from interface:
ComponentHandler
- Request the handler to configure itself with the given configuration element.
- Specified by:
configure
in interface ComponentHandler
- Following copied from interface:
org.cantaloop.cgimlet.ComponentHandler
- Parameters:
configElem
- the root element of the configuration section of the handler.
generate
public java.lang.Object generate(org.dom4j.Element elem)
- Description copied from interface:
ComponentHandler
- Request the handler to generate the code.
- Specified by:
generate
in interface ComponentHandler
- Following copied from interface:
org.cantaloop.cgimlet.ComponentHandler
- Parameters:
root
- the root element of the content section of the handler.- Returns:
- a handler specific value