Examples of MKBParser


Examples of beans.directory.mkb10.MKBParser

    }
    if (curLine.getAlternativeMkbCode() == null || curLine.getAlternativeMkbCode().trim().isEmpty()){
      curLine.setItems(new int[0]);
      return;
    }
    MKBParser      parser = new MKBParser(MKBParser.ParseLevel.soft);
    try {
      ArrayList<MKBCode>        codes = parser.parse(curLine.getAlternativeMkbCode());
      DirectoryMKB10          mkbDir = DirectoryLocator.getDirectory(DirectoryMKB10.class);
      MKbSelector            selector = new MKbSelector(mkbDir, MKbSelector.SelectType.single);
      ArrayList<DirectoryMKB10Item>  mkbItems = selector.getSelectedItem(codes);
      int[]              ids = new int[mkbItems.size()];
      for (int i = 0; i < ids.length; i++) {
View Full Code Here

Examples of beans.directory.mkb10.MKBParser

      parsed = MKBParser.decodeWellFormed(code);
    }
    catch (ParseException ex){
      System.out.println("Incorect code \"" + code + "\", try to use advanced parse method");
      if (parser == null){
        parser = new MKBParser(MKBParser.ParseLevel.hard);
      }
      ArrayList<MKBCode>      codes = parser.parse(code);
      if (codes.size() != 1){
        throw new ParseException("Строка \"" + code + "\" содержит более одного кода мкб", 0);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.