Package org.xwiki.model.reference
Interface PageAttachmentReferenceResolver<T>
-
- Type Parameters:
T
- the type of the representation (eg a String)
@Role public interface PageAttachmentReferenceResolver<T>
Resolve an Attachment reference defined in a given representation into a validatedPageAttachmentReference
object, ie with valid values and a valid hierarchy (eg an Attachment reference must have a parent which is a page reference, reference values must not be null, etc).- Since:
- 10.6RC1
- Version:
- $Id: d171ffeac924ae5ea5a14ea9e7823e932dd89427 $
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterizedType
TYPE_REFERENCE
Type instance forPageAttachmentReferenceResolver<EntityReference>
.static ParameterizedType
TYPE_STRING
Type instance forPageAttachmentReferenceResolver<String>
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PageAttachmentReference
resolve(T attachmentReferenceRepresentation, Object... parameters)
-
-
-
Field Detail
-
TYPE_STRING
static final ParameterizedType TYPE_STRING
Type instance forPageAttachmentReferenceResolver<String>
.
-
TYPE_REFERENCE
static final ParameterizedType TYPE_REFERENCE
Type instance forPageAttachmentReferenceResolver<EntityReference>
.
-
-
Method Detail
-
resolve
PageAttachmentReference 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
-
-