public class ParsedLabelName extends Object
Constructor and Description |
---|
ParsedLabelName(String name) |
ParsedLabelName(String name,
String owner) |
ParsedLabelName(String name,
String owner,
String prefix) |
Modifier and Type | Method and Description |
---|---|
Label |
addLabel(Labelable labelable,
LabelManager labelManager) |
boolean |
equals(Object obj) |
String |
getName()
The label name.
|
String |
getOwner()
The name of the labels owner, or null if this label does not have an owner.
|
String |
getPrefix() |
int |
hashCode() |
boolean |
isOwnerSpecified() |
void |
setPrefix(String prefix) |
Label |
toLabel()
Creates a personal, team or global Label object from the parsed name.
|
Label |
toLabel(ConfluenceUser user)
Creates a personal, team or global Label object from the parsed name with the given owner.
|
public ParsedLabelName(String name)
public String getName()
public String getOwner()
public String getPrefix()
public void setPrefix(String prefix)
public boolean isOwnerSpecified()
public Label addLabel(Labelable labelable, LabelManager labelManager)
public Label toLabel()
public Label toLabel(ConfluenceUser user)
user
- For personal or global labels, overrides the original user of the label.Copyright © 2003–2020 Atlassian. All rights reserved.