//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-b27-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.06.11 at 10:34:16 AM PDT
//
/**
* Convenient default implementation of
* {@link UnmarshallingEventHandler}
* to minimize code generation.
*
* <p>
* For historical reasons, sometimes this type is used where
* {@link UnmarshallingEventHandler} should be used.
*
* Once an exception is in the form of UnmarshalException, we consider
* it to be already reported to the client app.
*/
{
this.stateTextTypes = _stateTextTypes;
}
/**
* Text type of states encoded into a string.
* 'L' means a list state.
*/
//
//
// methods that will be provided by the generated code.
//
//
// internal events
public void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException {
}
}
if(isListState()) {
// in list state, we don't need to care about whitespaces.
// if the text is all whitespace, this won't generate a text event,
// so it would be just fine.
} else {
while(tokens.hasMoreTokens())
// the handler can be switched during the text processing,
// so the current handler has to be obtained inside the loop
}
} else {
// otherwise process this token
}
}
unexpectedText(s);
}
}
}
}
/**
* Checks if the current state is marked as a list state.
*/
protected final boolean isListState() {
}
/** Current state of this automaton. */
public int state;
//
//
// utility methods
//
//
/** Called when a RuntimeException is thrown during unmarshalling a text. */
protected void handleUnexpectedTextException( String text, RuntimeException e ) throws SAXException {
// report this as an error
}
/**
* Last resort when something goes terribly wrong within the unmarshaller.
*/
reportError( e.getMessage(), e, false );
}
protected final void dump() {
}
}
msg,
nested ), canRecover );
}
protected final void unexpectedEnterElement( String uri, String local, String qname, Attributes atts ) throws SAXException {
// notify the error
// then recover by ignoring the whole element.
}
protected final void unexpectedLeaveElement( String uri, String local, String qname ) throws SAXException {
}
protected final void unexpectedEnterAttribute( String uri, String local, String qname ) throws SAXException {
}
protected final void unexpectedLeaveAttribute( String uri, String local, String qname ) throws SAXException {
}
// make str printable
}
// I believe this is really a bug of the compiler,
// since when an object spawns a child object, it must be "prepared"
// to receive this event.
dump();
throw new JAXBAssertionError(
}
/**
* This method is called by the generated derived class
* when a datatype parse method throws an exception.
*/
if( e instanceof RuntimeException )
throw (RuntimeException)e; // don't catch the runtime exception. just let it go.
// wrap it into a ParseConversionEvent and report it
}
//
//
// spawn a new child object
//
//
try {
} catch (InstantiationException e) {
throw new InstantiationError(e.getMessage());
} catch (IllegalAccessException e) {
throw new IllegalAccessError(e.getMessage());
}
return handler;
}
protected final Object spawnChildFromEnterElement(Class clazz, int memento, String uri, String local, String qname, Attributes atts)
throws SAXException {
}
protected final Object spawnChildFromEnterAttribute(Class clazz, int memento, String uri, String local, String qname)
throws SAXException {
}
throws SAXException {
}
// these methods can be used if a child object can be nullable
protected final Object spawnChildFromLeaveElement(Class clazz, int memento, String uri, String local, String qname)
throws SAXException {
}
protected final Object spawnChildFromLeaveAttribute(Class clazz, int memento, String uri, String local, String qname)
throws SAXException {
}
protected final Element spawnWildcard( int memento, String uri, String local, String qname, Attributes atts )
throws SAXException {
} else {
// if no class is available to unmarshal this element, discard
// the sub-tree by feeding events to discarder.
return null; // return null so that the discarder will be ignored
}
}
//
//
// spawn a new child handler.
// used for super class and RELAXNG interleave handling.
//
protected final void spawnHandlerFromEnterElement(
UnmarshallingEventHandler unm, int memento, String uri, String local, String qname, Attributes atts )
throws SAXException {
}
protected final void spawnHandlerFromEnterAttribute(
throws SAXException {
}
protected final void spawnHandlerFromFromText(
throws SAXException {
}
protected final void spawnHandlerFromLeaveElement(
throws SAXException {
}
protected final void spawnHandlerFromLeaveAttribute(
throws SAXException {
}
protected final void spawnHandlerFromText(
throws SAXException {
}
//
//
// revert to parent
//
//
protected final void revertToParentFromEnterElement(String uri,String local, String qname,Attributes atts)
throws SAXException {
}
throws SAXException {
}
throws SAXException {
}
throws SAXException {
}
throws SAXException {
}
}