Examples of Token


Examples of org.apache.commons.el.parser.Token

    }
    String expected = expectedBuf.toString ();

    // Generate the String of encountered tokens
    StringBuffer encounteredBuf = new StringBuffer ();
    Token tok = pExc.currentToken.next;
    for (int i = 0; i < maxSize; i++) {
      if (i != 0) encounteredBuf.append (" ");
      if (tok.kind == 0) {
        encounteredBuf.append (pExc.tokenImage [0]);
        break;
View Full Code Here

Examples of org.apache.commons.jexl2.parser.Token

        // Literals
        final List<String> literals = new ArrayList<String>();

        // Get schema names and literals
        Token token;
        while ((token = parser.getNextToken()) != null && StringUtils.hasText(token.toString())) {
            if (token.kind == ParserConstants.STRING_LITERAL) {
                literals.add(token.toString().substring(1, token.toString().length() - 1));
            }

            if (token.kind == ParserConstants.IDENTIFIER) {
                identifiers.add(token.toString());
            }
        }

        // Sort literals in order to process later literals included into others
        Collections.sort(literals, new Comparator<String>() {
View Full Code Here

Examples of org.apache.commons.jxpath.ri.parser.Token

        // Collect element namespace prefix and name, check element exist and
        // create them according to schema definition.
        final XPathParser xpathParser = new XPathParser(new StringReader(clonedMetadata.getQualifiedName()+"/"+result.two()));

        // Start from the root of the metadata document
        Token currentToken = xpathParser.getNextToken();
        Token previousToken = currentToken;

        int depth = 0;
        Element currentNode = clonedMetadata;
        boolean existingElement = true;
        boolean isAttribute = false;
View Full Code Here

Examples of org.apache.ctakes.core.nlp.tokenizer.Token

    List<Token> removalList = new ArrayList<Token>();
    Iterator<Token> tokenItr = tokenList.iterator();

    while (tokenItr.hasNext()) {
      Token token = tokenItr.next();
      if (token.getType() == Token.TYPE_EOL) {
        removalList.add(token);
      }
    }

    tokenList.removeAll(removalList);
View Full Code Here

Examples of org.apache.cxf.rs.security.oauth.client.OAuthClientUtils.Token

    if (verifier == null) {
            return redirectToFailureHandler(NO_VERIFIER);
        }
       
    LOG.info("Requesting OAuth server to replace an authorized request token with an access token");
    Token accessToken = manager.getAccessToken(request.getRequestToken(), verifier);
    if (accessToken == null) {
        return redirectToFailureHandler(NO_OAUTH_ACCESS_TOKEN);
    }
   
    LOG.info("Completing the reservation request for a user: " + request.getReserveName());
View Full Code Here

Examples of org.apache.cxf.rs.security.oauth.data.Token

        return reqToken;
    }

    public RequestToken getRequestToken(String tokenString) throws OAuthServiceException {

        Token token = oauthTokens.get(tokenString);
        if (token == null || (!RequestToken.class.isAssignableFrom(token.getClass()))) {
            throw new OAuthServiceException(new OAuthProblemException(OAuth.Problems.TOKEN_REJECTED));
        }
        return (RequestToken) token;
    }
View Full Code Here

Examples of org.apache.cxf.ws.security.policy.model.Token

       
        try {
            if (this.isRequestor()) {
                TransportToken transportTokenWrapper = tbinding.getTransportToken();
                if (transportTokenWrapper != null) {
                    Token transportToken = transportTokenWrapper.getToken();
                    if (transportToken instanceof IssuedToken) {
                        SecurityToken secToken = getSecurityToken();
                        if (secToken == null) {
                            policyNotAsserted(transportToken, "No transport token id");
                            return;
                        }
                        if (includeToken(transportToken.getInclusion())) {
                            Element el = secToken.getToken();
                            addEncryptedKeyElement(cloneElement(el));
                        }
                    }
                    policyAsserted(transportToken);
View Full Code Here

Examples of org.apache.derby.impl.sql.compile.Token

      curLexState = lexState;
}

protected Token jjFillToken()
{
   Token t = Token.newToken(jjmatchedKind);
   t.kind = jjmatchedKind;
   if (jjmatchedPos < 0)
   {
      if (image == null)
         t.image = "";
View Full Code Here

Examples of org.apache.etch.compiler.Token

  @Override
  public String getTypeValue( TypeRef type, Token value )
  {
    // System.out.println( "getTypeValue called with: "+type+": "+value );
    Token t = type.type();
    switch (t.kind)
    {
      case EtchGrammarConstants.LONG:
        return value.image + "L";
      case EtchGrammarConstants.FLOAT:
View Full Code Here

Examples of org.apache.etch.interoptester.Token

 
  /** @throws Exception */
  @Test
  public void parse2() throws Exception
  {
    Token t = Token.parse( parseXml( "<token/>" ) );
    assertNull( t.value( args ) );
  }
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.