|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--org.mmbase.applications.xmlimporter.TransactionsParser
This class parses the xml file with TML code and calls the appropriate methods in TransactionManager TemporarayNodeManager org.mmabse.module.core Furthermore is does some nameserving.
| Field Summary | |
static java.lang.String |
ENCODING
The character encoding used for the reporfile: ISO-8859-1. |
java.lang.String |
xmlHeader
The XML header used for the reportfile. |
| Constructor Summary | |
TransactionsParser(UserTransactionInfo uti)
Creates new TransactionParser object. |
|
TransactionsParser(UserTransactionInfo uti,
Consultant consultant)
Creates new TransactionParser object. |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Overrides a method of org.xml.sax.helpers.DefaultHandler. |
void |
endElement(java.lang.String nameSpaceURI,
java.lang.String localName,
java.lang.String name)
Overrides a method of org.xml.sax.helpers.DefaultHandler. |
void |
error(org.xml.sax.SAXParseException e)
Overrides a method of org.xml.sax.helpers.DefaultHandler. |
void |
parse(java.io.Reader input)
Parse xml and execute transactions accordingly. |
void |
startElement(java.lang.String nameSpaceURI,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes attributes)
Overrides a method of org.xml.sax.helpers.DefaultHandler. |
void |
warning(org.xml.sax.SAXParseException e)
Overrides a method of org.xml.sax.helpers.DefaultHandler. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ENCODING
public final java.lang.String xmlHeader
| Constructor Detail |
public TransactionsParser(UserTransactionInfo uti,
Consultant consultant)
consultant - The intermediate import object. Used to set and get status from and set and get objects to and from.uti - - UserTransactionInfo object which contains a collection in
which all transactions for a user are listed.public TransactionsParser(UserTransactionInfo uti)
uti - - UserTransactionInfo object which contains a collection in
which all transactions for a user are listed.| Method Detail |
public void startElement(java.lang.String nameSpaceURI,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in class org.xml.sax.helpers.DefaultHandlernameSpaceURI - - see org.xml.sax.ContentHandlerlocalName - - see org.xml.sax.ContentHandlername - - The element type name.attributes - - The specified or defaulted attributes.org.xml.sax.SAXException - - Any SAX exception, possibly wrapping another
exception.
public void endElement(java.lang.String nameSpaceURI,
java.lang.String localName,
java.lang.String name)
throws org.xml.sax.SAXException
endElement in class org.xml.sax.helpers.DefaultHandlernameSpaceURI - - see org.xml.sax.ContentHandlerlocalName - - see org.xml.sax.ContentHandlername - - The element type name.org.xml.sax.SAXException - - Any SAX exception, possibly wrapping another exception.
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in class org.xml.sax.helpers.DefaultHandlerch - - The characters from the XML document.start - - The start position in the array.length - - The number of characters to read from the array.org.xml.sax.SAXException - - Any SAX exception, possibly wrapping another
exception.
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
error in class org.xml.sax.helpers.DefaultHandlere - corg.xml.sax.SAXException - - Any SAX exception, possibly wrapping another exception.
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
warning in class org.xml.sax.helpers.DefaultHandlere - - Any SAX exception, possibly wrapping another exception.org.xml.sax.SAXException - - Any SAX exception, possibly wrapping another exception.
public void parse(java.io.Reader input)
throws java.io.IOException,
TransactionHandlerException
input - The input source.TransactionHandlerException - Except for IO exceptions every exception is wrapped in a TransactionException.java.io.IOException - If an IO problem occurs while reading the XML data.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||