Package org.xwiki.model.reference
Interface PageReferenceResolver<T>
-
- Type Parameters:
T
- the type of the representation (eg a String)
@Role public interface PageReferenceResolver<T>
Resolve a Page reference defined in a given representation into a validatedPageReference
object, ie with valid values and a valid hierarchy (eg a Page reference must have a parent which is a space reference, reference values must not be null, etc).- Since:
- 10.6RC1
- Version:
- $Id: 9cc623b2aa62926e9f8a304d3c205f18ee6b27b7 $
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterizedType
TYPE_REFERENCE
Type instance forPageReferenceResolver<EntityReference>
.static ParameterizedType
TYPE_STRING
Type instance forPageReferenceResolver<String>
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PageReference
resolve(T pageReferenceRepresentation, Object... parameters)
-
-
-
Field Detail
-
TYPE_STRING
static final ParameterizedType TYPE_STRING
Type instance forPageReferenceResolver<String>
.
-
TYPE_REFERENCE
static final ParameterizedType TYPE_REFERENCE
Type instance forPageReferenceResolver<EntityReference>
.
-
-
Method Detail
-
resolve
PageReference resolve(T pageReferenceRepresentation, Object... parameters)
- Parameters:
pageReferenceRepresentation
- the representation of a page reference (eg as a String)parameters
- optional parameters. Their meaning depends on the resolver implementation- Returns:
- the valid resolved page reference as an Object
-
-