public static enum TokenFactory.Syntax extends Enum<TokenFactory.Syntax>
Enum Constant and Description |
---|
DRAFTX
Use a syntax based on the draft as of 29 October 2009.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Token |
newExpansion(String exp)
Generates a template expansion token corresponding to the specified expression.
|
static TokenFactory.Syntax |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenFactory.Syntax[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenFactory.Syntax DRAFTX
public static TokenFactory.Syntax[] values()
for (TokenFactory.Syntax c : TokenFactory.Syntax.values()) System.out.println(c);
public static TokenFactory.Syntax valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract Token newExpansion(String exp)
exp
- The expression within the curly brackets {}.URITemplateSyntaxException
- If the expression could not be parsed as a valid token.Copyright © 2016 Allette Systems. All rights reserved.