/** * BioJava development code * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. If you do not have a copy, * see: * * http://www.gnu.org/copyleft/lesser.html * * Copyright for this code is held jointly by the individual * authors. These should be listed in @author doc comments. * * For more information on the BioJava project and its aims, * or to join the biojava-l mailing list, visit the home page * at: * * http://www.biojava.org/ * */ package org.biojava.bio.seq.io.game; import org.biojava.utils.stax.StAXContentHandler; /** * Handles the GAME <aspect> element * * @author David Huen * @since 1.8 */ public class GAMESeqRelPropHandler extends StAXPropertyHandler { // the element supplies clone name and length. // other data includes a description of the sequence. // we will stuff the name as clone_name in an annotation. // set up factory method public static final StAXHandlerFactory GAME_SEQREL_PROP_HANDLER_FACTORY = new StAXHandlerFactory() { public StAXContentHandler getHandler(StAXFeatureHandler staxenv) { return new GAMESeqRelPropHandler(staxenv); } }; GAMESeqRelPropHandler(StAXFeatureHandler staxenv) { // execute superclass method to setup environment super(staxenv); setHandlerCharacteristics("seq_relationship", false); // setup handlers super.addHandler(new ElementRecognizer.ByLocalName("span"), GAMESpanPropHandler.GAME_SPAN_PROP_HANDLER_FACTORY); } /* public void startElementHandler( String nsURI, String localName, String qName, Attributes attrs) throws SAXException { System.out.println("GAMESeqRelPropHandler.startElementHandler entered."); }*/ }