Package org.xwiki.model.reference
Interface AttachmentReferenceResolver<T>
-
- Type Parameters:
T- the type of the representation (eg a String)
@Role public interface AttachmentReferenceResolver<T>Resolve an Attachment reference defined in a given representation into a validatedAttachmentReferenceobject, ie with valid values and a valid hierarchy (eg an Attachment reference must have a parent which is a document reference, reference values must not be null, etc).- Since:
- 2.2M1
- Version:
- $Id: 641b848abf1381346ad4efc16748396b900ed756 $
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterizedTypeTYPE_REFERENCEType instance forAttachmentReferenceResolver<EntityReference>.static ParameterizedTypeTYPE_STRINGType instance forAttachmentReferenceResolver<String>.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttachmentReferenceresolve(T attachmentReferenceRepresentation, Object... parameters)
-
-
-
Field Detail
-
TYPE_STRING
static final ParameterizedType TYPE_STRING
Type instance forAttachmentReferenceResolver<String>.- Since:
- 4.0M1
-
TYPE_REFERENCE
static final ParameterizedType TYPE_REFERENCE
Type instance forAttachmentReferenceResolver<EntityReference>.- Since:
- 4.0M1
-
-
Method Detail
-
resolve
AttachmentReference resolve(T attachmentReferenceRepresentation, Object... parameters)
- Parameters:
attachmentReferenceRepresentation- the representation of an attachment reference (eg as a String)parameters- optional parameters. Their meaning depends on the resolver implementation- Returns:
- the valid resolved attachment reference as an Object
-
-