Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
wlfxb - a library for creating and processing of TCF data streams. Copyright (C) University of Tübingen. This file is part of wlfxb. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
 
 package eu.clarin.weblicht.wlfxb.tc.xb;
 

Author(s):
Yana Panchenko
 
 public class TextLayerStored extends TextCorpusLayerStoredAbstract implements TextLayer {
 
     @XmlValue
     private String text;
     public static final String XML_NAME = "text";
 
     protected TextLayerStored() {
         this. = "";
     }
 
     protected void setLayersConnector(TextCorpusLayersConnector connector) {
         // doesn't need connector
     }
 
     @Override
     public boolean isEmpty() {
         return ( == null || .length() == 0);
     }
 
     @Override
     public String getText() {
         return ;
     }
 
     @Override
     public void addText(String text) {
         if (this. == null) {
             this. = text;
         } else {
             this. += text;
         }
     }
 
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
         sb.append(" : ");
         sb.append();
         return sb.toString();
     }
 
     @Override
     public int size() {
         return .length();
     }
 //	@XmlElement(name=TextSegmentStored.XML_NAME, type=TextSegmentStored.class)
 //	List<TextSegment> textSegments = new ArrayList<TextSegment>(); 
 //
 //	
 //	public List<TextSegment> getTextSegments() {
 //		return textSegments;
 //	}
 //
 //
 //	public LayerProfile getProfile() {
 //		LayerProfile profile = new LayerProfile();
 //		return profile;
 //	}
 //	
 //	@Override
 //	public String toString() {
 //		StringBuilder sb = new StringBuilder(XML_NAME);
 //		sb.append(" ");
 //		sb.append(getProfile().toString());
 //		sb.append(": ");
//		sb.append(textSegments.toString());
//		return sb.toString();
//	}
New to GrepCode? Check out our FAQ X