Package org.maltparserx.core.options.option

Examples of org.maltparserx.core.options.option.ClassOption


              og.addOption(eop);
            }
           
          } else if (optiontype.equals("class") ) {
            Option op = og.getOption(optionname);
            ClassOption cop = null;
          if (op == null) {
            cop = new ClassOption(og, optionname, shortdesctext, flag, usage);
          } else {
            if (op instanceof ClassOption) {
              cop = (ClassOption)op;
            }
          }
         
            NodeList legalvalues = option.getElementsByTagName("legalvalue");
            Element legalvalue;
            for (int j = 0; j < legalvalues.getLength(); j++) {
              legalvalue = (Element)legalvalues.item(j);
              String legalvaluename = legalvalue.getAttribute("name").toLowerCase();
              String classname = legalvalue.getAttribute("class");
              String legalvaluetext = legalvalue.getTextContent();
              cop.addLegalValue(legalvaluename, legalvaluetext, classname);
            }
            if (op == null) {
              cop.setDefaultValue(defaultValue);
              og.addOption(cop);
            }
          } else if (optiontype.equals("stringenum") ) {
            Option op = og.getOption(optionname);
            StringEnumOption ueop = null;
View Full Code Here

TOP

Related Classes of org.maltparserx.core.options.option.ClassOption

Copyright © 2018 www.massapicom. 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.