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 XMLDefaultHandlerImpl()
Ctor.XMLDefaultHandlerImpl(CIMObjectPath pLocalPath)
Ctor.XMLDefaultHandlerImpl(CIMObjectPath pLocalPath, boolean pAnyRoot)
Ctor.XMLDefaultHandlerImpl(SAXSession pSession, boolean pAnyRoot)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endDocument()
void
endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
CIMNode
getCIMNode()
getCIMNodeint
getNodePoolHits()
getNodePoolHitsint
getNodePoolMisses()
getNodePoolMissesNode
getRootNode()
getRootNodevoid
startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
-
-
-
Constructor Detail
-
XMLDefaultHandlerImpl
public XMLDefaultHandlerImpl(SAXSession pSession, boolean pAnyRoot)
Ctor.- Parameters:
pSession
- - stores common variables for the whole parsing sessionpAnyRoot
- - 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 valuepAnyRoot
- - 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 Detail
-
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 interfaceorg.xml.sax.ContentHandler
- Overrides:
startElement
in classorg.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 interfaceorg.xml.sax.ContentHandler
- Overrides:
characters
in classorg.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 interfaceorg.xml.sax.ContentHandler
- Overrides:
endElement
in classorg.xml.sax.helpers.DefaultHandler
- Parameters:
uri
-localName
-- Throws:
org.xml.sax.SAXException
-
endDocument
public void endDocument()
- Specified by:
endDocument
in interfaceorg.xml.sax.ContentHandler
- Overrides:
endDocument
in classorg.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
-
-