001/** 002 * BioJava development code 003 * 004 * This code may be freely distributed and modified under the 005 * terms of the GNU Lesser General Public Licence. This should 006 * be distributed with the code. If you do not have a copy, 007 * see: 008 * 009 * http://www.gnu.org/copyleft/lesser.html 010 * 011 * Copyright for this code is held jointly by the individual 012 * authors. These should be listed in @author doc comments. 013 * 014 * For more information on the BioJava project and its aims, 015 * or to join the biojava-l mailing list, visit the home page 016 * at: 017 * 018 * http://www.biojava.org/ 019 * 020 */ 021 022package org.biojava.bio.seq.io.game; 023 024import org.biojava.utils.stax.StAXContentHandler; 025import org.xml.sax.Attributes; 026import org.xml.sax.SAXException; 027 028/** 029 * Handles the GAME <map_position> element 030 * Currently, it just ignores it! 031 * 032 * @author David Huen 033 * @since 1.8 034 */ 035public class GAMEMapPosPropHandler extends StAXPropertyHandler { 036 // the <map_position> element supplies details of the map 037 // position of the clone. It can be the position on 038 // some canonical master sequence(tile) or cytology(cytological) depending 039 // on the type attribute. 040 041 // set up factory method 042 public static final StAXHandlerFactory GAME_MAP_POS_PROP_HANDLER_FACTORY 043 = new StAXHandlerFactory() { 044 public StAXContentHandler getHandler(StAXFeatureHandler staxenv) { 045 return new GAMEMapPosPropHandler(staxenv); 046 } 047 }; 048 049 GAMEMapPosPropHandler(StAXFeatureHandler staxenv) { 050 // execute superclass method to setup environment 051 super(staxenv); 052 053 setHandlerCharacteristics("map_position", false); 054 } 055 056 public void startElementHandler( 057 String nsURI, 058 String localName, 059 String qName, 060 Attributes attrs) 061 throws SAXException 062 { 063 } 064} 065