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 ExtensionRegistryWSIL extension registry.protected ReaderReader which is used to obtain contents of a WSIL document.protected WSILDocumentWSIL document. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractparseAbstract(Element abstractElement, WSILElementWithAbstract wsilElement) Parse abstract element.protected DescriptionparseDescription(Element descriptionElement, Service service) Parse description element.voidparseDocument(WSILDocument wsilDocument, Reader reader) Create a WSIL document from the contents of a reader.protected ExtensionElementparseExtensionElement(Element element, WSILElement wsilElement) Parse extension element.protected voidparseInspection(Element inspectionElement) Parse inspection element.protected LinkparseLink(Element linkElement, Inspection inspection) Parse link element.protected ServiceparseService(Element serviceElement, Inspection inspection) Parse service element.protected ServiceNameparseServiceName(Element nameElement, Service service) Parse service name element.protected DocumentParse the XML document.protected voidsaveNS(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:
parseDocumentin 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.
-