public class ParsedLabelName extends Object
Constructor and Description |
---|
ParsedLabelName(String name) |
ParsedLabelName(String name,
@Nullable String owner) |
ParsedLabelName(String name,
@Nullable 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.
|
@Nullable 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(@Nullable 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 @Nullable String getOwner()
public String getPrefix()
public void setPrefix(String prefix)
@EnsuresNonNullIf(expression="getOwner()", result=true) public boolean isOwnerSpecified()
public Label addLabel(Labelable labelable, LabelManager labelManager)
public Label toLabel()
public Label toLabel(@Nullable ConfluenceUser user)
user
- For personal or global labels, overrides the original user of the label.Copyright © 2003–2021 Atlassian. All rights reserved.