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.xb;
 
Class WLData represents TCF annotations. Corresponds to TCF specification. WLData annotations can be: eu.clarin.weblicht.wlfxb.tc.api.TextCorpus annotations represent annotations on written connected text, eu.clarin.weblicht.wlfxb.lx.api.Lexicon annotations represent linguistic information on a list of words, eu.clarin.weblicht.wlfxb.ed.api.ExternalData annotations represent annotations that are related to the annotations inside TCF but themselves are stored outside of TCF. Class WLData can be marshaled into XML representation of TCF. See also eu.clarin.weblicht.wlfxb.io.WLDObjector.

Author(s):
Yana Panchenko
 
 public class WLData {
 
     public static final String XML_NAME = "D-Spin";
     public static final String XML_NAMESPACE = "http://www.dspin.de/data";
     public static final String XML_VERSION = "0.4";
     @XmlAttribute
     private String version;
     @XmlElement(name = "MetaData", namespace = "http://www.dspin.de/data/metadata")
     private MetaData metaData;
     @XmlElement(name = "ExternalData", namespace = "http://www.dspin.de/data/extdata")
     private ExternalDataStored extData;
     @XmlElement(name = "TextCorpus", namespace = "http://www.dspin.de/data/textcorpus")
     private TextCorpusStored textCorpus;
     @XmlElement(name = "Lexicon", namespace = "http://www.dspin.de/data/lexicon")
     private LexiconStored lexicon;
 
     WLData() {
     }

    
Gets version of the WLData.

Returns:
the version.
 
     public String getVersion() {
         return ;
     }

    
Gets meta data of the WLData.

Returns:
the meta data.
 
     public MetaData getMetaData() {
         return ;
     }

    
Gets external data annotations of the WLData.

Returns:
the external data annotations.
 
     public ExternalDataStored getExternalData() {
         return ;
     }

    
Gets text corpus annotations of the WLData.

Returns:
the text corpus annotations.
 
     public TextCorpusStored getTextCorpus() {
        return ;
    }

    
Gets lexicon annotations of the WLData.

Returns:
the lexicon annotations.
    public LexiconStored getLexicon() {
        return ;
    }

    
Creates WLData with the given meta data and external data annotations.

Parameters:
metaData meta data
extData external data
    public WLData(MetaData metaDataExternalDataStored extData) {
        this. = ;
        this. = metaData;
        this. = extData;
    }

    
Creates WLData with the given meta data and text corpus annotations.

Parameters:
metaData meta data
textCorpus text corpus
    public WLData(MetaData metaDataTextCorpusStored textCorpus) {
        this. = ;
        this. = metaData;
        this. = textCorpus;
    }

    
Creates WLData with the given meta data, external data and text corpus annotations.

Parameters:
metaData meta data
extData external data
textCorpus text corpus
    public WLData(MetaData metaDataExternalDataStored extDataTextCorpusStored textCorpus) {
        this. = ;
        this. = metaData;
        this. = extData;
        this. = textCorpus;
    }

    
Creates WLData with the given text corpus annotations.

Parameters:
textCorpus text corpus
    public WLData(TextCorpusStored textCorpus) {
        this. = ;
        this. = new MetaData();
        this. = textCorpus;
    }

    
Creates WLData with the given external data annotations.

Parameters:
extData external data
    public WLData(ExternalDataStored extData) {
        this. = ;
        this. = new MetaData();
        this. = extData;
    }

    
Creates WLData with the given external data and text corpus annotations.

Parameters:
extData external data
textCorpus text corpus
    public WLData(ExternalDataStored extDataTextCorpusStored textCorpus) {
        this. = ;
        this. = new MetaData();
        this. = extData;
        this. = textCorpus;
    }

    
Creates WLData with the given meta data and lexicon annotations.

Parameters:
metaData meta data
lexicon lexicon
    public WLData(MetaData metaDataLexiconStored lexicon) {
        this. = ;
        this. = metaData;
        this. = lexicon;
    }

    
Creates WLData with the given lexicon annotations.

Parameters:
lexicon lexicon
    public WLData(LexiconStored lexicon) {
        this. = ;
        this. = new MetaData();
        this. = lexicon;
    }
New to GrepCode? Check out our FAQ X