|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Token
Defines a token in a URI pattern or template.
All tokens can be represented as a text expression which cannot be
null
.
Two tokens having the same expression are considered equal.
Method Summary | |
---|---|
String |
expression()
The expression corresponding to this token. |
boolean |
isResolvable()
Indicates whether this token can be resolved. |
boolean |
resolve(String expanded,
Map<Variable,Object> values)
Resolves the specified expanded URI part for this token. |
Methods inherited from interface org.weborganic.furi.Expandable |
---|
expand |
Method Detail |
---|
String expression()
boolean isResolvable()
A resolvable token contains variables which can be resolved.
true
if variables can be resolved from the specified pattern;
false
otherwise.boolean resolve(String expanded, Map<Variable,Object> values)
The resolution process requires all variables referenced in the token to be mapped to the value that is present in the expanded URI data.
expanded
- The part of the URI that correspond to an expanded version of the token.values
- The variables mapped to their values as a result of resolution.
true
this operation was successful; false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |