public class CombinedLabel extends Object implements DisplayableLabel
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_SEPARATOR |
| Constructor and Description |
|---|
CombinedLabel(List labels) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the label's name only.
|
String |
getRealTitle()
Return the title as a combination of the namespace and the label name.
|
String |
getUrlPath()
Generates the url path for a label.
|
String |
getUrlPath(String spaceKey)
Generates the url path for a label in the context of a given space i.e.
|
boolean |
isRealTitleSafeForUrl()
Returns true if the label's title is safe to pass in the URL.
|
public static final String ADD_SEPARATOR
public CombinedLabel(List labels)
public boolean isRealTitleSafeForUrl()
DisplayableLabeleg. my:foo is safe, perc% is not safe. chicken+cheese is safe in a "combined" label.
isRealTitleSafeForUrl in interface DisplayableLabelpublic String getName()
DisplayableLabeleg. label name for label my:foo is "foo".
getName in interface DisplayableLabelpublic String getUrlPath()
DisplayableLabelgetUrlPath in interface DisplayableLabelpublic String getUrlPath(String spaceKey)
DisplayableLabel
If no space if provided, DisplayableLabel.getUrlPath() is called.
getUrlPath in interface DisplayableLabelpublic String getRealTitle()
DisplayableLabelgetRealTitle in interface DisplayableLabelCopyright © 2003–2020 Atlassian. All rights reserved.