Package org.xwiki.model.reference
Interface EntityReferenceSerializer<T>
-
- Type Parameters:
T
- the type of the new representation
@Role public interface EntityReferenceSerializer<T>
Generate a different representation of an Entity Reference (eg as a String).- Since:
- 2.2M1
- Version:
- $Id: e885316643243e8aef697eb3ade060f66f7ed679 $
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterizedType
TYPE_REFERENCE
Type instance forEntityReferenceSerializer<EntityReference>
.static ParameterizedType
TYPE_STRING
Type instance forEntityReferenceSerializer<String>
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
serialize(EntityReference reference, Object... parameters)
Serialize an entity reference into a new representation of typeT
.
-
-
-
Field Detail
-
TYPE_STRING
static final ParameterizedType TYPE_STRING
Type instance forEntityReferenceSerializer<String>
.- Since:
- 4.0M1
-
TYPE_REFERENCE
static final ParameterizedType TYPE_REFERENCE
Type instance forEntityReferenceSerializer<EntityReference>
.- Since:
- 4.0M1
-
-
Method Detail
-
serialize
T serialize(EntityReference reference, Object... parameters)
Serialize an entity reference into a new representation of typeT
.- Parameters:
reference
- the reference to serializeparameters
- optional parameters. Their meaning depends on the serializer implementation- Returns:
- the new representation (eg as a String)
-
-