|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ephman.abra.tools.plugins.PluginGeneratorHandler
this class will accept callbacks when parsing xml for information storage and generation calls to run friend to MapToJava
Constructor Summary | |
PluginGeneratorHandler()
|
Method Summary | |
void |
addDefault(JClass currentClass)
call each registered generator for the given class and allow them to add any default PluginData |
void |
close()
At the end of the run allow each generator to close/release any resources or files |
void |
generate(JClass currentClass)
call each registered generator for the given class |
void |
handleClassLevelNode(java.lang.String nodeName,
java.util.Map attributes,
JClass currentClass)
call back when the node 'nodeName' which has been registered by this class is encountered |
void |
handleFieldLevelNode(java.lang.String nodeName,
java.util.Map attributes,
JClass currentClass,
JField currentField)
call back when the node 'nodeName' which has been registered by this class is encountered |
void |
registerGenerator(Generator generator)
before maptoJava works on an XML Doc -> register custom generators here so that later calls to handle{Class,Field}, or generate will include then |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PluginGeneratorHandler()
Method Detail |
public void handleClassLevelNode(java.lang.String nodeName, java.util.Map attributes, JClass currentClass) throws SchemaException
nodeName
- the node name ie "class-view"attributes
- all the attributes in the xml node in key-value hmapcurrentClass
- the JClass on which this node occured
SchemaException
- if the data is invalid.public void handleFieldLevelNode(java.lang.String nodeName, java.util.Map attributes, JClass currentClass, JField currentField) throws SchemaException
nodeName
- the node name ie "view"attributes
- all the attributes in the xml node in key-value hmapcurrentClass
- the JClass on which this node occuredcurrentField
- the JField on which this node occured
SchemaException
- if the data is invalid.public void addDefault(JClass currentClass) throws SchemaException
currentClass
- the class which should be passed to each registered generator
SchemaException
public void generate(JClass currentClass) throws java.io.IOException, SchemaException
currentClass
- the class which should be passed to each registered generator
java.io.IOException
SchemaException
public void close() throws java.io.IOException
java.io.IOException
public void registerGenerator(Generator generator)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |