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):
Çağrı Çöltekin
 
         implements TextSourceLayer {
 
     @XmlValue
     private String text;
     @XmlAttribute(name = ., required = true)
     private String type;
     @XmlAttribute(name = ., required = false)
     private String extRef;
     public static final String XML_NAME = "textSource";
 
     public TextSourceLayerStored() {
         this. = "";
         this. = null;
         this. = null;
     }
 
     @Override
     public boolean isEmpty() {
         return ( == null || .length() == 0);
     }
 
     @Override
     public int size() {
         return .length();
     }
 
     @Override
     protected void setLayersConnector(TextCorpusLayersConnector connector) {
         // we do not need one
     }
     
     @Override
     public String getText() {
         return this.;
     }
 
     @Override
     public void addText(String text) {
         if (this. == null) {
             this. = text;
         } else {
             this. += text;
         }
     }
 
     @Override
     public String getType() {
         return this.;
     }
 
     @Override
     public void setType(String type) {
         this. = type;
     }
     
     @Override
     public String getExtRef() {
         return this.;
     }
     
     @Override
     public void setExtRef(String extRef) {
        this. = extRef;
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(" : ");
        sb.append();
        return sb.toString();
    }
New to GrepCode? Check out our FAQ X