|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.parser.ParserImpl
com.ibm.di.parser.XSLbasedXMLParser
public class XSLbasedXMLParser
A class reading and writing Entries in XML format.
| Field Summary | |
|---|---|
org.w3c.dom.NodeList |
children
The children of the document element of the input Document |
int |
curindex
Variable containing the current index |
javax.xml.parsers.DocumentBuilder |
db
The document builder used to build the document |
java.lang.String |
entrytag
Entry tag |
org.w3c.dom.Document |
inputDoc
The input Document |
org.w3c.dom.Document |
outputDoc
The output Document |
org.w3c.dom.Element |
toplevelInput
The document element of the input Document |
boolean |
useCData
Whether using CDATASection or TextNode. |
java.lang.String |
valuetag
Value tag |
| Fields inherited from class com.ibm.di.parser.ParserImpl |
|---|
_debug, myConfiguration |
| Constructor Summary | |
|---|---|
XSLbasedXMLParser()
Constructor |
|
| Method Summary | |
|---|---|
void |
closeParser()
Closes the parser |
void |
error(org.xml.sax.SAXParseException exception)
Rethrows the given exception |
void |
fatalError(org.xml.sax.SAXParseException exception)
Ignore this since an error is called immediately afterwards |
void |
flush()
This function is called when the parser is closing to serialize the in memory DOM tree, for a connector in add/update mode |
boolean |
getOmitXMLDeclaration()
Returns whether we omit XML declaration or not. |
java.lang.String |
getVersion()
Version information. |
void |
initInput()
This function is called as a part of parser initialization, when the connector having this parser is in Iterator mode |
void |
initOutput()
This function is called as a part of parser initialization, when the connector having this parser is in Add mode |
void |
initParser()
This function is called by the connector containing this parser |
Entry |
readEntry()
Constructs the next entry from the data structure read in initially. |
void |
registerScriptBeans(ScriptEngine se)
Registers "static" script variables for input or output Document in the given ScriptEngine with the name "xmldom" |
void |
setOmitXMLDeclaration(boolean omit)
Sets whether to omit XML declaration or not. |
void |
warning(org.xml.sax.SAXParseException err)
Logs the given warning |
void |
writeEntry(Entry entry)
Constructs the data structure from the next entry read in initially. |
| Methods inherited from class com.ibm.di.parser.ParserImpl |
|---|
debug, debugMode, getClassInstance, getContext, getDebug, getInputStream, getOutputStream, getParam, getParser, getReader, getWriter, isDeltaSupported, logmsg, querySchema, setConfiguration, setContext, setDebug, setInputStream, setInputStream, setInputStream, setOutputStream, setOutputStream, setParam, setParser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public org.w3c.dom.Document inputDoc
public org.w3c.dom.Document outputDoc
public org.w3c.dom.Element toplevelInput
public org.w3c.dom.NodeList children
public int curindex
public boolean useCData
public java.lang.String entrytag
public java.lang.String valuetag
public javax.xml.parsers.DocumentBuilder db
| Constructor Detail |
|---|
public XSLbasedXMLParser()
| Method Detail |
|---|
public void registerScriptBeans(ScriptEngine se)
throws java.lang.Exception
registerScriptBeans in interface ParserInterfaceregisterScriptBeans in class ParserImplse - ScriptEngine
java.lang.Exception - if an error occurs.
public void initParser()
throws java.lang.Exception
initParser in interface ParserInterfaceinitParser in class ParserImpljava.lang.Exception - if an error occurs.
public void closeParser()
throws java.lang.Exception
closeParser in interface ParserInterfacecloseParser in class ParserImpljava.lang.Exception - if an error occurs.
public void flush()
throws java.lang.Exception
flush in interface ParserInterfaceflush in class ParserImpljava.lang.Exception - if an error occurs
public void initOutput()
throws java.lang.Exception
java.lang.Exception - if an error occurs.
public void initInput()
throws java.lang.Exception
java.lang.Exception - if an error occurs.
public Entry readEntry()
throws java.lang.Exception
readEntry in interface ParserInterfacejava.lang.Exception - if an error occurs.
public void writeEntry(Entry entry)
throws java.lang.Exception
writeEntry in interface ParserInterfaceentry - the next Entry
java.lang.Exception - if an error occurs.public void setOmitXMLDeclaration(boolean omit)
omit - if true omits XML declaration header in output
stream; otherwise does not omit XML declaration;public boolean getOmitXMLDeclaration()
true if omits XML declaration header in output
stream; false otherwise.public void fatalError(org.xml.sax.SAXParseException exception)
fatalError in interface org.xml.sax.ErrorHandlerexception - SAXParseException
public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlerexception - SAXParseException
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException err)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlererr - SAXParseException
org.xml.sax.SAXExceptionpublic java.lang.String getVersion()
getVersion in interface VersionInfoInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||