|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--oracle.cle.util.xml.CLEDefaultHandler
This class is a superclass for classes used to load an XML document
Extend this class to load and XML document specific to your needs
i.e. XMLServiceLoader, XMLDisplayGroupLoader, etc
Field Summary | |
protected java.lang.String |
dtdName
|
protected static java.lang.String |
ELEMENT_NAME
Constant for retrieving the Attribute Hashtable element that contains the element name for the attributes. |
protected static int |
TYPE
Constants for accessing the array that comes out of the Attribute Hashtable |
protected static int |
VALUE
|
Constructor Summary | |
CLEDefaultHandler()
|
Method Summary | |
void |
debug(java.lang.String text)
a simple way to print some debug messages out |
abstract void |
endElement(java.lang.String namespaceURI,
java.lang.String name,
java.lang.String qualifiedName)
Handle the closing of an element. |
void |
error(org.xml.sax.SAXParseException exception)
Forward notification of a parsing error to the application supplied error handler (if any). |
void |
fatalError(org.xml.sax.SAXParseException exception)
Forward notification of a fatal parsing error to the application supplied error handler (if any). |
protected java.lang.String |
getClassname()
|
void |
log(java.lang.String message)
Log a message to the log writer associated with this context. |
void |
log(java.lang.String message,
java.lang.Throwable exception)
Log a message and associated exception to the log writer associated with this context. |
protected java.util.Hashtable |
makeAttributeTable(java.lang.String elementName,
org.xml.sax.Attributes attributes)
Make a Hastable out of the specified XML Attributes. The resulting table will have separate entries for each attribute keyed by name with a String array for the value. The values are: [x][0]=XML type string and [x][1]=String value. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolve the requested external entity. |
abstract void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
Handle the starting of an element as required by your class |
void |
warning(org.xml.sax.SAXParseException exception)
Forward notification of a parse warning to the application supplied error handler (if any). |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int TYPE
protected static final int VALUE
protected static final java.lang.String ELEMENT_NAME
protected java.lang.String dtdName
Constructor Detail |
public CLEDefaultHandler()
Method Detail |
public abstract void startElement(java.lang.String uri, java.lang.String name, java.lang.String qualifiedName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in class org.xml.sax.helpers.DefaultHandler
public abstract void endElement(java.lang.String namespaceURI, java.lang.String name, java.lang.String qualifiedName) throws org.xml.sax.SAXException
endElement
in class org.xml.sax.helpers.DefaultHandler
protected java.util.Hashtable makeAttributeTable(java.lang.String elementName, org.xml.sax.Attributes attributes)
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
publicId
- The public identifier of the entity being referencedsystemId
- The system identifier of the entity being referencedorg.xml.sax.SAXException
- if a parsing exception occurspublic void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in class org.xml.sax.helpers.DefaultHandler
exception
- The error informationorg.xml.sax.SAXException
- if a parsing exception occurspublic void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in class org.xml.sax.helpers.DefaultHandler
exception
- The fatal error informatiorg.xml.sax.SAXException
- if a parsing exception occurspublic void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in class org.xml.sax.helpers.DefaultHandler
exception
- The warning informationorg.xml.sax.SAXException
- if a parsing exception occurspublic void log(java.lang.String message)
message
- The message to be loggedpublic void log(java.lang.String message, java.lang.Throwable exception)
message
- The message to be loggedexception
- The associated exception to be loggedpublic void debug(java.lang.String text)
protected final java.lang.String getClassname()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |