de.tuebingen.uni.sfs.dspin.tcf.profile
Class LexiconProfile
java.lang.Object
de.tuebingen.uni.sfs.dspin.tcf.profile.LexiconProfile
- All Implemented Interfaces:
- de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.IODescriptor
public class LexiconProfile
- extends java.lang.Object
- implements de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.IODescriptor
Constructor Summary |
LexiconProfile(javax.xml.stream.XMLEventReader xmlEventReader)
Constructs LexiconProfile by xmlEventReader reading the Lexicon element contents of
TCF 0.3 xml data. |
Method Summary |
java.lang.String |
getLang()
|
de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.LayerDescriptor |
getLayerDescriptor(java.lang.String layerName)
Get Lexicon annotation layer description with the given name |
java.util.List<de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.LayerDescriptor> |
getLayerDescriptors()
Get list of Lexicon annotation layers descriptions, i.e. for all Lexicon annotation layers that are direct
children of Lexicon tag, their names and attributes are encapsulated as IODescriptorTcfxb objects inside the list. |
java.lang.String |
getType()
|
java.lang.String |
getVersion()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LexiconTag
public static final java.lang.String LexiconTag
- See Also:
- Constant Field Values
languageAttrName
public static final java.lang.String languageAttrName
- See Also:
- Constant Field Values
LexiconProfile
public LexiconProfile(javax.xml.stream.XMLEventReader xmlEventReader)
throws TextCorpusFormatException
- Constructs LexiconProfile by xmlEventReader reading the Lexicon element contents of
TCF 0.3 xml data. After the LexiconProfile is constructed the read pointer of
xmlEventReader will be put just after Lexicon end element tag.
- Parameters:
xmlEventReader
- XMLEventReader that should contain TCF version 0.3 data stream
and should have its current read pointer before Lexicon element tag
- Throws:
TextCorpusFormatException
getLayerDescriptors
public java.util.List<de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.LayerDescriptor> getLayerDescriptors()
- Get list of Lexicon annotation layers descriptions, i.e. for all Lexicon annotation layers that are direct
children of Lexicon tag, their names and attributes are encapsulated as IODescriptorTcfxb objects inside the list.
- Specified by:
getLayerDescriptors
in interface de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.IODescriptor
- Returns:
- list of Lexicon annotation layers descriptions, each description contains layer name and layer
attributes
getLayerDescriptor
public de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.LayerDescriptor getLayerDescriptor(java.lang.String layerName)
- Get Lexicon annotation layer description with the given name
- Specified by:
getLayerDescriptor
in interface de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.IODescriptor
- Returns:
- lexicon annotation layer description with the given name,
or null if there is no such layer in the data
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getLang
public java.lang.String getLang()
- Specified by:
getLang
in interface de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.IODescriptor
getType
public java.lang.String getType()
- Specified by:
getType
in interface de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.IODescriptor
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interface de.tuebingen.uni.sfs.dspin.tcf.descriptor.api.IODescriptor