Class ProtFramesParser


  • public class ProtFramesParser
    extends Object
    Parses a Protege Frames file (.pont or .pins) and creates an array of tokens. parse - open file, parse, and generate array of tokens and types getTokenArray - return token array getTokenTypeArray - return token type array
    • Constructor Detail

      • ProtFramesParser

        public ProtFramesParser()
    • Method Detail

      • parse

        public boolean parse​(String fname)
                      throws Throwable
        Opens a FileReader and parses a Protege Frames file (.pont or .pins) and creates an array of tokens.
        Throws:
        Throwable
      • getTokenArray

        public ArrayList<String> getTokenArray()
        Returns the array of parsed tokens.
      • getTokenTypeArray

        public ArrayList<String> getTokenTypeArray()
        Returns the array of parsed token types.