|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectXMLElementHandler
public abstract class XMLElementHandler
XSIElementHandler purpose.
This abstract class is intended to act as both a definition of a generic handler.
modules/library/xml (gt-xml.jar)
Field Summary | |
---|---|
protected static Logger |
logger
the logger -- should be used for debugging (assuming there are bugs LOL) |
Constructor Summary | |
---|---|
protected |
XMLElementHandler()
Creates a new XSIElementHandler object. |
Method Summary | |
---|---|
void |
characters(String text)
This method throws a SAXNotSupportedException if it is called and not overwritten. |
abstract void |
endElement(URI namespaceURI,
String localName,
Map hints)
handles SAX end Element events. |
abstract Element |
getElement()
This returns the Element specified. |
abstract XMLElementHandler |
getHandler(URI namespaceURI,
String localName,
Map hints)
This will find an appropriate XMLElementHandler for the specified child if appropriate. |
abstract String |
getName()
This returns the name of the element being represented by this handler. |
abstract Object |
getValue()
This method will get the value of the element depending on it's type. |
static void |
setLogLevel(Level l)
Sets the logger level for all XMLElementHandlers. |
abstract void |
startElement(URI namespaceURI,
String localName,
Attributes attr)
handles SAX start Element events. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger logger
Constructor Detail |
---|
protected XMLElementHandler()
Method Detail |
---|
public void characters(String text) throws SAXException
text
-
SAXException
SAXNotSupportedException
endElement(String,String)).
public abstract void endElement(URI namespaceURI, String localName, Map hints) throws SAXException, OperationNotSupportedException
namespaceURI
- localName
- hints
- DOCUMENT ME!
SAXException
OperationNotSupportedException
SchemaContentHandler#endElement
public abstract void startElement(URI namespaceURI, String localName, Attributes attr) throws SAXException
namespaceURI
- localName
- attr
-
SAXException
SchemaContentHandler#startElement
public abstract XMLElementHandler getHandler(URI namespaceURI, String localName, Map hints) throws SAXException
namespaceURI
- localName
- hints
- DOCUMENT ME!
SAXException
public abstract Object getValue() throws SAXException
SAXException
Type#getValue
public abstract String getName()
public abstract Element getElement()
public static void setLogLevel(Level l)
Sets the logger level for all XMLElementHandlers.
l
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |