de.nierbeck.timeTrack.model.impl.runtime
Class AbstractUnmarshallingEventHandlerImpl

java.lang.Object
  extended by de.nierbeck.timeTrack.model.impl.runtime.AbstractUnmarshallingEventHandlerImpl
All Implemented Interfaces:
UnmarshallingEventHandler
Direct Known Subclasses:
EntriesImpl.Unmarshaller, EntriesTypeImpl.Unmarshaller, EntryTypeImpl.Unmarshaller

public abstract class AbstractUnmarshallingEventHandlerImpl
extends java.lang.Object
implements UnmarshallingEventHandler

Convenient default implementation of UnmarshallingEventHandler to minimize code generation.

For historical reasons, sometimes this type is used where UnmarshallingEventHandler should be used. Once an exception is in the form of UnmarshalException, we consider it to be already reported to the client app.


Field Summary
 UnmarshallingContext context
           
 int state
          Current state of this automaton.
 
Constructor Summary
AbstractUnmarshallingEventHandlerImpl(UnmarshallingContext _ctxt, java.lang.String _stateTextTypes)
           
 
Method Summary
protected  void dump()
           
 void enterAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname)
           
 void enterElement(java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts)
           
protected  void handleGenericException(java.lang.Exception e)
          Last resort when something goes terribly wrong within the unmarshaller.
protected  void handleParseConversionException(java.lang.Exception e)
          This method is called by the generated derived class when a datatype parse method throws an exception.
protected  void handleText(java.lang.String s)
           
protected  void handleUnexpectedTextException(java.lang.String text, java.lang.RuntimeException e)
          Called when a RuntimeException is thrown during unmarshalling a text.
protected  boolean isListState()
          Checks if the current state is marked as a list state.
 void leaveAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname)
           
 void leaveChild(int nextState)
           
 void leaveElement(java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void revertToParentFromEnterAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void revertToParentFromEnterElement(java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts)
           
protected  void revertToParentFromLeaveAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void revertToParentFromLeaveElement(java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void revertToParentFromText(java.lang.String value)
           
protected  java.lang.Object spawnChildFromEnterAttribute(java.lang.Class clazz, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  java.lang.Object spawnChildFromEnterElement(java.lang.Class clazz, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts)
           
protected  java.lang.Object spawnChildFromLeaveAttribute(java.lang.Class clazz, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  java.lang.Object spawnChildFromLeaveElement(java.lang.Class clazz, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  java.lang.Object spawnChildFromText(java.lang.Class clazz, int memento, java.lang.String value)
           
protected  void spawnHandlerFromEnterAttribute(UnmarshallingEventHandler unm, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void spawnHandlerFromEnterElement(UnmarshallingEventHandler unm, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts)
           
protected  void spawnHandlerFromFromText(UnmarshallingEventHandler unm, int memento, java.lang.String value)
           
protected  void spawnHandlerFromLeaveAttribute(UnmarshallingEventHandler unm, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void spawnHandlerFromLeaveElement(UnmarshallingEventHandler unm, int memento, java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void spawnHandlerFromText(UnmarshallingEventHandler unm, int memento, java.lang.String text)
           
protected  javax.xml.bind.Element spawnWildcard(int memento, java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts)
           
 void text(java.lang.String text)
           
protected  void unexpectedEnterAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void unexpectedEnterElement(java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts)
           
protected  void unexpectedLeaveAttribute(java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void unexpectedLeaveChild()
           
protected  void unexpectedLeaveElement(java.lang.String uri, java.lang.String local, java.lang.String qname)
           
protected  void unexpectedText(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.nierbeck.timeTrack.model.impl.runtime.UnmarshallingEventHandler
owner
 

Field Detail

context

public final UnmarshallingContext context

state

public int state
Current state of this automaton.

Constructor Detail

AbstractUnmarshallingEventHandlerImpl

public AbstractUnmarshallingEventHandlerImpl(UnmarshallingContext _ctxt,
                                             java.lang.String _stateTextTypes)
Method Detail

enterElement

public void enterElement(java.lang.String uri,
                         java.lang.String local,
                         java.lang.String qname,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Specified by:
enterElement in interface UnmarshallingEventHandler
Throws:
org.xml.sax.SAXException

leaveElement

public void leaveElement(java.lang.String uri,
                         java.lang.String local,
                         java.lang.String qname)
                  throws org.xml.sax.SAXException
Specified by:
leaveElement in interface UnmarshallingEventHandler
Throws:
org.xml.sax.SAXException

text

public final void text(java.lang.String text)
                throws org.xml.sax.SAXException
Specified by:
text in interface UnmarshallingEventHandler
Throws:
org.xml.sax.SAXException

handleText

protected void handleText(java.lang.String s)
                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

enterAttribute

public void enterAttribute(java.lang.String uri,
                           java.lang.String local,
                           java.lang.String qname)
                    throws org.xml.sax.SAXException
Specified by:
enterAttribute in interface UnmarshallingEventHandler
Throws:
org.xml.sax.SAXException

leaveAttribute

public void leaveAttribute(java.lang.String uri,
                           java.lang.String local,
                           java.lang.String qname)
                    throws org.xml.sax.SAXException
Specified by:
leaveAttribute in interface UnmarshallingEventHandler
Throws:
org.xml.sax.SAXException

leaveChild

public void leaveChild(int nextState)
                throws org.xml.sax.SAXException
Specified by:
leaveChild in interface UnmarshallingEventHandler
Throws:
org.xml.sax.SAXException

isListState

protected final boolean isListState()
Checks if the current state is marked as a list state.


handleUnexpectedTextException

protected void handleUnexpectedTextException(java.lang.String text,
                                             java.lang.RuntimeException e)
                                      throws org.xml.sax.SAXException
Called when a RuntimeException is thrown during unmarshalling a text.

Throws:
org.xml.sax.SAXException

handleGenericException

protected void handleGenericException(java.lang.Exception e)
                               throws org.xml.sax.SAXException
Last resort when something goes terribly wrong within the unmarshaller.

Throws:
org.xml.sax.SAXException

dump

protected final void dump()

unexpectedEnterElement

protected final void unexpectedEnterElement(java.lang.String uri,
                                            java.lang.String local,
                                            java.lang.String qname,
                                            org.xml.sax.Attributes atts)
                                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

unexpectedLeaveElement

protected final void unexpectedLeaveElement(java.lang.String uri,
                                            java.lang.String local,
                                            java.lang.String qname)
                                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

unexpectedEnterAttribute

protected final void unexpectedEnterAttribute(java.lang.String uri,
                                              java.lang.String local,
                                              java.lang.String qname)
                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

unexpectedLeaveAttribute

protected final void unexpectedLeaveAttribute(java.lang.String uri,
                                              java.lang.String local,
                                              java.lang.String qname)
                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

unexpectedText

protected final void unexpectedText(java.lang.String str)
                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

unexpectedLeaveChild

protected final void unexpectedLeaveChild()
                                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

handleParseConversionException

protected void handleParseConversionException(java.lang.Exception e)
                                       throws org.xml.sax.SAXException
This method is called by the generated derived class when a datatype parse method throws an exception.

Throws:
org.xml.sax.SAXException

spawnChildFromEnterElement

protected final java.lang.Object spawnChildFromEnterElement(java.lang.Class clazz,
                                                            int memento,
                                                            java.lang.String uri,
                                                            java.lang.String local,
                                                            java.lang.String qname,
                                                            org.xml.sax.Attributes atts)
                                                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnChildFromEnterAttribute

protected final java.lang.Object spawnChildFromEnterAttribute(java.lang.Class clazz,
                                                              int memento,
                                                              java.lang.String uri,
                                                              java.lang.String local,
                                                              java.lang.String qname)
                                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnChildFromText

protected final java.lang.Object spawnChildFromText(java.lang.Class clazz,
                                                    int memento,
                                                    java.lang.String value)
                                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnChildFromLeaveElement

protected final java.lang.Object spawnChildFromLeaveElement(java.lang.Class clazz,
                                                            int memento,
                                                            java.lang.String uri,
                                                            java.lang.String local,
                                                            java.lang.String qname)
                                                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnChildFromLeaveAttribute

protected final java.lang.Object spawnChildFromLeaveAttribute(java.lang.Class clazz,
                                                              int memento,
                                                              java.lang.String uri,
                                                              java.lang.String local,
                                                              java.lang.String qname)
                                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnWildcard

protected final javax.xml.bind.Element spawnWildcard(int memento,
                                                     java.lang.String uri,
                                                     java.lang.String local,
                                                     java.lang.String qname,
                                                     org.xml.sax.Attributes atts)
                                              throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnHandlerFromEnterElement

protected final void spawnHandlerFromEnterElement(UnmarshallingEventHandler unm,
                                                  int memento,
                                                  java.lang.String uri,
                                                  java.lang.String local,
                                                  java.lang.String qname,
                                                  org.xml.sax.Attributes atts)
                                           throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnHandlerFromEnterAttribute

protected final void spawnHandlerFromEnterAttribute(UnmarshallingEventHandler unm,
                                                    int memento,
                                                    java.lang.String uri,
                                                    java.lang.String local,
                                                    java.lang.String qname)
                                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnHandlerFromFromText

protected final void spawnHandlerFromFromText(UnmarshallingEventHandler unm,
                                              int memento,
                                              java.lang.String value)
                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnHandlerFromLeaveElement

protected final void spawnHandlerFromLeaveElement(UnmarshallingEventHandler unm,
                                                  int memento,
                                                  java.lang.String uri,
                                                  java.lang.String local,
                                                  java.lang.String qname)
                                           throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnHandlerFromLeaveAttribute

protected final void spawnHandlerFromLeaveAttribute(UnmarshallingEventHandler unm,
                                                    int memento,
                                                    java.lang.String uri,
                                                    java.lang.String local,
                                                    java.lang.String qname)
                                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

spawnHandlerFromText

protected final void spawnHandlerFromText(UnmarshallingEventHandler unm,
                                          int memento,
                                          java.lang.String text)
                                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

revertToParentFromEnterElement

protected final void revertToParentFromEnterElement(java.lang.String uri,
                                                    java.lang.String local,
                                                    java.lang.String qname,
                                                    org.xml.sax.Attributes atts)
                                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

revertToParentFromLeaveElement

protected final void revertToParentFromLeaveElement(java.lang.String uri,
                                                    java.lang.String local,
                                                    java.lang.String qname)
                                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

revertToParentFromEnterAttribute

protected final void revertToParentFromEnterAttribute(java.lang.String uri,
                                                      java.lang.String local,
                                                      java.lang.String qname)
                                               throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

revertToParentFromLeaveAttribute

protected final void revertToParentFromLeaveAttribute(java.lang.String uri,
                                                      java.lang.String local,
                                                      java.lang.String qname)
                                               throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

revertToParentFromText

protected final void revertToParentFromText(java.lang.String value)
                                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException


Copyright © 2003-2006 Nierbeck. All Rights Reserved.