com.ibm.di.parser
Class DSMLParser

java.lang.Object
  extended by com.ibm.di.parser.ParserImpl
      extended by com.ibm.di.parser.XMLParser
          extended by com.ibm.di.parser.DSMLParser
All Implemented Interfaces:
ParserInterface, CheckpointRestartInterface, VersionInfoInterface, ErrorHandler

public class DSMLParser
extends XMLParser


Field Summary
 
Fields inherited from class com.ibm.di.parser.XMLParser
children, curindex, db, entrytag, inputDoc, outputDoc, toplevel, toplevelInput, useCData, 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
DSMLParser()
           
 
Method Summary
 Element createAttribute(Attribute attr)
           
 Element createObjectClass(Attribute attr)
           
 Element createValue(String name, Object elemValue)
           
 void dumpNodes(String indent, NodeList list)
           
 Node findNamedElement(NodeList list, String name)
           
 Vector getElementList(Node parent)
           
 Node getFirstElement(Node parent)
           
 Node getFirstText(Node parent)
           
 Node getNextNode(Node node)
           
 String getVersion()
          Return version information
 String getXML()
           
 void initInput()
           
 void initOutput()
           
 void initParser()
          Perform initialization of parser.
 void p(String s)
           
 Entry parseRequest(Object request)
           
 void printNode(String indent, Node n)
           
 Entry readEntry()
          Constructs the next entry from the data structure read in initially.
 void writeEntry(Entry entry)
          Write an entry to the current output stream
 
Methods inherited from class com.ibm.di.parser.XMLParser
closeParser, error, fatalError, flush, getCheckpointInformation, getOmitXMLDeclaration, isCheckpointRestartEnabled, prepareForRestart, registerScriptBeans, setOmitXMLDeclaration, warning
 
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
 

Constructor Detail

DSMLParser

public DSMLParser()
Method Detail

initParser

public void initParser()
                throws Exception
Description copied from class: ParserImpl
Perform initialization of parser.

Specified by:
initParser in interface ParserInterface
Overrides:
initParser in class XMLParser
Throws:
Exception

initOutput

public void initOutput()
                throws Exception
Overrides:
initOutput in class XMLParser
Throws:
Exception

initInput

public void initInput()
               throws Exception
Overrides:
initInput in class XMLParser
Throws:
Exception

parseRequest

public Entry parseRequest(Object request)
                   throws Exception
Throws:
Exception

findNamedElement

public Node findNamedElement(NodeList list,
                             String name)

getElementList

public Vector getElementList(Node parent)

getFirstElement

public Node getFirstElement(Node parent)

getFirstText

public Node getFirstText(Node parent)

dumpNodes

public void dumpNodes(String indent,
                      NodeList list)

printNode

public void printNode(String indent,
                      Node n)

p

public void p(String s)

readEntry

public Entry readEntry()
                throws Exception
Description copied from class: XMLParser
Constructs the next entry from the data structure read in initially. If end of data encountered a null value is returned.

Specified by:
readEntry in interface ParserInterface
Overrides:
readEntry in class XMLParser
Returns:
the next Entry
Throws:
Exception

getNextNode

public Node getNextNode(Node node)

writeEntry

public void writeEntry(Entry entry)
                throws Exception
Description copied from interface: ParserInterface
Write an entry to the current output stream

Specified by:
writeEntry in interface ParserInterface
Overrides:
writeEntry in class XMLParser
Parameters:
entry - The entry to write
Throws:
Exception

createAttribute

public Element createAttribute(Attribute attr)
                        throws Exception
Throws:
Exception

createObjectClass

public Element createObjectClass(Attribute attr)
                          throws Exception
Throws:
Exception

createValue

public Element createValue(String name,
                           Object elemValue)
                    throws Exception
Throws:
Exception

getXML

public String getXML()
              throws Exception
Throws:
Exception

getVersion

public String getVersion()
Return version information

Specified by:
getVersion in interface VersionInfoInterface
Overrides:
getVersion in class XMLParser