Package org.xwiki.model.reference
Interface PageObjectReferenceResolver<T>
-
- Type Parameters:
T
- the type of the representation (e.g. a String)
@Role public interface PageObjectReferenceResolver<T>
Resolve an Object reference defined in a given representation into a validatedPageObjectReference
object, i.e. with valid values and a valid hierarchy (e.g. an Object reference must have a parent which is a document reference, reference values must not be null, etc).- Since:
- 10.6RC1
- Version:
- $Id: b2b3e99c7f4974b6b5f6ce57b8cbaa9054a7c51c $
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterizedType
TYPE_REFERENCE
Type instance forPageObjectReferenceResolver<EntityReference>
.static ParameterizedType
TYPE_STRING
Type instance forPageObjectReferenceResolver<String>
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PageObjectReference
resolve(T objectReferenceRepresentation, Object... parameters)
-
-
-
Field Detail
-
TYPE_STRING
static final ParameterizedType TYPE_STRING
Type instance forPageObjectReferenceResolver<String>
.
-
TYPE_REFERENCE
static final ParameterizedType TYPE_REFERENCE
Type instance forPageObjectReferenceResolver<EntityReference>
.
-
-
Method Detail
-
resolve
PageObjectReference resolve(T objectReferenceRepresentation, Object... parameters)
- Parameters:
objectReferenceRepresentation
- the representation of an object reference (e.g. as a String)parameters
- optional parameters. Their meaning depends on the resolver implementation- Returns:
- the valid resolved object reference as an object
-
-