@Role
@Unstable
public interface MentionsFormatter
Unless you know statically the type of actor to format, MentionFormatterProvider
should be used to resolve
the formatter to use according to the type of the actor.
MentionFormatterProvider
Modifier and Type | Method and Description |
---|---|
String |
formatMention(String actorReference,
DisplayStyle style)
Format a actor mention.
|
String formatMention(String actorReference, DisplayStyle style)
The formatter takes the serialized reference of an actor and returns an user readable string.
The kind of actor handled is specific to a MentionFormatter
implementation.
actorReference
- the actor referencestyle
- the display style of the mentionCopyright © 2004–2022 XWiki. All rights reserved.