T - the object to resolve into an Entity Reference@Role
public interface EntityReferenceResolver<T>
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).| Modifier and Type | Field and Description |
|---|---|
static ParameterizedType |
TYPE_REFERENCE
Type instance for
EntityReferenceResolver<EntityReference>. |
static ParameterizedType |
TYPE_STRING
Type instance for
EntityReferenceResolver<String>. |
| Modifier and Type | Method and Description |
|---|---|
EntityReference |
resolve(T entityReferenceRepresentation,
EntityType type,
Object... parameters) |
static final ParameterizedType TYPE_STRING
EntityReferenceResolver<String>.static final ParameterizedType TYPE_REFERENCE
EntityReferenceResolver<EntityReference>.EntityReference resolve(T entityReferenceRepresentation, EntityType type, Object... 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 implementationCopyright © 2004–2022 XWiki. All rights reserved.