Package org.xwiki.model.reference
Interface SpaceReferenceResolver<T>
-
- Type Parameters:
T
- the type of the representation (eg a String)
@Role public interface SpaceReferenceResolver<T>
Resolve a Space reference defined in a given representation into a validatedSpaceReference
object, ie with valid values and a valid hierarchy (eg a Space reference must have a parent which is a space reference or a wiki reference, reference values must not be null, etc).- Since:
- 7.2M1
- Version:
- $Id: 27afc8a6f0f7d9b17646ca271fb0aca91f5af64a $
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterizedType
TYPE_REFERENCE
Type instance forSpaceReferenceResolver<EntityReference>
.static ParameterizedType
TYPE_STRING
Type instance forSpaceReferenceResolver<String>
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpaceReference
resolve(T spaceReferenceRepresentation, Object... parameters)
-
-
-
Field Detail
-
TYPE_STRING
static final ParameterizedType TYPE_STRING
Type instance forSpaceReferenceResolver<String>
.
-
TYPE_REFERENCE
static final ParameterizedType TYPE_REFERENCE
Type instance forSpaceReferenceResolver<EntityReference>
.
-
-
Method Detail
-
resolve
SpaceReference resolve(T spaceReferenceRepresentation, Object... parameters)
- Parameters:
spaceReferenceRepresentation
- the representation of a space reference (eg as a String)parameters
- optional parameters. Their meaning depends on the resolver implementation- Returns:
- the valid resolved space reference as an Object
-
-