Examples of Options


Examples of com.sun.tools.xjc.Options

        // Collection<SchemaInfo> schemas = serviceInfo.getSchemas();
        List<InputSource> jaxbBindings = context.getJaxbBindingFile();
        Map<String, Element> schemaLists = CastUtils.cast((Map<?, ?>)context.get(ToolConstants.SCHEMA_MAP));

       
        Options opts = null;
        opts = getOptions(schemaCompiler);

        addSchemas(opts, schemaCompiler, schemaLists);

        for (InputSource binding : jaxbBindings) {
            opts.addBindFile(binding);
        }

                      
        for (String ns : context.getNamespacePackageMap().keySet()) {
            File file = JAXBUtils.getPackageMappingSchemaBindingFile(ns, context.mapPackageName(ns));
            try {
                InputSource ins = new InputSource(file.toURI().toString());
                schemaCompiler.parseSchema(ins);
            } finally {
                FileUtils.delete(file);               
            }
        }
       
        if (context.getPackageName() != null) {
            schemaCompiler.setDefaultPackageName(context.getPackageName());
       
       
       
        Vector<String> args = new Vector<String>();
        if (context.get(ToolConstants.CFG_NO_ADDRESS_BINDING) == null) {
            //hard code to enabale jaxb extensions
            args.add("-extension");
            URL bindingFileUrl = getClass().getResource("W3CEPRJaxbBinding.xml");
            InputSource ins = new InputSource(bindingFileUrl.toString());
            opts.addBindFile(ins);
        }
       
        if (context.get(ToolConstants.CFG_XJC_ARGS) != null) {
            String xjcArgs = (String)context.get(ToolConstants.CFG_XJC_ARGS);
            StringTokenizer tokenizer = new StringTokenizer(xjcArgs, ",", false);
            while (tokenizer.hasMoreTokens()) {
                String arg = tokenizer.nextToken();
                args.add(arg);
                LOG.log(Level.FINE, "xjc arg:" + arg);
            }
        }
        if (context.get(ToolConstants.CFG_NO_ADDRESS_BINDING) == null
            || context.get(ToolConstants.CFG_XJC_ARGS) != null) {
            try {
                // keep parseArguments happy, supply dummy required command-line
                // opts
                opts.addGrammar(new InputSource("null"));
                opts.parseArguments(args.toArray(new String[] {}));
            } catch (BadCommandLineException e) {
                String msg = "XJC reported 'BadCommandLineException' for -xjc argument:";
                for (String arg : args) {
                    msg = msg + arg + " ";
                }
View Full Code Here

Examples of de.axxeed.animosy.model.Options

    super.paintComponent(g);
    Graphics2D g2d = (Graphics2D) g;
   
    Game game = Manager.getGame();
    GameBoard b = game.getBoard();
    Options opt = Manager.getOptions();
    int maxMoves = opt.getNumberOfMoves();
    int mrXPos = detYOffset+pixPerDetective*opt.getNumberOfDetectives()+10;
      int y = 0;

    if(b.getDetectives()!=null && game.getState() != Game.NO_GAME) {
      if(startGameButton!=null && startGameButton.isVisible()) startGameButton.setVisible(false);
      g2d.drawString("Current turn: "+game.getCurrentMove()+" of "+maxMoves, 10, 20);
      g2d.drawString(""+game.getStateText(), 10, 40);

      g2d.drawString("Detective positions:", 10, detYOffset-20);
      g2d.drawLine(10, detYOffset-18, 120, detYOffset-18);
      int activeDet = game.getActiveDetectiveIndex();
      for(int i=0;i<opt.getNumberOfDetectives();i++) {
        if(i==activeDet) {
                g2d.setColor(Color.CYAN);
                g2d.fillRect(18, detYOffset-12+pixPerDetective*i, 100, 15);
        }
        Detective d = b.getDetectives()[i];
              g2d.setColor(Color.BLACK);
        if(d.isStranded()) {
                g2d.setColor(Color.RED);
        }
        g2d.drawString("Detective "+(i+1)+": "+d.getPosition().getPosition(), 20, detYOffset+pixPerDetective*i);
              g2d.setColor(Detective.getColor(i));
              g2d.fillOval(5, detYOffset-9+pixPerDetective*i, 10, 10);
              g2d.setColor(Move.getColor(TAXI));
        g2d.drawString(""+d.getTaxiTickets()+"x T", 20, detYOffset+pixPerDetective*i+20);
              g2d.setColor(Move.getColor(BUS));
        g2d.drawString(""+d.getBusTickets()+"x B", 60, detYOffset+pixPerDetective*i+20);
              g2d.setColor(Move.getColor(UG));
        g2d.drawString(""+d.getUndergroundTickets()+"x U", 100, detYOffset+pixPerDetective*i+20);
             
      }
     
      if(Manager.getOptions().isCheat() || game.isCheckPoint()) {
            g2d.setColor(Color.BLACK);
        g2d.drawString("MrX: "+b.getMrX().getPosition().getPosition(), 20, mrXPos);
            g2d.fillOval(5, mrXPos-9, 10, 10);
      }
         
          // here goes the movement history of MrX
          y = mrXPos + 20;
          int maxY = y;
          int x = 10;
          Move[] mrXmoves = b.getMrX().getPrevPos();
          for(int i=0;i<=maxMoves;i++) {
              g2d.setColor(Color.BLACK);
              if(i>=game.getCurrentMove()) {
                  g2d.setColor(Color.GRAY);
                g2d.drawRect(x, y, 30, 15);
              }
              if(game.isCheckPoint(i+1)) {
                  g2d.setColor(new Color(120,200,255));
                g2d.fillRect(x, y, 30, 15);
              }
              if(i==game.getCurrentMove()-1 && game.getState() == Game.MOVE_MRX) {
                  g2d.setColor(Color.RED);
                g2d.drawRect(x, y, 30, 15);
              }
            if((i+1)<mrXmoves.length) {
                  g2d.setColor(Move.getColor(mrXmoves[i+1].getType()));
                if(opt.isCheat() || game.isCheckPoint()) {
                      g2d.drawString(""+mrXmoves[i+1].getNode(), x+3, y+12);
                }
                else {
                      g2d.drawString(""+mrXmoves[i+1].toStringTicket(), x+3, y+12);
                }
View Full Code Here

Examples of edu.stanford.nlp.parser.lexparser.Options

* @author Ahmed
*/
public class StringToWordsTokenizer {
    public static ArrayList<Word> tokenize(String in){
        ArrayList<Word> lst;
         Options op = new Options();
        TokenizerFactory<? extends HasWord> tf = op.tlpParams.treebankLanguagePack().getTokenizerFactory();
        Tokenizer<? extends HasWord> tokenizer = tf.getTokenizer(new BufferedReader(new StringReader((String) in)));
        lst = (ArrayList<Word>) tokenizer.tokenize();
        return lst;
    }
View Full Code Here

Examples of er.chronic.Options

     * false)); } else if (repeater instanceof RepeaterMinute || repeater
     * instanceof RepeaterSecond) { span = chronic.parse("this second", new
     * Options(chronic.getNow(), false)); } else { throw new
     * IllegalArgumentException("Invalid repeater: " + repeater); }
     */
    Span span = Chronic.parse("this second", new Options(options.getNow(), false));
    return handle(tokens, span, options);
  }
View Full Code Here

Examples of feign.Request.Options

    @Provides ErrorDecoder errorDecoder() {
      return new ErrorDecoder.Default();
    }

    @Provides Options options() {
      return new Options();
    }
View Full Code Here

Examples of fr.obeo.releng.targetplatform.Options

      int _length_1 = _text_2.length();
      boolean _lessThan = (_length_1 < currentNodeSizeToCursor);
      _or = _lessThan;
    }
    if (_or) {
      final Options options = ((Options) model);
      EList<Option> _options = options.getOptions();
      boolean _contains_1 = _options.contains(Option.INCLUDE_REQUIRED);
      boolean _not_1 = (!_contains_1);
      if (_not_1) {
        String _literal = Option.INCLUDE_REQUIRED.getLiteral();
        ICompletionProposal _createCompletionProposal = this.createCompletionProposal(_literal, "all required software will be added to the target platform", options, 440, context);
        acceptor.accept(_createCompletionProposal);
      }
      EList<Option> _options_1 = options.getOptions();
      boolean _contains_2 = _options_1.contains(Option.INCLUDE_SOURCE);
      boolean _not_2 = (!_contains_2);
      if (_not_2) {
        String _literal_1 = Option.INCLUDE_SOURCE.getLiteral();
        ICompletionProposal _createCompletionProposal_1 = this.createCompletionProposal(_literal_1, "sources (if available) of the content will be added to the target platform", options, 430, context);
        acceptor.accept(_createCompletionProposal_1);
      }
      EList<Option> _options_2 = options.getOptions();
      boolean _contains_3 = _options_2.contains(Option.INCLUDE_ALL_ENVIRONMENTS);
      boolean _not_3 = (!_contains_3);
      if (_not_3) {
        String _literal_2 = Option.INCLUDE_ALL_ENVIRONMENTS.getLiteral();
        ICompletionProposal _createCompletionProposal_2 = this.createCompletionProposal(_literal_2, "all available environment specific plug-ins will be added to the target platform", options, 420, context);
        acceptor.accept(_createCompletionProposal_2);
      }
      EList<Option> _options_3 = options.getOptions();
      boolean _contains_4 = _options_3.contains(Option.INCLUDE_CONFIGURE_PHASE);
      boolean _not_4 = (!_contains_4);
      if (_not_4) {
        String _literal_3 = Option.INCLUDE_CONFIGURE_PHASE.getLiteral();
        ICompletionProposal _createCompletionProposal_3 = this.createCompletionProposal(_literal_3, "the configure phase will be run during the download operation of the target platform", options, 410, context);
View Full Code Here

Examples of gnu.dtools.ritopt.Options

        importPrefs = new StringOption("jabref_prefs.xml");
        auxImExport = new StringOption("");
        importToOpenBase = new StringOption("");
        fetcherEngine = new StringOption("");

        options = new Options("JabRef "); // Create an options repository.
        options.setVersion(GUIGlobals.version);

        importFile.setDescription("imopoepuoeu"); //Globals.lang);
        options.register("version", 'v',
                Globals.lang("Display version"), showVersion);
View Full Code Here

Examples of info.archinnov.achilles.schemabuilder.Create.Options

        when(embeddedIdProperties.getClusteringComponents().getClusteringOrders()).thenReturn(asList(clusteringOrder));
        when(tableOptions.clusteringOrder(clusteringOrdersCaptor.capture())).thenReturn(tableOptions);

        //When
        final Options actual = view.addClusteringOrder(tableOptions);

        //Then
        assertThat(actual).isSameAs(tableOptions);
        assertThat(clusteringOrdersCaptor.getValue()).isSameAs(clusteringOrder);
    }
View Full Code Here

Examples of info.archinnov.achilles.type.Options


    @Test
    public void should_add_timestamp_to_statement_if_ordered_batch() throws Exception {
        //Given
        Options options = noOptions();
        batch = new Batch(null, contextFactory, daoContext, configContext, true);

        //When
        final Options actual = batch.maybeAddTimestampToStatement(options);

        //Then
        assertThat(actual.getTimestamp()).isNotNull();
    }
View Full Code Here

Examples of kodkod.engine.config.Options

   * default Options object.
   * @effects this.instance' = instance && this.options' = new Options()
   * @throws NullPointerException - instance = null
   */
  public Evaluator(Instance instance) {
    this(instance, new Options());
  }
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.