com.atlassian.confluence.labels
Class LabelParser
java.lang.Object
com.atlassian.confluence.labels.LabelParser
- public class LabelParser
- extends Object
The Label parser understands the formatting of label strings.
The following are considered valid label strings.
my:label
: a user label owned by the currently logged in user. If no user is logged in, this
defaults to the global label of the same name..
label
: a global label.
~username:label
: a user label owned by the specified user.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INVALID_CHARACTERS
public static final char[] INVALID_CHARACTERS
PERSONAL_LABEL_PREFIX
public static final String PERSONAL_LABEL_PREFIX
- See Also:
- Constant Field Values
TEAM_LABEL_PREFIX
public static final String TEAM_LABEL_PREFIX
- See Also:
- Constant Field Values
LabelParser
public LabelParser()
parse
public static ParsedLabelName parse(String labelString)
getInvalidCharactersAsString
public static String getInvalidCharactersAsString()
create
public static ParsedLabelName create(String labelName,
String userName)
create
public static ParsedLabelName create(Label label)
render
public static String render(Label label)
render
public static String render(ParsedLabelName parsedLabelName)