|
||||||||||
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 | |
---|---|
NodeList |
children
|
int |
curindex
|
DocumentBuilder |
db
|
String |
entrytag
|
Document |
inputDoc
|
Document |
outputDoc
|
Element |
toplevel
|
Element |
toplevelInput
|
boolean |
useCData
|
String |
valuetag
|
Fields inherited from class com.ibm.di.parser.ParserImpl |
---|
_debug, myConfiguration |
Fields inherited from interface com.ibm.di.server.CheckpointRestartInterface |
---|
RESTART_AFTER, RESTART_BEFORE, RESTART_IN |
Constructor Summary | |
---|---|
XSLbasedXMLParser()
|
Method Summary | |
---|---|
void |
closeParser()
Close parser and deallocate resources. |
void |
error(SAXParseException exception)
|
void |
fatalError(SAXParseException exception)
|
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 |
Entry |
getCheckpointInformation()
Returns the state information for the parser. |
boolean |
getOmitXMLDeclaration()
|
String |
getVersion()
Return version information |
void |
initInput()
This function is called as a part of parser initialisation, 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 |
boolean |
isCheckpointRestartEnabled(int mode)
Components that support checkpoint/restart for a specific mode must return TRUE from this method. |
void |
prepareForRestart(ALState state,
Entry restartInfo,
int restartPoint)
Notifies of a restart situation. |
Entry |
readEntry()
Constructs the next entry from the data structure read in initially. |
void |
registerScriptBeans(ScriptEngine se)
Register objects in the script engine. |
void |
setOmitXMLDeclaration(boolean omit)
|
void |
warning(SAXParseException err)
|
void |
writeEntry(Entry entry)
Write an entry to the current output stream |
Methods inherited from class com.ibm.di.parser.ParserImpl |
---|
debug, debugMode, getClassInstance, getContext, getDebug, getInputStream, getOutputStream, getParam, getParser, getReader, getWriter, isDeltaSupported, logmsg, 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 Document inputDoc
public Document outputDoc
public Element toplevel
public Element toplevelInput
public NodeList children
public int curindex
public boolean useCData
public String entrytag
public String valuetag
public DocumentBuilder db
Constructor Detail |
---|
public XSLbasedXMLParser()
Method Detail |
---|
public void registerScriptBeans(ScriptEngine se) throws Exception
ParserImpl
registerScriptBeans
in interface ParserInterface
registerScriptBeans
in class ParserImpl
se
- The script engine
Exception
public void initParser() throws Exception
initParser
in interface ParserInterface
initParser
in class ParserImpl
Exception
public void closeParser() throws Exception
ParserImpl
closeParser
in interface ParserInterface
closeParser
in class ParserImpl
Exception
public void flush() throws Exception
flush
in interface ParserInterface
flush
in class ParserImpl
Exception
public void initOutput() throws Exception
Exception
public void initInput() throws Exception
Exception
public Entry readEntry() throws Exception
readEntry
in interface ParserInterface
Exception
public void writeEntry(Entry entry) throws Exception
ParserInterface
writeEntry
in interface ParserInterface
entry
- The entry to write
Exception
public void setOmitXMLDeclaration(boolean omit)
public boolean getOmitXMLDeclaration()
public void fatalError(SAXParseException exception)
fatalError
in interface ErrorHandler
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void warning(SAXParseException err) throws SAXException
warning
in interface ErrorHandler
SAXException
public boolean isCheckpointRestartEnabled(int mode)
isCheckpointRestartEnabled
in interface CheckpointRestartInterface
mode
- The mode the connector runs in
ServerConstants
public Entry getCheckpointInformation() throws Exception
getCheckpointInformation
in interface CheckpointRestartInterface
Exception
public void prepareForRestart(ALState state, Entry restartInfo, int restartPoint) throws Exception
prepareForRestart
in interface CheckpointRestartInterface
restartInfo
- The last entry object returned by the connector in the getCheckpointInformation methodstate
- The ALState object for the AssemblyLinerestartPoint
- The relative point where restarting is taking place (e.g. RESTART_BEFORE ...)
Exception
public String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |