T- the type of the resource reference to serialize
U- the return type (e.g. a URL, a String, etc)
@Role public interface ResourceReferenceSerializer<T extends ResourceReference,U>
U serialize(T resource) throws SerializeResourceReferenceException, UnsupportedResourceReferenceException
resource- the Resource Reference to transform
SerializeResourceReferenceException- if there was an error while serializing the XWiki Resource object
UnsupportedResourceReferenceException- if the passed representation points to an unsupported Resource Reference type that we don't know how to serialize
Copyright © 2004–2021 XWiki. All rights reserved.