T - the object to transform into a XWiki Resource Reference@Role
@Unstable
public interface ResourceReferenceResolver<T>
ResourceReference instance.| Modifier and Type | Field and Description |
|---|---|
static ParameterizedType |
TYPE_URL
Type instance for
ResourceReferenceResolver<URL>. |
| Modifier and Type | Method and Description |
|---|---|
ResourceReference |
resolve(T representation,
Map<String,Object> parameters)
Transforms some representation of a XWiki Resource Reference into a
ResourceReference instance. |
static final ParameterizedType TYPE_URL
ResourceReferenceResolver<URL>.ResourceReference resolve(T representation, Map<String,Object> parameters) throws CreateResourceReferenceException, UnsupportedResourceReferenceException
ResourceReference instance.representation - the object to transform into a ResourceReference instanceparameters - generic parameters that depend on the underlying implementation. In order to know what to pass
you need to check the documentation for the implementation you're using.ResourceReference instanceCreateResourceReferenceException - if there was an error while creating the XWiki Resource objectUnsupportedResourceReferenceException - if the passed representation points to an unsupported Resource
Reference type that we don't know how to resolveCopyright © 2004–2015 XWiki. All rights reserved.