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>
| Modifier and Type | Method and Description |
|---|---|
U |
serialize(T resource)
Transforms a Resource Reference into some other representation.
|
U serialize(T resource) throws SerializeResourceReferenceException, UnsupportedResourceReferenceException
resource - the Resource Reference to transformSerializeResourceReferenceException - 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 serializeCopyright © 2004–2016 XWiki. All rights reserved.