/*
 * File:     AnnotationRecord.java
 * Project:  MPI Linguistic Application
 * Date:     03 April 2006
 *
 * Copyright (C) 2001-2006  Max Planck Institute for Psycholinguistics
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

/*
 * Created on Jun 15, 2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package mpi.eudico.server.corpora.clomimpl.dobes;


/**
 * @author hennie
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class AnnotationRecord {
    public static final String ALIGNABLE = "alignable";
    public static final String REFERENCE = "reference";
    public static final String ALIGNABLE_SVG = "alignable_svg";
    private String annotId;
    private String annotType;
    private String beginTimeSlotId;
    private String endTimeSlotId;
    private String referredAnnotId;
    private String previousAnnotId;
    private String svgRefId;
    private String annotValue;

    public String getAnnotationId() {
        return annotId;
    }

    public void setAnnotationId(String annotId) {
        this.annotId = annotId;
    }

    public String getAnnotationType() {
        return annotType;
    }

    public void setAnnotationType(String annotType) {
        this.annotType = annotType;
    }

    public String getBeginTimeSlotId() {
        return beginTimeSlotId;
    }

    public void setBeginTimeSlotId(String beginTSId) {
        beginTimeSlotId = beginTSId;
    }

    public String getEndTimeSlotId() {
        return endTimeSlotId;
    }

    public void setEndTimeSlotId(String endTSId) {
        endTimeSlotId = endTSId;
    }

    public String getReferredAnnotId() {
        return referredAnnotId;
    }

    public void setReferredAnnotId(String refAnnotId) {
        referredAnnotId = refAnnotId;
    }

    public String getPreviousAnnotId() {
        return previousAnnotId;
    }

    public void setPreviousAnnotId(String previousAnnotId) {
        this.previousAnnotId = previousAnnotId;
    }

    public String getSvgReference() {
        return svgRefId;
    }

    public void setSvgReference(String svgRefId) {
        this.svgRefId = svgRefId;
    }

    public String getValue() {
        return annotValue;
    }

    public void setValue(String annotValue) {
        this.annotValue = annotValue;
    }

    public String toString() {
        String result = "";

        result += ("id:        " + annotId + "\n");
        result += ("type:      " + annotType + "\n");
        result += ("begin id:  " + beginTimeSlotId + "\n");
        result += ("end id:    " + endTimeSlotId + "\n");
        result += ("ref'ed id: " + referredAnnotId + "\n");
        result += ("prev id:   " + previousAnnotId + "\n");
        result += ("svg id:    " + svgRefId + "\n");
        result += ("value:     " + annotValue + "\n");

        return result;
    }
}
