Package org.xwiki.model.reference
Interface PageObjectPropertyReferenceResolver<T>
-
- Type Parameters:
T
- the type of the representation (e.g. a String)
@Role public interface PageObjectPropertyReferenceResolver<T>
Resolve a Property reference defined in a given representation into a validatedPageObjectPropertyReference
object, i.e. with valid values and a valid hierarchy (e.g. a Property reference must have a parent which is an object reference, reference values must not be null, etc).- Since:
- 10.6RC1
- Version:
- $Id: 071d7e7ace4c4041b36d648ea41c47ae138e2176 $
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterizedType
TYPE_REFERENCE
Type instance forPageObjectPropertyReferenceResolver<EntityReference>
.static ParameterizedType
TYPE_STRING
Type instance forPageObjectPropertyReferenceResolver<String>
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PageObjectPropertyReference
resolve(T propertyReferenceRepresentation, Object... parameters)
-
-
-
Field Detail
-
TYPE_STRING
static final ParameterizedType TYPE_STRING
Type instance forPageObjectPropertyReferenceResolver<String>
.
-
TYPE_REFERENCE
static final ParameterizedType TYPE_REFERENCE
Type instance forPageObjectPropertyReferenceResolver<EntityReference>
.
-
-
Method Detail
-
resolve
PageObjectPropertyReference resolve(T propertyReferenceRepresentation, Object... parameters)
- Parameters:
propertyReferenceRepresentation
- 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
-
-