Class XMLDefaultHandlerImpl

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.sblim.cimclient.internal.cimxml.sax.XMLDefaultHandlerImpl
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class XMLDefaultHandlerImpl extends org.xml.sax.helpers.DefaultHandler
Class XMLDefaultHandlerImpl is DefaultHandler implementation which is used for SAX and PULL style XML parsing.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Ctor.
    Ctor.
    XMLDefaultHandlerImpl(CIMObjectPath pLocalPath, boolean pAnyRoot)
    Ctor.
    XMLDefaultHandlerImpl(SAXSession pSession, boolean pAnyRoot)
    Ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    characters(char[] ch, int start, int length)
     
    void
     
    void
    endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
     
    getCIMNode
    int
    getNodePoolHits
    int
    getNodePoolMisses
    getRootNode
    void
    startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
     

    Methods inherited from class org.xml.sax.helpers.DefaultHandler

    endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.xml.sax.ContentHandler

    declaration
  • Constructor Details

    • XMLDefaultHandlerImpl

      public XMLDefaultHandlerImpl(SAXSession pSession, boolean pAnyRoot)
      Ctor.
      Parameters:
      pSession - - stores common variables for the whole parsing session
      pAnyRoot - - if true any CIM-XML element can be the root element of the XML stream
    • XMLDefaultHandlerImpl

      public XMLDefaultHandlerImpl(CIMObjectPath pLocalPath, boolean pAnyRoot)
      Ctor.
      Parameters:
      pLocalPath - - CIMObjectPathes without local paths will be extended by this value
      pAnyRoot - - if true any CIM-XML element can be the root element of the XML stream
    • XMLDefaultHandlerImpl

      public XMLDefaultHandlerImpl(CIMObjectPath pLocalPath)
      Ctor.
      Parameters:
      pLocalPath - - CIMObjectPathes without local paths will be extended by this value
    • XMLDefaultHandlerImpl

      public XMLDefaultHandlerImpl()
      Ctor.
  • Method Details

    • startElement

      public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
      Specified by:
      startElement in interface org.xml.sax.ContentHandler
      Overrides:
      startElement in class org.xml.sax.helpers.DefaultHandler
      Parameters:
      uri -
      localName -
      Throws:
      org.xml.sax.SAXException
    • characters

      public void characters(char[] ch, int start, int length)
      Specified by:
      characters in interface org.xml.sax.ContentHandler
      Overrides:
      characters in class org.xml.sax.helpers.DefaultHandler
    • endElement

      public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
      Specified by:
      endElement in interface org.xml.sax.ContentHandler
      Overrides:
      endElement in class org.xml.sax.helpers.DefaultHandler
      Parameters:
      uri -
      localName -
      Throws:
      org.xml.sax.SAXException
    • endDocument

      public void endDocument()
      Specified by:
      endDocument in interface org.xml.sax.ContentHandler
      Overrides:
      endDocument in class org.xml.sax.helpers.DefaultHandler
    • getCIMNode

      public CIMNode getCIMNode()
      getCIMNode
      Returns:
      CIMNode, the root Element of the parsed CIM-XML document
    • getRootNode

      public Node getRootNode()
      getRootNode
      Returns:
      Node, the root element of the parsed CIM-XML stream
    • getNodePoolHits

      public int getNodePoolHits()
      getNodePoolHits
      Returns:
      int
    • getNodePoolMisses

      public int getNodePoolMisses()
      getNodePoolMisses
      Returns:
      int