Class XMLDefaultHandlerImpl
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.sblim.cimclient.internal.cimxml.sax.XMLDefaultHandlerImpl
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Class XMLDefaultHandlerImpl is DefaultHandler implementation which is used
for SAX and PULL style XML parsing.
-
Constructor Summary
ConstructorsConstructorDescriptionCtor.XMLDefaultHandlerImpl
(CIMObjectPath pLocalPath) Ctor.XMLDefaultHandlerImpl
(CIMObjectPath pLocalPath, boolean pAnyRoot) Ctor.XMLDefaultHandlerImpl
(SAXSession pSession, boolean pAnyRoot) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
void
endElement
(String uri, String localName, String qName) getCIMNodeint
getNodePoolHitsint
getNodePoolMissesgetRootNodevoid
startElement
(String uri, String localName, String qName, 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
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
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
Ctor.- Parameters:
pLocalPath
- - CIMObjectPathes without local paths will be extended by this value
-
XMLDefaultHandlerImpl
public XMLDefaultHandlerImpl()Ctor.
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Parameters:
uri
-localName
-- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Parameters:
uri
-localName
-- Throws:
SAXException
-
endDocument
public void endDocument()- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
-
getCIMNode
getCIMNode- Returns:
- CIMNode, the root Element of the parsed CIM-XML document
-
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
-