Package net.oijon.oling
Class LegacyParser
- java.lang.Object
-
- net.oijon.oling.LegacyParser
-
@Deprecated public class LegacyParser extends java.lang.ObjectDeprecated.as of 3.0.0, as files are now stored via XMLParses a .language file, and allows various parts to be accessed- Author:
- alex
-
-
Field Summary
Fields Modifier and Type Field Description static net.oijon.olog.LoglogDeprecated.
-
Constructor Summary
Constructors Constructor Description LegacyParser(java.io.File file)Deprecated.Creates an object to hold the contents of a .language structured fileLegacyParser(java.lang.String input)Deprecated.Creates an object to hold the contents of a .language structured string
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static net.oijon.olog.LoggetLog()Deprecated.Gets the log the parser outputs to.MultitaggetPHOSYSTag()Deprecated.Gets the containing tag, including all subtagsLanguageparseLanguage()Deprecated.Parses a language from a ParserLexiconparseLexicon()Deprecated.Parses a lexicon from a ParserOrthographyparseOrtho()Deprecated.PhonologyparsePhono()Deprecated.Parses a phonology from a ParserPhonoSystemparsePhonoSys()Deprecated.Parses a phonology system from a Parser
-
-
-
Constructor Detail
-
LegacyParser
public LegacyParser(java.lang.String input)
Deprecated.Creates an object to hold the contents of a .language structured string- Parameters:
input- The string to be parsed.
-
LegacyParser
public LegacyParser(java.io.File file)
Deprecated.Creates an object to hold the contents of a .language structured file- Parameters:
file- The file to be read
-
-
Method Detail
-
getPHOSYSTag
public Multitag getPHOSYSTag()
Deprecated.Gets the containing tag, including all subtags- Returns:
- The containing tag
-
parsePhonoSys
public PhonoSystem parsePhonoSys() throws java.lang.Exception
Deprecated.Parses a phonology system from a Parser- Returns:
- A PhonoSystem object with data from the Parser.
- Throws:
java.lang.Exception- Thrown when a phonology system could not be found
-
parsePhono
public Phonology parsePhono() throws java.lang.Exception
Deprecated.Parses a phonology from a Parser- Returns:
- A Phonology object with data from the Parser.
- Throws:
java.lang.Exception- Thrown when a phonology could not be found
-
parseLanguage
public Language parseLanguage() throws java.lang.Exception
Deprecated.Parses a language from a Parser- Returns:
- A Language object with data from the Parser.
- Throws:
java.lang.Exception- Thrown when a language could not be found
-
parseOrtho
public Orthography parseOrtho()
Deprecated.
-
parseLexicon
public Lexicon parseLexicon()
Deprecated.Parses a lexicon from a Parser- Returns:
- A Lexicon object with data from the Parser.
-
getLog
public static net.oijon.olog.Log getLog()
Deprecated.Gets the log the parser outputs to. Useful for parse methods in data types.- Returns:
- The log the parser is outputting to.
-
-