Package org.xwiki.resource
Interface ResourceReferenceSerializer<T extends ResourceReference,U>
-
- Type Parameters:
T
- the type of the resource reference to serializeU
- the return type (e.g. a URL, a String, etc)
@Role public interface ResourceReferenceSerializer<T extends ResourceReference,U>
Transforms a Resource Reference into some other representation (eg URL).- Since:
- 6.1M2
- Version:
- $Id: abb47926c20b75a914c2419f81131cdfc4eb9e28 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description U
serialize(T resource)
Transforms a Resource Reference into some other representation.
-
-
-
Method Detail
-
serialize
U serialize(T resource) throws SerializeResourceReferenceException, UnsupportedResourceReferenceException
Transforms a Resource Reference into some other representation.- Parameters:
resource
- the Resource Reference to transform- Returns:
- the new representation
- Throws:
SerializeResourceReferenceException
- if there was an error while serializing the XWiki Resource objectUnsupportedResourceReferenceException
- if the passed representation points to an unsupported Resource Reference type that we don't know how to serialize
-
-