org.xwiki.model.reference
Interface EntityReferenceResolver<T>
- Type Parameters:
T - the object to resolve into an Entity Reference
@Role
public interface EntityReferenceResolver<T>
Resolve an Entity reference defined in a given representation into a validated EntityReference object, ie
with valid values and a valid hierarchy (eg a Document reference must have a parent which is a space reference,
reference values must not be null, etc).
- Since:
- 2.2M1
- Version:
- $Id: 3ac5dceb43e8e9b62d6d8df29ba15c19a51944a1 $
TYPE_STRING
static final ParameterizedType TYPE_STRING
- Type instance for EntityReferenceResolver.
- Since:
- 4.0M1
TYPE_REFERENCE
static final ParameterizedType TYPE_REFERENCE
- Type instance for EntityReferenceResolver.
- Since:
- 4.0M1
resolve
EntityReference resolve(T entityReferenceRepresentation,
EntityType type,
Object... parameters)
- Parameters:
entityReferenceRepresentation - the representation of an entity reference (eg as a String)type - the type of the Entity (Document, Space, Attachment, Wiki, etc) to resolve out of the representationparameters - optional parameters. Their meaning depends on the resolver implementation
- Returns:
- the valid resolved reference as an Object
Copyright © 2004–2014 XWiki. All rights reserved.