public class CombinedLabel extends java.lang.Object implements DisplayableLabel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADD_SEPARATOR |
Constructor and Description |
---|
CombinedLabel(java.util.List labels) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the label's name only.
|
java.lang.String |
getRealTitle()
Return the title as a combination of the namespace and the label name.
|
java.lang.String |
getUrlPath()
Generates the url path for a label.
|
java.lang.String |
getUrlPath(java.lang.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 java.lang.String ADD_SEPARATOR
public boolean isRealTitleSafeForUrl()
DisplayableLabel
eg. my:foo is safe, perc% is not safe. chicken+cheese is safe in a "combined" label.
isRealTitleSafeForUrl
in interface DisplayableLabel
public java.lang.String getName()
DisplayableLabel
eg. label name for label my:foo is "foo".
getName
in interface DisplayableLabel
public java.lang.String getUrlPath()
DisplayableLabel
getUrlPath
in interface DisplayableLabel
public java.lang.String getUrlPath(java.lang.String spaceKey)
DisplayableLabel
DisplayableLabel.getUrlPath()
is called.getUrlPath
in interface DisplayableLabel
public java.lang.String getRealTitle()
DisplayableLabel
getRealTitle
in interface DisplayableLabel
Copyright © 2003-2014 Atlassian. All Rights Reserved.