com.atlassian.confluence.labels
Class LabelParser

java.lang.Object
  extended bycom.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.


Field Summary
static char[] INVALID_CHARACTERS
           
static String PERSONAL_LABEL_PREFIX
           
static String TEAM_LABEL_PREFIX
           
 
Constructor Summary
LabelParser()
           
 
Method Summary
static ParsedLabelName create(Label label)
           
static ParsedLabelName create(String labelName, String userName)
           
static String getInvalidCharactersAsString()
           
static ParsedLabelName parse(String labelString)
           
static String render(Label label)
           
static String render(ParsedLabelName parsedLabelName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

LabelParser

public LabelParser()
Method Detail

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)


Confluence is developed by Atlassian.