Class ProtFramesParser

java.lang.Object
gov.nasa.pds.model.plugin.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
  • Field Details

  • Constructor Details

    • ProtFramesParser

      public ProtFramesParser()
  • Method Details

    • 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.