org.weborganic.uri.template
Class TokenFactory

java.lang.Object
  extended by org.weborganic.uri.template.TokenFactory

public class TokenFactory
extends Object

A factory for URI tokens.

Tokens can be instantiated from an expression which is specific to each token.

Version:
9 February 2009
Author:
Christophe Lauret
See Also:
TokenLiteral, TokenVariable, TokenOperatorD3, TokenOperatorRF

Method Summary
static Token newToken(String exp)
          Generates the token corresponding to the specified expression.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newToken

public static Token newToken(String exp)
Generates the token corresponding to the specified expression.

Parameters:
exp - The expression.
Returns:
The corresponding token instance.
Throws:
URITemplateSyntaxException - If the expression could not be parsed as a valid token.