Class XMLReader

java.lang.Object
org.apache.wsil.xml.XMLReader
All Implemented Interfaces:
DocumentReader

public class XMLReader extends Object implements DocumentReader
This class will use a DOM parser to read and process the contents of a WS-Inspection document.
Version:
1.0
  • Field Details

    • reader

      protected Reader reader
      Reader which is used to obtain contents of a WSIL document.
    • wsilDocument

      protected WSILDocument wsilDocument
      WSIL document.
    • extRegistry

      protected ExtensionRegistry 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 element
      wsilElement - 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 element
      service - the service element
      Throws:
      WSILException
    • parseDocument

      public void parseDocument(WSILDocument wsilDocument, Reader reader) throws WSILException
      Create a WSIL document from the contents of a reader.
      Specified by:
      parseDocument in interface DocumentReader
      Parameters:
      wsilDocument - WS-Inspection document object
      reader - 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 element
      wsilElement - the WSIL element that contains the extension element
      Throws:
      WSILException
    • parseInspection

      protected void parseInspection(Element inspectionElement) throws WSILException
      Parse inspection element.
      Parameters:
      inspectionElement - the DOM element that contains the inspection element
      Throws:
      WSILException
    • parseLink

      protected Link parseLink(Element linkElement, Inspection inspection) throws WSILException
      Parse link element.
      Parameters:
      linkElement - the DOM element that contains the link element
      inspection - the inspection element
      Throws:
      WSILException
    • parseService

      protected Service parseService(Element serviceElement, Inspection inspection) throws WSILException
      Parse service element.
      Parameters:
      linkElement - the DOM element that contains the service element
      inspection - the inspection element
      Throws:
      WSILException
    • parseServiceName

      protected ServiceName parseServiceName(Element nameElement, Service service) throws WSILException
      Parse service name element.
      Parameters:
      linkElement - the DOM element that contains the name element
      service - the service element
      Throws:
      WSILException
    • parseXML

      protected Document parseXML(Reader reader) throws WSILException
      Parse the XML document.
      Throws:
      WSILException
    • saveNS

      protected void saveNS(Element element, Inspection inspection)
      Save namespace settings.