Package org.xwiki.model.reference
Interface ObjectPropertyReferenceResolver<T>
-
- Type Parameters:
T
- the type of the representation (e.g. a String)
@Role public interface ObjectPropertyReferenceResolver<T>
Resolve a Property reference defined in a given representation into a validatedObjectPropertyReference
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:
- 2.3M1
- Version:
- $Id: e05bb83a0b791599bb32998eb4890e2ee0e913d5 $
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterizedType
TYPE_REFERENCE
Type instance forObjectPropertyReferenceResolver<EntityReference>
.static ParameterizedType
TYPE_STRING
Type instance forObjectPropertyReferenceResolver<String>
.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ObjectPropertyReference
resolve(T propertyReferenceRepresentation)
Deprecated.ObjectPropertyReference
resolve(T propertyReferenceRepresentation, Object... parameters)
-
-
-
Field Detail
-
TYPE_STRING
static final ParameterizedType TYPE_STRING
Type instance forObjectPropertyReferenceResolver<String>
.- Since:
- 4.0M1
-
TYPE_REFERENCE
static final ParameterizedType TYPE_REFERENCE
Type instance forObjectPropertyReferenceResolver<EntityReference>
.- Since:
- 4.0M1
-
-
Method Detail
-
resolve
@Deprecated ObjectPropertyReference resolve(T propertyReferenceRepresentation)
Deprecated.- Parameters:
propertyReferenceRepresentation
- the representation of an object reference (e.g. as a String)- Returns:
- the valid resolved object reference as an object
-
resolve
ObjectPropertyReference 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
- Since:
- 3.3M2
-
-