public static enum TokenFactory.Syntax extends Enum<TokenFactory.Syntax>
| Enum Constant and Description |
|---|
DRAFT3
Use the syntax defined in Draft 3 of the URI templates.
|
DRAFTX
Use a syntax based on the draft as of 29 October 2009.
|
PAGESEEDER
Use a syntax currently used in PageSeeder and based on what was suggested
by Roy T Fielding on the W3C URI listing in October 2008.
|
| 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 DRAFT3
public static final TokenFactory.Syntax PAGESEEDER
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 © 2021. All rights reserved.