Be aware that a newer GAME proposal has since been released. This release is targetted at the Gadfly Drosophila annotations which are GAME 1.001 documents. I make no claims that they will work for other input files although they can be readily extended to cover other GAME structures.
There are two base classes in this release. The first is the StAXFeatureHandler which is the base class for elements that intend to create new Feature objects. Then there is the StAXPropertyHandler class that is base class for element handlers that only extend properties of the existing feature. All classes should be subclassed from one of these.
Interface Summary Interface Description ElementRecognizerSimple interface for filtering SAX/StAX startElement events GAMEFeatureCallbackItfAn interface that can be tested for by nested handlers when trying to do a callback. GAMENameCallbackItfAn interface that can be tested for by nested handlers when trying to do a callback. GAMETranscriptCallbackItfAn interface that can be tested for by nested handlers when trying to do a callback. StAXHandlerFactoryFactory for StAX content handlers.
Class Summary Class Description ElementRecognizer.AllElementRecognizer ElementRecognizer.ByLocalNameFilter elements by local name (not recommended). ElementRecognizer.ByNSNameFilter elements by name and namespace. ElementRecognizer.HasAttributeFilter elements on the existence of a specified attribute. GAMEAnnotationHandlerHandles the GAME <annotation> element GAMEAspectPropHandlerHandles the GAME <aspect> element GAMEDbxrefPropHandlerDeals with database crossreferences GAMEDescriptionPropHandlerStAX handler for GAME <description> elements. GAMEFeatureSetHandlerHandles the <feature_set> element GAMEFeatureSetPropHandlerHandles the GAME element GAMEFeatureSpanHandlerHandles the <feature_span> element GAMEGenePropHandlerHandles the GAME <gene> element GAMEHandlerHandles the root GAME element GAMEMapPosPropHandlerHandles the GAME <map_position> element Currently, it just ignores it! GAMENamePropHandlerStAX handler for the GAME <name> element. GAMEResiduesPropHandlerStAX handler for GAME <residues> elements. GAMESeqPropHandlerHandles the GAME <seq> element GAMESeqRelPropHandlerHandles the GAME <aspect> element GAMESpanPropHandlerHandles the GAME <span> element Currently, it just ignores it! GAMETypePropHandlerStAX handler for GAME <type> elements. SequenceContentHandlerBaseStAX handler for elements containing sequence StAXFeatureHandlerStAX handler shamelessly ripped off from Thomas Down's XFFFeatureSetHandler. StAXPropertyHandlerStAX handler shamelessly ripped off from Thomas Down's XFFFeatureSetHandler.