|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 String |
ENCODING
The character encoding used for the reporfile: ISO-8859-1. |
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(String nameSpaceURI,
String localName,
String name)
Overrides a method of org.xml.sax.helpers.DefaultHandler. |
void |
error(SAXParseException e)
Overrides a method of org.xml.sax.helpers.DefaultHandler. |
void |
parse(Reader input)
Parse xml and execute transactions accordingly. |
void |
startElement(String nameSpaceURI,
String localName,
String name,
Attributes attributes)
Overrides a method of org.xml.sax.helpers.DefaultHandler. |
void |
warning(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 String ENCODING
public final 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(String nameSpaceURI,
String localName,
String name,
Attributes attributes)
throws SAXException
nameSpaceURI - - see org.xml.sax.ContentHandlerlocalName - - see org.xml.sax.ContentHandlername - - The element type name.attributes - - The specified or defaulted attributes.
SAXException - - Any SAX exception, possibly wrapping another
exception.
public void endElement(String nameSpaceURI,
String localName,
String name)
throws SAXException
nameSpaceURI - - see org.xml.sax.ContentHandlerlocalName - - see org.xml.sax.ContentHandlername - - The element type name.
SAXException - - Any SAX exception, possibly wrapping another exception.
public void characters(char[] ch,
int start,
int length)
throws SAXException
ch - - The characters from the XML document.start - - The start position in the array.length - - The number of characters to read from the array.
SAXException - - Any SAX exception, possibly wrapping another
exception.
public void error(SAXParseException e)
throws SAXException
e - c
SAXException - - Any SAX exception, possibly wrapping another exception.
public void warning(SAXParseException e)
throws SAXException
e - - Any SAX exception, possibly wrapping another exception.
SAXException - - Any SAX exception, possibly wrapping another exception.
public void parse(Reader input)
throws IOException,
TransactionHandlerException
input - The input source.
TransactionHandlerException - Except for IO exceptions every exception is wrapped in a TransactionException.
IOException - If an IO problem occurs while reading the XML data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||