Class TigerXMLDocument
java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.core.TigerXMLDocument
- All Implemented Interfaces:
Serializable
Represents the TIGER-XML source document of a corpus.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTigerXMLDocument(String corpusFileName) Creates a new TigerXMLDocument object.TigerXMLDocument(String corpusFileName, int verbosity) Creates a new TigerXMLDocument object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the DOM root element of the parsed document.Returns the source file name.intGets the currently set level of verbosity of this instance.voidreset()Resets the document state, clearing the DOM tree.voidsetVerbosity(int verbosity) Sets the currently set level of verbosity of this instance.
-
Constructor Details
-
TigerXMLDocument
Creates a new TigerXMLDocument object.- Parameters:
corpusFileName- path to the corpus file
-
TigerXMLDocument
Creates a new TigerXMLDocument object.- Parameters:
corpusFileName- path to the corpus fileverbosity- logging verbosity level
-
-
Method Details
-
getDocumentRoot
Returns the DOM root element of the parsed document.- Returns:
- the root Element
-
getFileName
Returns the source file name.- Returns:
- the absolute path to the XML file
-
reset
public void reset()Resets the document state, clearing the DOM tree. -
getVerbosity
public int getVerbosity()Gets the currently set level of verbosity of this instance. The higher the value the more information is written to stderr.- Returns:
- The level of verbosity.
-
setVerbosity
public void setVerbosity(int verbosity) Sets the currently set level of verbosity of this instance. The higher the value the more information is written to stderr.- Parameters:
verbosity- The level of verbosity.
-