TEIParagraph.java 617 Bytes
package ipipan.clarin.tei.api.entities;

import java.util.List;

/**
 * A single paragraph in TEI corpus text.
 *
 * @author mlenart
 */
public interface TEIParagraph extends TEIEntity {

	public enum ParagraphType {
		P, DIV, AB, U
	}

	ParagraphType getType();

	String getId(AnnotationLayer layer);

	void setId(AnnotationLayer layer, String id);

	String getN();

	String getText();

	List<TEIParagraph> getSubparagraphs();

	TEIParagraph getSubparagraph(String id);

	List<TEISentence> getSentences();

	void setSentences(List<TEISentence> sents);

	List<TEIMorph> getMorphs();

	void correctSegmentOffsets();
}