|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wsil.xml.XMLReader
public class XMLReader
This class will use a DOM parser to read and process the contents of a WS-Inspection document.
| Field Summary | |
|---|---|
protected ExtensionRegistry |
extRegistry
WSIL extension registry. |
protected java.io.Reader |
reader
Reader which is used to obtain contents of a WSIL document. |
protected WSILDocument |
wsilDocument
WSIL document. |
| Constructor Summary | |
|---|---|
XMLReader()
Create a WSIL document reader. |
|
| Method Summary | |
|---|---|
protected Abstract |
parseAbstract(org.w3c.dom.Element abstractElement,
WSILElementWithAbstract wsilElement)
Parse abstract element. |
protected Description |
parseDescription(org.w3c.dom.Element descriptionElement,
Service service)
Parse description element. |
void |
parseDocument(WSILDocument wsilDocument,
java.io.Reader reader)
Create a WSIL document from the contents of a reader. |
protected ExtensionElement |
parseExtensionElement(org.w3c.dom.Element element,
WSILElement wsilElement)
Parse extension element. |
protected void |
parseInspection(org.w3c.dom.Element inspectionElement)
Parse inspection element. |
protected Link |
parseLink(org.w3c.dom.Element linkElement,
Inspection inspection)
Parse link element. |
protected Service |
parseService(org.w3c.dom.Element serviceElement,
Inspection inspection)
Parse service element. |
protected ServiceName |
parseServiceName(org.w3c.dom.Element nameElement,
Service service)
Parse service name element. |
protected org.w3c.dom.Document |
parseXML(java.io.Reader reader)
Parse the XML document. |
protected void |
saveNS(org.w3c.dom.Element element,
Inspection inspection)
Save namespace settings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.Reader reader
protected WSILDocument wsilDocument
protected ExtensionRegistry extRegistry
| Constructor Detail |
|---|
public XMLReader()
| Method Detail |
|---|
protected Abstract parseAbstract(org.w3c.dom.Element abstractElement,
WSILElementWithAbstract wsilElement)
throws WSILException
abstractElement - the DOM element that contains the abstract elementwsilElement - the WSIL element with that contains the abstract element
WSILException
protected Description parseDescription(org.w3c.dom.Element descriptionElement,
Service service)
throws WSILException
descriptionElement - the DOM element that contains the description elementservice - the service element
WSILException
public void parseDocument(WSILDocument wsilDocument,
java.io.Reader reader)
throws WSILException
parseDocument in interface DocumentReaderwsilDocument - WS-Inspection document objectreader - the reader from which to obtain the contents of the document
WSILException
protected ExtensionElement parseExtensionElement(org.w3c.dom.Element element,
WSILElement wsilElement)
throws WSILException
element - the DOM element that contains the extension elementwsilElement - the WSIL element that contains the extension element
WSILException
protected void parseInspection(org.w3c.dom.Element inspectionElement)
throws WSILException
inspectionElement - the DOM element that contains the inspection element
WSILException
protected Link parseLink(org.w3c.dom.Element linkElement,
Inspection inspection)
throws WSILException
linkElement - the DOM element that contains the link elementinspection - the inspection element
WSILException
protected Service parseService(org.w3c.dom.Element serviceElement,
Inspection inspection)
throws WSILException
linkElement - the DOM element that contains the service elementinspection - the inspection element
WSILException
protected ServiceName parseServiceName(org.w3c.dom.Element nameElement,
Service service)
throws WSILException
linkElement - the DOM element that contains the name elementservice - the service element
WSILException
protected org.w3c.dom.Document parseXML(java.io.Reader reader)
throws WSILException
WSILException
protected void saveNS(org.w3c.dom.Element element,
Inspection inspection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||