Examples of MKbSelector


Examples of clips.directory.editors.mkb10.MKbSelector

    }
    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++) {
        ids[i] = mkbItems.get(i).getID();
      }
      curLine.setItems(ids);
View Full Code Here

Examples of clips.directory.editors.mkb10.MKbSelector

        throw new ParseException("Строка \"" + code + "\" содержит более одного кода мкб", 0);
      }
      parsed = codes.get(0);
    }
    if (selector == null){
      selector = new MKbSelector(this, MKbSelector.SelectType.oneToOne);
    }
    return selector.getSingleItem(parsed);
  }
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.