|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.module.apikit.uri.TokenFactory
public class TokenFactory
A factory for URI tokens.
Tokens can be instantiated from an expression which is specific to each token.
TokenLiteral,
TokenVariable,
TokenOperatorD3,
TokenOperatorPS| Nested Class Summary | |
|---|---|
static class |
TokenFactory.Syntax
A syntax to use for creating tokens. |
| Method Summary | |
|---|---|
static TokenFactory |
getInstance()
Returns a token factory instance using the default syntax (DRAFTX). |
static TokenFactory |
getInstance(TokenFactory.Syntax syntax)
Returns a token factory instance. |
Token |
newToken(String exp)
Generates the token corresponding to the specified expression. |
static Token |
newToken(String exp,
TokenFactory.Syntax syntax)
Generates the token corresponding to the specified expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Token newToken(String exp)
exp - The expression.
URITemplateSyntaxException - If the expression could not be parsed as a valid token.
public static Token newToken(String exp,
TokenFactory.Syntax syntax)
exp - The expression.
URITemplateSyntaxException - If the expression could not be parsed as a valid token.public static TokenFactory getInstance()
public static TokenFactory getInstance(TokenFactory.Syntax syntax)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||