T
- the type of the new representation@Role
public interface EntityReferenceSerializer<T>
Modifier and Type | Field and Description |
---|---|
static ParameterizedType |
TYPE_REFERENCE
Type instance for
EntityReferenceResolver<EntityReference> . |
static ParameterizedType |
TYPE_STRING
Type instance for
EntityReferenceResolver<String> . |
Modifier and Type | Method and Description |
---|---|
T |
serialize(EntityReference reference,
Object... parameters)
Serialize an entity reference into a new representation of type
T . |
static final ParameterizedType TYPE_STRING
EntityReferenceResolver<String>
.static final ParameterizedType TYPE_REFERENCE
EntityReferenceResolver<EntityReference>
.T serialize(EntityReference reference, Object... parameters)
T
.reference
- the reference to serializeparameters
- optional parameters. Their meaning depends on the serializer implementationCopyright © 2004–2021 XWiki. All rights reserved.