Examples of options()


Examples of com.axemblr.provisionr.api.provider.ProviderBuilder.options()

    }

    private Provider newProviderMockWithBuilder() {
        Provider provider = mock(Provider.class);
        ProviderBuilder providerBuilder = mock(ProviderBuilder.class);
        when(providerBuilder.options(anyMapOf(String.class, String.class))).thenReturn(providerBuilder);
        when(providerBuilder.createProvider()).thenReturn(provider);
        when(provider.toBuilder()).thenReturn(providerBuilder);
        return provider;
    }
View Full Code Here

Examples of com.crashnote.core.config.helper.ConfigParseable.options()

    static ConfigObject fromBasename(final NameSource source, final String name, final ConfigParseOptions options) {
        ConfigObject obj;
        if (name.endsWith(".conf") || name.endsWith(".json") || name.endsWith(".properties")) {
            final ConfigParseable p = source.nameToParseable(name, options);

            obj = p.parse(p.options().setAllowMissing(options.getAllowMissing()));
        } else {
            final ConfigParseable confHandle = source.nameToParseable(name + ".conf", options);
            final ConfigParseable jsonHandle = source.nameToParseable(name + ".json", options);
            final ConfigParseable propsHandle = source.nameToParseable(name + ".properties", options);
            boolean gotSomething = false;
View Full Code Here

Examples of com.crashnote.external.config.ConfigParseable.options()

    static ConfigObject fromBasename(final NameSource source, final String name, final ConfigParseOptions options) {
        ConfigObject obj;
        if (name.endsWith(".conf") || name.endsWith(".json") || name.endsWith(".properties")) {
            final ConfigParseable p = source.nameToParseable(name, options);

            obj = p.parse(p.options().setAllowMissing(options.getAllowMissing()));
        } else {
            final ConfigParseable confHandle = source.nameToParseable(name + ".conf", options);
            final ConfigParseable jsonHandle = source.nameToParseable(name + ".json", options);
            final ConfigParseable propsHandle = source.nameToParseable(name + ".properties", options);
            boolean gotSomething = false;
View Full Code Here

Examples of com.github.jknack.antlr4ide.generator.ToolOptionsProvider.options()

    Rule rule = createMock(Rule.class);
    expect(rule.getName()).andReturn(ruleName);
    expect(rule.eContainer()).andReturn(grammar);

    expect(workspaceRoot.getFile(Path.fromOSString("/project/G.g4"))).andReturn(file);
    expect(optionsProvider.options(file)).andReturn(options);

    List<String> command = Lists.newArrayList("java", "-cp",
        toolPath + File.pathSeparator + ToolOptionsProvider.RUNTIME_JAR, ParseTreeGenerator.MAIN,
        freePort + "");
View Full Code Here

Examples of com.google.caliper.config.ResultProcessorConfig.options()

      Gson gson,
      CaliperConfig caliperConfig,
      @CaliperDirectory File caliperDirectory) throws InvalidConfigurationException {
    this.run = run;
    ResultProcessorConfig config = caliperConfig.getResultProcessorConfig(OutputFileDumper.class);
    if (config.options().containsKey("file")) {
      this.resultFile = new File(config.options().get("file"));
      logger.finer("found an output file in the configuration");
    } else if (config.options().containsKey("dir")) {
      File dir = new File(config.options().get("dir"));
      if (dir.isFile()) {
View Full Code Here

Examples of com.google.gwt.gadgets.client.UserPreferences.PreferenceAttributes.options()

    PreferenceAttributes attributes = m.getAnnotation(PreferenceAttributes.class);
    if (attributes != null) {
      GadgetUtils.writeAnnotationToElement(logger, attributes, userPref);

      switch (attributes.options()) {
        case HIDDEN:
          userPref.setAttribute("datatype", "hidden");
          break;
        case NORMAL:
          break;
View Full Code Here

Examples of com.google.gwt.gadgets.client.UserPreferences.PreferenceAttributes.options()

        case REQUIRED:
          userPref.setAttribute("required", "true");
          break;
        default:
          logger.log(TreeLogger.ERROR, "Unknown Option "
              + attributes.options().name(), null);
          throw new UnableToCompleteException();
      }
    }

    // Allow type-specific modifications to the userpref Element to be made
View Full Code Here

Examples of com.google.gwt.gadgets.client.UserPreferences.PreferenceAttributes.options()

    PreferenceAttributes attributes = m.getAnnotation(PreferenceAttributes.class);
    if (attributes != null) {
      GadgetUtils.writeAnnotationToElement(logger, attributes, userPref);

      switch (attributes.options()) {
        case HIDDEN:
          userPref.setAttribute("datatype", "hidden");
          break;
        case NORMAL:
          break;
View Full Code Here

Examples of com.google.gwt.gadgets.client.UserPreferences.PreferenceAttributes.options()

        case REQUIRED:
          userPref.setAttribute("required", "true");
          break;
        default:
          logger.log(TreeLogger.ERROR, "Unknown Option "
              + attributes.options().name(), null);
          throw new UnableToCompleteException();
      }
    }

    // Allow type-specific modifications to the userpref Element to be made
View Full Code Here

Examples of com.sos.DataExchange.SOSDataExchangeEngine.Options()

  private void doProcessing() throws Exception {
    final String conMethodName = conClassName + "::doProcessing"; //$NON-NLS-1$

    SOSDataExchangeEngine objR = new SOSDataExchangeEngine();
    SOSFTPOptions objO = objR.Options();
    objO.CurrentNodeName(getCurrentNodeName());
    HashMap<String, String> hsmParameters = getSchedulerParameterAsProperties(getParameters());
    objO.setAllOptions(DeletePrefix(hsmParameters, "ftp_"));
    objO.CheckMandatory();
    int intLogLevel = spooler_log.level();
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.