Package eu.clarin.weblicht.wlfxb.xb
Class WLData
- java.lang.Object
-
- eu.clarin.weblicht.wlfxb.xb.WLData
-
public class WLData extends Object
Class WLData represents TCF annotations. Corresponds to TCF specification. WLData annotations can be:TextCorpusannotations represent annotations on written connected text,Lexiconannotations represent linguistic information on a list of words,ExternalDataannotations 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 alsoWLDObjector.- Author:
- Yana Panchenko
-
-
Field Summary
Fields Modifier and Type Field Description static StringXML_DEFAULT_VERSIONstatic StringXML_NAMEstatic StringXML_NAMESPACEstatic StringXML_VERSION_04static StringXML_VERSION_5
-
Constructor Summary
Constructors Constructor Description WLData(ExternalDataStored extData)Creates WLData with the given external data annotations.WLData(ExternalDataStored extData, TextCorpusStored textCorpus)Creates WLData with the given external data and text corpus annotations.WLData(LexiconStored lexicon)Creates WLData with the given lexicon annotations.WLData(MetaData metaData, ExternalDataStored extData)Creates WLData with the given meta data and external data annotations.WLData(MetaData metaData, ExternalDataStored extData, TextCorpusStored textCorpus)Creates WLData with the given meta data, external data and text corpus annotations.WLData(MetaData metaData, LexiconStored lexicon)Creates WLData with the given meta data and lexicon annotations.WLData(MetaData metaData, TextCorpusStored textCorpus)Creates WLData with the given meta data and text corpus annotations.WLData(TextCorpusStored textCorpus)Creates WLData with the given text corpus annotations.
-
Method Summary
Modifier and Type Method Description ExternalDataStoredgetExternalData()Gets external data annotations of the WLData.LexiconStoredgetLexicon()Gets lexicon annotations of the WLData.MetaDatagetMetaData()Gets meta data of the WLData.TextCorpusStoredgetTextCorpus()Gets text corpus annotations of the WLData.StringgetVersion()Gets version of the WLData.voidsetVersion(String version)Sets version of the WLData.
-
-
-
Field Detail
-
XML_NAME
public static final String XML_NAME
- See Also:
- Constant Field Values
-
XML_NAMESPACE
public static final String XML_NAMESPACE
- See Also:
- Constant Field Values
-
XML_VERSION_5
public static final String XML_VERSION_5
- See Also:
- Constant Field Values
-
XML_VERSION_04
public static final String XML_VERSION_04
- See Also:
- Constant Field Values
-
XML_DEFAULT_VERSION
public static final String XML_DEFAULT_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WLData
public WLData(MetaData metaData, ExternalDataStored extData)
Creates WLData with the given meta data and external data annotations.- Parameters:
metaData- meta dataextData- external data
-
WLData
public WLData(MetaData metaData, TextCorpusStored textCorpus)
Creates WLData with the given meta data and text corpus annotations.- Parameters:
metaData- meta datatextCorpus- text corpus
-
WLData
public WLData(MetaData metaData, ExternalDataStored extData, TextCorpusStored textCorpus)
Creates WLData with the given meta data, external data and text corpus annotations.- Parameters:
metaData- meta dataextData- external datatextCorpus- text corpus
-
WLData
public WLData(TextCorpusStored textCorpus)
Creates WLData with the given text corpus annotations.- Parameters:
textCorpus- text corpus
-
WLData
public WLData(ExternalDataStored extData)
Creates WLData with the given external data annotations.- Parameters:
extData- external data
-
WLData
public WLData(ExternalDataStored extData, TextCorpusStored textCorpus)
Creates WLData with the given external data and text corpus annotations.- Parameters:
extData- external datatextCorpus- text corpus
-
WLData
public WLData(MetaData metaData, LexiconStored lexicon)
Creates WLData with the given meta data and lexicon annotations.- Parameters:
metaData- meta datalexicon- lexicon
-
WLData
public WLData(LexiconStored lexicon)
Creates WLData with the given lexicon annotations.- Parameters:
lexicon- lexicon
-
-
Method Detail
-
getVersion
public String getVersion()
Gets version of the WLData.- Returns:
- the version.
-
getMetaData
public MetaData getMetaData()
Gets meta data of the WLData.- Returns:
- the meta data.
-
getExternalData
public ExternalDataStored getExternalData()
Gets external data annotations of the WLData.- Returns:
- the external data annotations.
-
getTextCorpus
public TextCorpusStored getTextCorpus()
Gets text corpus annotations of the WLData.- Returns:
- the text corpus annotations.
-
getLexicon
public LexiconStored getLexicon()
Gets lexicon annotations of the WLData.- Returns:
- the lexicon annotations.
-
setVersion
public void setVersion(String version)
Sets version of the WLData.- Parameters:
version- the version string
-
-