|
|||||||||||
| 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.XMLParser
com.ibm.di.parser.DSMLParser
public class DSMLParser
The DSML Parser reads and writes XML documents. The Parser silently ignores schema entries.
| 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 |
| Constructor Summary | |
|---|---|
DSMLParser()
Constructor |
|
| Method Summary | |
|---|---|
org.w3c.dom.Element |
createAttribute(Attribute attr)
Creates Element with the given attribute . |
org.w3c.dom.Element |
createObjectClass(Attribute attr)
Creates Element with ObjectClass tag name. |
org.w3c.dom.Element |
createValue(java.lang.String name,
java.lang.Object elemValue)
Creates an Element with the given name and elemValue. |
void |
dumpNodes(java.lang.String indent,
org.w3c.dom.NodeList list)
Prints all nodes and its children from the given list with the given indent |
org.w3c.dom.Node |
findNamedElement(org.w3c.dom.NodeList list,
java.lang.String name)
Finds element by name |
java.util.Vector |
getElementList(org.w3c.dom.Node parent)
Retrieves children elements |
org.w3c.dom.Node |
getFirstElement(org.w3c.dom.Node parent)
Retrieves first child element |
org.w3c.dom.Node |
getFirstText(org.w3c.dom.Node parent)
Retrieves first first Text node child |
org.w3c.dom.Node |
getNextNode(org.w3c.dom.Node node)
Retrieves the next Node |
java.lang.String |
getVersion()
Version Information. |
java.lang.String |
getXML()
Converts the output Document to String using parser's encoding. |
void |
initInput()
Initializes the properties from the input Document |
void |
initOutput()
Initializes the output Document |
void |
initParser()
This function is called by the connector containing this parser |
void |
p(java.lang.String s)
Prints a String |
Entry |
parseRequest(java.lang.Object request)
Sets the input stream with the given request object if the object is of type InputStream, Reader or StringReader. |
void |
printNode(java.lang.String indent,
org.w3c.dom.Node n)
Prints a node with a given indent |
Entry |
readEntry()
Constructs the next entry from the data structure read in initially. |
void |
writeEntry(Entry entry)
Constructs the data structure from the next entry read in initially. |
| Methods inherited from class com.ibm.di.parser.XMLParser |
|---|
closeParser, error, fatalError, flush, getOmitXMLDeclaration, 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, 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 |
| Constructor Detail |
|---|
public DSMLParser()
| Method Detail |
|---|
public void initParser()
throws java.lang.Exception
initParser in interface ParserInterfaceinitParser in class XMLParserjava.lang.Exception - if an error occurs.
public void initOutput()
throws java.lang.Exception
initOutput in class XMLParserjava.lang.Exception - if an error occurs.
public void initInput()
throws java.lang.Exception
initInput in class XMLParserjava.lang.Exception - if an error occurs.
public Entry parseRequest(java.lang.Object request)
throws java.lang.Exception
request - Object of type InputStream Reader or StringReader
java.lang.Exception - if an error occurs
public org.w3c.dom.Node findNamedElement(org.w3c.dom.NodeList list,
java.lang.String name)
list - NodeListname - String
public java.util.Vector getElementList(org.w3c.dom.Node parent)
parent - Node
public org.w3c.dom.Node getFirstElement(org.w3c.dom.Node parent)
parent - Node
public org.w3c.dom.Node getFirstText(org.w3c.dom.Node parent)
parent - Node
public void dumpNodes(java.lang.String indent,
org.w3c.dom.NodeList list)
indent - Stringlist - NodeList
public void printNode(java.lang.String indent,
org.w3c.dom.Node n)
indent - Stringn - Nodepublic void p(java.lang.String s)
s - the String to print
public Entry readEntry()
throws java.lang.Exception
readEntry in interface ParserInterfacereadEntry in class XMLParserjava.lang.Exception - if an error occurs.public org.w3c.dom.Node getNextNode(org.w3c.dom.Node node)
node - Node
public void writeEntry(Entry entry)
throws java.lang.Exception
writeEntry in interface ParserInterfacewriteEntry in class XMLParserentry - the next Entry
java.lang.Exception - if an error occurs.
public org.w3c.dom.Element createAttribute(Attribute attr)
throws java.lang.Exception
attr - Attribute
java.lang.Exception - if an error occurs.
public org.w3c.dom.Element createObjectClass(Attribute attr)
throws java.lang.Exception
ObjectClass tag name. Then appends a
child Element to it with name oc-value and value the given
attribute.
attr - Attribute
java.lang.Exception - if an error occurs.
public org.w3c.dom.Element createValue(java.lang.String name,
java.lang.Object elemValue)
throws java.lang.Exception
name - String objectelemValue - value of the Element
java.lang.Exception - if an error occurs.
public java.lang.String getXML()
throws java.lang.Exception
java.lang.Exception - if an error occurs.public java.lang.String getVersion()
getVersion in interface VersionInfoInterfacegetVersion in class XMLParser
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||