Examples of addToken()


Examples of com.plainsource.commons.text.template.token.TokenList.addToken()

    private TokenList createInvoiceLinesHeader() {

        // Invoice line header
        TokenList invoiceLineHeaderTokens = new TokenList("invoiceLineHeaderTokens", new ArrayList<Tokenizer>());
        invoiceLineHeaderTokens.addToken(new Token(
                TextLabel.INV_ITEM_DESCRIPTION_LABEL.toLowerCase(),
                TextLabel.INV_ITEM_DESCRIPTION_LABEL.toString(locale)));

        // depending on the configuration, adds the unit code as a field of the invoice line header
        if (ubl4JConfigurationBean.isIncludeQuantityUnitInInvoiceLine()) {
View Full Code Here

Examples of limelight.io.Templater.addToken()

    String sceneName = getArgOrDefault(args, "scene-name", "default_scene");

    String projectName = fs().filename(projectPath);
    Templater templater = createTemplater(fs().parentPath(projectPath));

    templater.addToken("LLP_NAME", projectName);

    templater.file(fs().join(projectName, "features/step_definitions/limelight_steps.rb"), "features/step_definitions/limelight_steps.rb.template");
    templater.file(fs().join(projectName, "features/support/env.rb"), "features/support/env.rb.template");
    templater.file(fs().join(projectName, "Rakefile"), "project/Rakefile.template");
View Full Code Here

Examples of net.percederberg.grammatica.parser.ProductionPatternAlternative.addToken()

        addPattern(pattern);

        pattern = new ProductionPattern(GrammarConstants.HEADER_PART,
                                        "HeaderPart");
        alt = new ProductionPatternAlternative();
        alt.addToken(GrammarConstants.HEADER, 1, 1);
        alt.addProduction(GrammarConstants.HEADER_DECLARATION, 0, -1);
        pattern.addAlternative(alt);
        addPattern(pattern);

        pattern = new ProductionPattern(GrammarConstants.HEADER_DECLARATION,
View Full Code Here

Examples of net.sourceforge.chaperon.grammar.token.TokenList.addToken()

      else if (localName.equals(TOKEN_ELEMENT))
      {
        Token token = (Token) stack.pop();
        TokenList tokens = (TokenList) stack.peek();

        tokens.addToken(token);
      }
      else if ((localName.equals(ALTERNATION_ELEMENT))
               || (localName.equals(CONCATENATION_ELEMENT))
               || (localName.equals(CHARACTERSEQUENCE_ELEMENT))
               || (localName.equals(CHARACTERCLASS_ELEMENT))
View Full Code Here

Examples of org.apache.beehive.netui.script.el.ExpressionTerm.addToken()

    final public ExpressionTerm parseExpression() throws ParseException {
        ExpressionTerm expr = new ExpressionTerm();
        ExpressionToken eTok = null;
        eTok = Context();
        expr.addToken(eTok);
        label_2:
        while(true) {
            switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                case DOT:
                case LBRACKET:
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.model.SupportingToken.addToken()

        if (endorse) {
            SupportingToken st = new SupportingToken(SupportTokenType.SUPPORTING_TOKEN_ENDORSING,
                                                     SP12Constants.INSTANCE,
                                                     message.getExchange()
                                                         .getBus().getExtension(PolicyBuilder.class));
            st.addToken(itok);
            all.addPolicyComponent(st);
        }
        pol = p.merge(pol);
       
        client.setPolicy(pol);
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.model.SupportingToken.addToken()

        if (endorse) {
            SupportingToken st = new SupportingToken(SupportTokenType.SUPPORTING_TOKEN_ENDORSING,
                                                     SP12Constants.INSTANCE,
                                                     message.getExchange()
                                                         .getBus().getExtension(PolicyBuilder.class));
            st.addToken(itok);
            all.addPolicyComponent(st);
        }
        pol = p.merge(pol);
       
        client.setPolicy(pol);
View Full Code Here

Examples of org.apache.hadoop.security.Credentials.addToken()

    String nnAddress =
      InetAddress.getByName(uri.getHost()).getHostAddress() + ":" + uri.getPort();
    token.setService(new Text(nnAddress));
   
    Credentials ts = new Credentials();
    ts.addToken(new Text(shortName), token);
    ts.writeTokenStorageToStream(out);
  }

  /**
   * Utility method to obtain a delegation token over http
View Full Code Here

Examples of org.apache.hadoop.security.Credentials.addToken()

    String nn3 = DelegationTokenRenewal.SCHEME + "://host3:0";
   
    Credentials ts = new Credentials();
   
    // register the token for renewal
    ts.addToken(new Text(nn1), token1);
    ts.addToken(new Text(nn2), token2);
    ts.addToken(new Text(nn3), token3);
   
    // register the tokens for renewal
    DelegationTokenRenewal.registerDelegationTokensForRenewal(
View Full Code Here

Examples of org.apache.hadoop.security.Credentials.addToken()

   
    Credentials ts = new Credentials();
   
    // register the token for renewal
    ts.addToken(new Text(nn1), token1);
    ts.addToken(new Text(nn2), token2);
    ts.addToken(new Text(nn3), token3);
   
    // register the tokens for renewal
    DelegationTokenRenewal.registerDelegationTokensForRenewal(
        new JobID("job1", 1), ts, conf);
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.