public class XmlData
extends Object
Constructor and Description |
---|
XmlData() |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(String parentNodeName,
Object obj,
String methodName)
add a node specific callback method, signature is method(Map
|
void |
addChildCallback(String nodeName,
Object obj,
String methodName) |
static void |
main(String[] args)
commandline invocation to print version, usage, expose methods.
|
void |
process(String filename)
process xml set by set.
|
void |
process(String filename,
boolean validate)
process xml set by set.
|
static void |
testCallback(String s,
Map in) |
public static final int MAJOR
public static final int MINOR
public void addCallback(String parentNodeName, Object obj, String methodName) throws Exception
obj
- object to invoke callback method on (can keep state) or String denoting the ClassmethodName
- callback method name - needs signature methodName(MapSecurityException
NoSuchMethodException
Exception
public void addChildCallback(String nodeName, Object obj, String methodName) throws Exception
Exception
public void process(String filename) throws Exception, CharConversionException
filename
- input data file nameException
- , CharConversionExceptionCharConversionException
public void process(String filename, boolean validate) throws Exception, CharConversionException
filename
- input data file nameException
- , CharConversionExceptionCharConversionException
public static void main(String[] args) throws Exception
args
- Exception
public static void testCallback(String s, Map in)