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
021package org.biojava.bio.seq.io;
022
023import java.util.HashMap;
024import java.util.Map;
025
026import org.biojava.bio.AbstractAnnotation;
027import org.biojava.utils.ChangeVetoException;
028
029/**
030 * @author Lorna Morris
031 * @since 1.3.1
032 * @deprecated Use org.biojavax.bio.seq.io framework instead
033 */
034public class ReferenceAnnotation extends AbstractAnnotation {
035
036     /**
037   * The properties map. This may be null if no property values have
038   * yet been set.
039   */
040    private Map properties;
041
042    public ReferenceAnnotation() {
043
044            super();
045        try {
046            //System.out.println("Calling refAnnot");
047            this.setProperty(EmblLikeFormat.SEPARATOR_TAG, "");//all references have an epty XX line
048        } catch (ChangeVetoException e) {
049            e.printStackTrace();
050        }
051    }
052
053    protected Map getProperties() {
054        if(!propertiesAllocated()) {
055            properties = new HashMap();
056        }
057        return properties;
058    }
059
060    protected boolean propertiesAllocated() {
061        return properties != null;
062    }
063}