Examples of Options


Examples of org.fusesource.restygwt.client.Options

        {
            p("this.resource = resource;");
        }
        i(-1).p("}");

        Options options = getAnnotation(source, Options.class);
       
        p("public " + RESOURCE_CLASS + " getResource() {").i(1);
        {
            p("if (this.resource == null) {").i(1);
           
            if (options != null && options.serviceRootKey() != null && !options.serviceRootKey().isEmpty()) {
              p("String serviceRoot = " + SERVICE_ROOTS_CLASS + ".get(\"" + options.serviceRootKey() + "\");");
            } else {
              p("String serviceRoot = " + DEFAULTS_CLASS + ".getServiceRoot();");
            }
           
            if (path == null) {
                p("this.resource = new " + RESOURCE_CLASS + "(serviceRoot);");
            } else {
                p("this.resource = new " + RESOURCE_CLASS + "(serviceRoot).resolve("+quote(path)+");");
            }
           
            i(-1).p("}");
            p("return this.resource;");
        }
        i(-1).p("}");


        if( options!=null && options.dispatcher()!=Dispatcher.class ) {
            p("private " + DISPATCHER_CLASS + " dispatcher = "+options.dispatcher().getName()+".INSTANCE;");
        } else {
            p("private " + DISPATCHER_CLASS + " dispatcher = null;");
        }

        p();
View Full Code Here

Examples of org.goda.chronic.Options

    }
    else {
      throw new IllegalArgumentException("Invalid repeater: " + repeater);
    }
    */
    MutableInterval MutableInterval = Chronic.parse("this second", new Options(options.getNow(), false));
    return handle(tokens, MutableInterval, options);
  }
View Full Code Here

Examples of org.igoweb.kgs.client.gtp.Options

                        Logger.getLogger(GtpKgsTesujisoftGoClient.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
            });

            Options kgsOptions = new Options(props, logFile);
            log.println("step 1");
            GtpClient gtpClient = new GtpClient(System.in, System.out, kgsOptions);

            log.println("step 2");
            gtpClient.go();
View Full Code Here

Examples of org.iq80.leveldb.Options

   private String getQualifiedExpiredLocation() {
      return configuration.expiredLocation() + sanitizedCacheName();
   }

   private Options dataDbOptions() {
      Options options = new Options().createIfMissing(true);

      options.compressionType(CompressionType.valueOf(configuration.compressionType().name()));

      if (configuration.blockSize() != null) {
         options.blockSize(configuration.blockSize());
      }

      if (configuration.cacheSize() != null) {
         options.cacheSize(configuration.cacheSize());
      }

      return options;
   }
View Full Code Here

Examples of org.jboss.virtual.spi.Options

    * @param exactType the exact type
    * @return key's option
    */
   public static <T> T getOption(VirtualFile file, String key, Class<T> exactType)
   {
      Options options = getOptions(file);
      return options != null ? options.getOption(key, exactType) : null;
   }
View Full Code Here

Examples of org.jnode.apps.jpartition.consoleview.components.Options

    private boolean selectDevice() throws IOException {
        boolean deviceSelected = false;

        List<Device> devices = UserFacade.getInstance().getDevices();
        if ((devices != null) && !devices.isEmpty()) {
            Options devicesOpt = new Options(context);
            Device choice =
                    devicesOpt.show("Select a device", devices, DeviceLabelizer.INSTANCE);

            String device = choice.getName();
            UserFacade.getInstance().selectDevice(device);
            println("device=" + device);
            deviceSelected = true;
View Full Code Here

Examples of org.lealone.hbase.command.ddl.Options

    }

    @Override
    protected void parseTableDefinition(Schema schema, CreateTable createTable, String tableName) {
        CreateHBaseTable command = (CreateHBaseTable) createTable;
        Options options;
        ArrayList<String> splitKeys;

        do {
            DefineCommand c = parseAlterTableAddConstraintIf(tableName, schema);
            if (c != null) {
View Full Code Here

Examples of org.mapstruct.ap.option.Options

    }

    private Options createOptions() {
        String unmappedTargetPolicy = processingEnv.getOptions().get( UNMAPPED_TARGET_POLICY );

        return new Options(
            Boolean.valueOf( processingEnv.getOptions().get( SUPPRESS_GENERATOR_TIMESTAMP ) ),
            unmappedTargetPolicy != null ? ReportingPolicy.valueOf( unmappedTargetPolicy ) : null,
            processingEnv.getOptions().get( DEFAULT_COMPONENT_MODEL )
        );
    }
View Full Code Here

Examples of org.odlabs.wiquery.core.options.Options

    return "effect";
  }

  private static CharSequence getOptions(PulsateMode mode, int times)
  {
    Options options = new Options();
    if (mode != null)
    {
      options.put("mode", JsUtils.quotes(mode.name()));
    }
    options.put("times", times);

    return options.getJavaScriptOptions();
  }
View Full Code Here

Examples of org.omegahat.Environment.Interpreter.Options

      property values parameterizing the manager
      and its options.
   */

public OmegaInterfaceManager(java.io.InputStream stream)  {
super(new Options(stream));
}
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.