cytoscape.generated.impl.runtime
Class UnmarshallingEventHandlerAdaptor
java.lang.Object
cytoscape.generated.impl.runtime.UnmarshallingEventHandlerAdaptor
- All Implemented Interfaces:
- UnmarshallingEventHandler
public class UnmarshallingEventHandlerAdaptor
- extends Object
- implements UnmarshallingEventHandler
Redirects events to another SAX ContentHandler.
Note that the SAXException returned by the ContentHandler is
unreported. So we have to catch them and report it, then rethrow
it if necessary.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected final UnmarshallingContext context
handler
protected final ContentHandler handler
- This handler will receive SAX events.
UnmarshallingEventHandlerAdaptor
public UnmarshallingEventHandlerAdaptor(UnmarshallingContext _ctxt,
ContentHandler _handler)
throws SAXException
- Throws:
SAXException
owner
public Object owner()
- Description copied from interface:
UnmarshallingEventHandler
- Returns the content-tree object for which this unmarshaller
is working for.
- Specified by:
owner
in interface UnmarshallingEventHandler
enterAttribute
public void enterAttribute(String uri,
String local,
String qname)
throws SAXException
- Specified by:
enterAttribute
in interface UnmarshallingEventHandler
- Throws:
SAXException
enterElement
public void enterElement(String uri,
String local,
String qname,
Attributes atts)
throws SAXException
- Specified by:
enterElement
in interface UnmarshallingEventHandler
- Throws:
SAXException
leaveAttribute
public void leaveAttribute(String uri,
String local,
String qname)
throws SAXException
- Specified by:
leaveAttribute
in interface UnmarshallingEventHandler
- Throws:
SAXException
leaveElement
public void leaveElement(String uri,
String local,
String qname)
throws SAXException
- Specified by:
leaveElement
in interface UnmarshallingEventHandler
- Throws:
SAXException
text
public void text(String s)
throws SAXException
- Specified by:
text
in interface UnmarshallingEventHandler
- Throws:
SAXException
leaveChild
public void leaveChild(int nextState)
throws SAXException
- Specified by:
leaveChild
in interface UnmarshallingEventHandler
- Throws:
SAXException