Package org.apache.wsil.xml
Class XMLReader
java.lang.Object
org.apache.wsil.xml.XMLReader
- All Implemented Interfaces:
DocumentReader
This class will use a DOM parser to read and process the contents
of a WS-Inspection document.
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExtensionRegistry
WSIL extension registry.protected Reader
Reader which is used to obtain contents of a WSIL document.protected WSILDocument
WSIL document. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Abstract
parseAbstract
(Element abstractElement, WSILElementWithAbstract wsilElement) Parse abstract element.protected Description
parseDescription
(Element descriptionElement, Service service) Parse description element.void
parseDocument
(WSILDocument wsilDocument, Reader reader) Create a WSIL document from the contents of a reader.protected ExtensionElement
parseExtensionElement
(Element element, WSILElement wsilElement) Parse extension element.protected void
parseInspection
(Element inspectionElement) Parse inspection element.protected Link
parseLink
(Element linkElement, Inspection inspection) Parse link element.protected Service
parseService
(Element serviceElement, Inspection inspection) Parse service element.protected ServiceName
parseServiceName
(Element nameElement, Service service) Parse service name element.protected Document
Parse the XML document.protected void
saveNS
(Element element, Inspection inspection) Save namespace settings.
-
Field Details
-
reader
Reader which is used to obtain contents of a WSIL document. -
wsilDocument
WSIL document. -
extRegistry
WSIL extension registry.
-
-
Constructor Details
-
XMLReader
public XMLReader()Create a WSIL document reader.
-
-
Method Details
-
parseAbstract
protected Abstract parseAbstract(Element abstractElement, WSILElementWithAbstract wsilElement) throws WSILException Parse abstract element.- Parameters:
abstractElement
- the DOM element that contains the abstract elementwsilElement
- the WSIL element with that contains the abstract element- Throws:
WSILException
-
parseDescription
protected Description parseDescription(Element descriptionElement, Service service) throws WSILException Parse description element.- Parameters:
descriptionElement
- the DOM element that contains the description elementservice
- the service element- Throws:
WSILException
-
parseDocument
Create a WSIL document from the contents of a reader.- Specified by:
parseDocument
in interfaceDocumentReader
- Parameters:
wsilDocument
- WS-Inspection document objectreader
- the reader from which to obtain the contents of the document- Throws:
WSILException
-
parseExtensionElement
protected ExtensionElement parseExtensionElement(Element element, WSILElement wsilElement) throws WSILException Parse extension element.- Parameters:
element
- the DOM element that contains the extension elementwsilElement
- the WSIL element that contains the extension element- Throws:
WSILException
-
parseInspection
Parse inspection element.- Parameters:
inspectionElement
- the DOM element that contains the inspection element- Throws:
WSILException
-
parseLink
Parse link element.- Parameters:
linkElement
- the DOM element that contains the link elementinspection
- the inspection element- Throws:
WSILException
-
parseService
Parse service element.- Parameters:
linkElement
- the DOM element that contains the service elementinspection
- the inspection element- Throws:
WSILException
-
parseServiceName
Parse service name element.- Parameters:
linkElement
- the DOM element that contains the name elementservice
- the service element- Throws:
WSILException
-
parseXML
Parse the XML document.- Throws:
WSILException
-
saveNS
Save namespace settings.
-