org.sblim.wbem.xml

Class XMLDefaultHandlerImpl


public class XMLDefaultHandlerImpl
extends DefaultHandler

XMLDefaultHandlerImpl.java (C) Copyright IBM Corp. 2005, 2009 THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Eclipse Public License from http://www.opensource.org/licenses/eclipse-1.0.php

Field Summary

protected static int
CIM
protected static int
CLASS
protected static int
CLASSNAME
protected static int
CLASSPATH
protected static String
EMPTY
protected static int
ERROR
protected static int
EXPMETHODCALL
protected static int
EXPPARAMVALUE
protected static int
HOST
protected static int
IMETHODRESPONSE
protected static int
INSTANCE
protected static int
INSTANCENAME
protected static int
INSTANCEPATH
protected static int
IPARAMVALUE
protected static int
IRETURNVALUE
protected static int
KEYBINDING
protected static int
KEYVALUE
protected static int
LOCALCLASSPATH
protected static int
LOCALINSTANCEPATH
protected static int
LOCALNAMESPACEPATH
protected static int
MESSAGE
protected static int
METHOD
protected static int
METHODRESPONSE
protected static int
MULTIEXPREQ
protected static int
MULTIEXPRSP
protected static int
MULTIREQ
protected static int
MULTIRSP
protected static int
NAMESPACE
protected static int
NAMESPACEPATH
protected static int
OBJECTPATH
protected static int
PARAMETER
protected static int
PARAMETER_ARRAY
protected static int
PARAMETER_REFARRAY
protected static int
PARAMETER_REFERENCE
protected static int
PARAMVALUE
protected static int
PROPERTY
protected static int
PROPERTY_ARRAY
protected static int
PROPERTY_REFERENCE
protected static int
QUALIFIER
protected static int
QUALIFIER_DECLARATION
protected static int
RETURNVALUE
protected static int
SCOPE
protected static int
SIMPLEEXPREQ
protected static int
SIMPLEEXPRSP
protected static int
SIMPLERSP
protected static int
SIMPLREQ
protected static int
VALUE
protected static int
VALUE_ARRAY
protected static int
VALUE_NAMEDINSTANCE
protected static int
VALUE_NAMEDOBJECT
protected static int
VALUE_OBJECT
protected static int
VALUE_OBJECTWITHLOCALPATH
protected static int
VALUE_OBJECTWITHPATH
protected static int
VALUE_REFARRAY
protected static int
VALUE_REFERENCE

Constructor Summary

XMLDefaultHandlerImpl()
XMLDefaultHandlerImpl(boolean debug)

Method Summary

void
characters(char[] ch, int start, int length)
Object
createJavaObject(String typeStr, String value)
void
endDocument()
void
endElement(String uri, String lName, String qName)
void
endPrefixMapping(String prefix)
void
error(SAXParseException exception)
void
fatalError(SAXParseException exception)
Vector
getObjects()
void
ignorableWhitespace(char[] ch, int start, int length)
protected Object
last()
static File[]
listAllXml(File baseDir)
static void
main(String[] argv)
void
notationDecl(String name, String publicId, String systemId)
boolean
parse(XMLPullParser reader)
protected Object
pop()
void
processingInstruction(String target, String data)
org.xml.sax.InputSource
resolveEntity(String publicId, String systemId)
void
setDocumentLocator(Locator locator)
void
skippedEntity(String name)
void
startDocument()
void
startElement(String uri, String lName, String qName, Attributes attrs)
void
startPrefixMapping(String prefix, String uri)
String
toString()
void
unparsedEntityDecl(String name, String publicId, String systemId, String notationName)
void
warning(SAXParseException exception)

Field Details

CIM

protected static final int CIM

CLASS

protected static final int CLASS

CLASSNAME

protected static final int CLASSNAME

CLASSPATH

protected static final int CLASSPATH

EMPTY

protected static final String EMPTY

ERROR

protected static final int ERROR

EXPMETHODCALL

protected static final int EXPMETHODCALL

EXPPARAMVALUE

protected static final int EXPPARAMVALUE

HOST

protected static final int HOST

IMETHODRESPONSE

protected static final int IMETHODRESPONSE

INSTANCE

protected static final int INSTANCE

INSTANCENAME

protected static final int INSTANCENAME

INSTANCEPATH

protected static final int INSTANCEPATH

IPARAMVALUE

protected static final int IPARAMVALUE

IRETURNVALUE

protected static final int IRETURNVALUE

KEYBINDING

protected static final int KEYBINDING

KEYVALUE

protected static final int KEYVALUE

LOCALCLASSPATH

protected static final int LOCALCLASSPATH

LOCALINSTANCEPATH

protected static final int LOCALINSTANCEPATH

LOCALNAMESPACEPATH

protected static final int LOCALNAMESPACEPATH

MESSAGE

protected static final int MESSAGE

METHOD

protected static final int METHOD

METHODRESPONSE

protected static final int METHODRESPONSE

MULTIEXPREQ

protected static final int MULTIEXPREQ

MULTIEXPRSP

protected static final int MULTIEXPRSP

MULTIREQ

protected static final int MULTIREQ

MULTIRSP

protected static final int MULTIRSP

NAMESPACE

protected static final int NAMESPACE

NAMESPACEPATH

protected static final int NAMESPACEPATH

OBJECTPATH

protected static final int OBJECTPATH

PARAMETER

protected static final int PARAMETER

PARAMETER_ARRAY

protected static final int PARAMETER_ARRAY

PARAMETER_REFARRAY

protected static final int PARAMETER_REFARRAY

PARAMETER_REFERENCE

protected static final int PARAMETER_REFERENCE

PARAMVALUE

protected static final int PARAMVALUE

PROPERTY

protected static final int PROPERTY

PROPERTY_ARRAY

protected static final int PROPERTY_ARRAY

PROPERTY_REFERENCE

protected static final int PROPERTY_REFERENCE

QUALIFIER

protected static final int QUALIFIER

QUALIFIER_DECLARATION

protected static final int QUALIFIER_DECLARATION

RETURNVALUE

protected static final int RETURNVALUE

SCOPE

protected static final int SCOPE

SIMPLEEXPREQ

protected static final int SIMPLEEXPREQ

SIMPLEEXPRSP

protected static final int SIMPLEEXPRSP

SIMPLERSP

protected static final int SIMPLERSP

SIMPLREQ

protected static final int SIMPLREQ

VALUE

protected static final int VALUE

VALUE_ARRAY

protected static final int VALUE_ARRAY

VALUE_NAMEDINSTANCE

protected static final int VALUE_NAMEDINSTANCE

VALUE_NAMEDOBJECT

protected static final int VALUE_NAMEDOBJECT

VALUE_OBJECT

protected static final int VALUE_OBJECT

VALUE_OBJECTWITHLOCALPATH

protected static final int VALUE_OBJECTWITHLOCALPATH

VALUE_OBJECTWITHPATH

protected static final int VALUE_OBJECTWITHPATH

VALUE_REFARRAY

protected static final int VALUE_REFARRAY

VALUE_REFERENCE

protected static final int VALUE_REFERENCE

Constructor Details

XMLDefaultHandlerImpl

public XMLDefaultHandlerImpl()

XMLDefaultHandlerImpl

public XMLDefaultHandlerImpl(boolean debug)

Method Details

characters

public void characters(char[] ch,
                       int start,
                       int length)
            throws SAXException

createJavaObject

public Object createJavaObject(String typeStr,
                               String value)

endDocument

public void endDocument()
            throws SAXException

endElement

public void endElement(String uri,
                       String lName,
                       String qName)
            throws SAXException

endPrefixMapping

public void endPrefixMapping(String prefix)
            throws SAXException

error

public void error(SAXParseException exception)
            throws SAXException

fatalError

public void fatalError(SAXParseException exception)
            throws SAXException

getObjects

public Vector getObjects()

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
            throws SAXException

last

protected Object last()

listAllXml

public static File[] listAllXml(File baseDir)

main

public static void main(String[] argv)

notationDecl

public void notationDecl(String name,
                         String publicId,
                         String systemId)
            throws SAXException

parse

public boolean parse(XMLPullParser reader)
            throws IOException,
                   SAXException

pop

protected Object pop()

processingInstruction

public void processingInstruction(String target,
                                  String data)
            throws SAXException

resolveEntity

public org.xml.sax.InputSource resolveEntity(String publicId,
                                             String systemId)

setDocumentLocator

public void setDocumentLocator(Locator locator)

skippedEntity

public void skippedEntity(String name)
            throws SAXException

startDocument

public void startDocument()
            throws SAXException

startElement

public void startElement(String uri,
                         String lName,
                         String qName,
                         Attributes attrs)
            throws SAXException

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
            throws SAXException

toString

public String toString()

unparsedEntityDecl

public void unparsedEntityDecl(String name,
                               String publicId,
                               String systemId,
                               String notationName)
            throws SAXException

warning

public void warning(SAXParseException exception)
            throws SAXException

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.