Examples of Option


Examples of Galaxy.Tree.Tool.Input.Param.Option

    super(Option.class);
  }
  @Override
  public Map<String, String> mapFromObject(Object o) {
    // TODO Auto-generated method stub
    Option c = (Option) o;
    Map<String, String> myMapping;
    myMapping = new HashMap<String, String>();
    myMapping.put(NAME_TAG, "option");
    myMapping.put(VALUE_TAG, c.getContents());
    myMapping.put("value", c.getValue());
    if(c.isSelected() != null)
      myMapping.put("selected", c.isSelected().toString());
    else
      myMapping.put("selected", "false" .toString());
   
    return myMapping;
  }
View Full Code Here

Examples of SmartGen.Option

        if (result == null) result = caseConfigurableElement(package_);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SmartGenPackage.OPTION: {
        Option option = (Option)theEObject;
        Object result = caseOption(option);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case SmartGenPackage.CONFIGURABLE_ELEMENT: {
View Full Code Here

Examples of avrora.util.Option

            List l = Collections.list(Collections.enumeration(c));
            Collections.sort(l, Option.COMPARATOR);

            Iterator i = l.iterator();
            while (i.hasNext()) {
                Option opt = (Option)i.next();
                opt.printHelp();
            }

            Terminal.println("");
        }
View Full Code Here

Examples of ca.xshade.questionmanager.Option

                if (TownySettings.isUsingQuestioner() && test != null && test instanceof Questioner && test.isEnabled()) {
                        Questioner questioner = (Questioner)test;
                        questioner.loadClasses();
                       
                        List<Option> options = new ArrayList<Option>();
                        options.add(new Option(TownySettings.questionerAccept(), new JoinTownTask(newMember, town)));
                        options.add(new Option(TownySettings.questionerDeny(), new ResidentTownQuestionTask(newMember, town) {
                                @Override
                                public void run() {
                                  TownyMessaging.sendTownMessage(getTown(), String.format(TownySettings.getLangString("msg_deny_invite"), getResident().getName()));
                                }
                        }));
View Full Code Here

Examples of ch.ethz.inf.vs.californium.coap.Option

        // the second 4 bits represent the option length
        int optionLengthNibble = (0x0F & nextByte);
        int optionLength = readOptionValueFromNibble(optionLengthNibble);
       
        // read option
        Option option = new Option(currentOption);
        option.setValue(reader.readBytes(optionLength));
       
        // add option to message
        addOptionToSet(option, message.getOptions());
      } else break;
    }
View Full Code Here

Examples of com.adito.navigation.Option

        }
      }
    }

    String label = resources.getMessage(locale, propertyPrefix + ".option." + name);
    return new Option(buf.toString(), label, name);

  }
View Full Code Here

Examples of com.alibaba.druid.support.console.Option

public class OptionTest extends TestCase {


    public void test_parseOptions() throws Exception {
        String[] cmdArray = {"-sql","-ds", "200"};
        Option opt = Option.parseOptions(cmdArray);
        Assert.assertNotNull(opt);
        Assert.assertTrue(opt.printSqlData());
        Assert.assertTrue(opt.printDataSourceData());
        Assert.assertFalse(opt.printActiveConn());
        Assert.assertEquals(opt.getPid(), 200);

        cmdArray = new String[] {"-act", "738"};
        opt = Option.parseOptions(cmdArray);
        Assert.assertNotNull(opt);
        Assert.assertFalse(opt.printSqlData());
        Assert.assertFalse(opt.printDataSourceData());
        Assert.assertTrue(opt.printActiveConn());
        Assert.assertEquals(opt.getPid(), 738);

        cmdArray = new String[] {"-ds", "-detail", "1319"};
        opt = Option.parseOptions(cmdArray);
        Assert.assertNotNull(opt);
        Assert.assertFalse(opt.printSqlData());
        Assert.assertTrue(opt.printDataSourceData());
        Assert.assertFalse(opt.printActiveConn());
        Assert.assertTrue(opt.isDetailPrint());
        Assert.assertEquals(opt.getPid(), 1319);
       
        cmdArray = new String[] {"-sql","-id","5","200"};
        opt = Option.parseOptions(cmdArray);
        Assert.assertNotNull(opt);
        Assert.assertEquals(opt.getId(), 5);
        Assert.assertEquals(opt.getPid(), 200);

    cmdArray = new String[] {"-sql","-id","5","200", "3"};
        opt = Option.parseOptions(cmdArray);
        Assert.assertNotNull(opt);
        Assert.assertEquals(opt.getId(), 5);
        Assert.assertEquals(opt.getPid(), 200);
        Assert.assertEquals(opt.getInterval(), 3);


        cmdArray = new String[] {"-ds","-id","5", "-detail", "200", "3"};
        opt = Option.parseOptions(cmdArray);
        Assert.assertNotNull(opt);
        Assert.assertEquals(opt.getId(), 5);
        Assert.assertEquals(opt.getPid(), 200);
        Assert.assertEquals(opt.getInterval(), 3);
        Assert.assertEquals(opt.isDetailPrint(), true);

        //not enough arguments
        cmdArray = new String[] {};
        try {
            opt = Option.parseOptions(cmdArray);
View Full Code Here

Examples of com.atlassian.jira.issue.customfields.option.Option

    {
        Long lowest = new Long(Long.MAX_VALUE);

        for (final String name : l)
        {
            final Option o = options.getOptionForValue(name, null);
            if ((o != null) && (o.getSequence() != null) && (o.getSequence().compareTo(lowest) < 0))
            {
                lowest = o.getSequence();
            }
        }

        return lowest;
    }
View Full Code Here

Examples of com.cybozu.vmbkp.util.Option

        /* Initialize member variables. */
        initializeRestArgs();
        initializeOptionMap();
       
        int idx = 0;
        Option opt = null;
       
        while (idx < args.length) {
            if ((opt = parseOption(args, idx)) != null) {
                /* Parsed a option. */
                idx = opt.nextIdx;
View Full Code Here

Examples of com.dotcms.repackage.org.apache.commons.cli.Option

            options = new Options();
        } else {
            return options;
        }

        Option userOption = new Option( UpdateOptions.USER, true, Messages.getString( "UpdateOptions.text.user" ) );
        Option passOption = new Option( UpdateOptions.PASSWORD, true, Messages.getString( "UpdateOptions.text.password" ) );
        Option fileOption = new Option( UpdateOptions.FILE, true, Messages.getString( "UpdateOptions.text.file", UpdateAgent.FOLDER_HOME_UPDATER + File.separator + "updates" ) );
        //Option backupOption = new Option( UpdateOptions.BACKUP, true, Messages.getString( "UpdateOptions.text.backup" ) );
        Option urlOption = new Option( UpdateOptions.URL, true, Messages.getString( "UpdateOptions.text.url" ) + props.getProperty( "update.url", "" ) );
        Option forceOption = new Option( UpdateOptions.FORCE, false, Messages.getString( "UpdateOptions.text.force" ) );
        Option noUpdaterOption = new Option( UpdateOptions.NO_UPDATE, false, Messages.getString( "UpdateOptions.text.no.autoupdater.updater" ) );
        Option dryrunOption = new Option( UpdateOptions.DRY_RUN, false, Messages.getString( "UpdateOptions.text.dryrun" ) );
        Option helpOption = new Option( UpdateOptions.HELP, false, Messages.getString( "UpdateOptions.text.help" ) );
        Option quietOption = new Option( UpdateOptions.QUIET, false, Messages.getString( "UpdateOptions.text.quiet" ) );
        Option verboseOption = new Option( UpdateOptions.VERBOSE, false, Messages.getString( "UpdateOptions.text.verbose" ) );
        Option homeOption = new Option( UpdateOptions.HOME, true, Messages.getString( "UpdateOptions.text.home", System.getProperty( "user.dir" ) ) );
        Option dotcmsHomeOption = new Option( UpdateOptions.DOTCMS_HOME, true, Messages.getString( "UpdateOptions.text.dotcms.home", System.getProperty( "user.dir" ) ) );
        Option logOption = new Option( UpdateOptions.LOG, true, "Name of the log file to be created. Defaults to: update_{timestamp}.log" );
        Option proxy = new Option( UpdateOptions.PROXY, true, Messages.getString( "UpdateOptions.text.proxy" ) );
        Option proxyUser = new Option( UpdateOptions.PROXY_USER, true, Messages.getString( "UpdateOptions.text.proxy.user" ) );
        Option proxyPass = new Option( UpdateOptions.PROXY_PASS, true, Messages.getString( "UpdateOptions.text.proxy.pass" ) );
        Option allowTestingBuildsOption = new Option( UpdateOptions.ALLOW_TESTING_BUILDS, true, Messages.getString( "UpdateOptions.text.allowtestingbuilds" ) );
        Option specificVersionOption = new Option( UpdateOptions.SPECIFIC_VERSION, true, Messages.getString( "UpdateOptions.text.specificversion" ) );

        OptionGroup originGroup = new OptionGroup();
        originGroup.addOption( urlOption );

        OptionGroup fileGroup = new OptionGroup();
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.