Class ParsedLabelName

java.lang.Object
com.atlassian.confluence.labels.ParsedLabelName

public class ParsedLabelName extends Object
The label reference object encapsulates the unique string representation of a label within confluence.
  • Constructor Details

    • ParsedLabelName

      public ParsedLabelName(String name)
    • ParsedLabelName

      public ParsedLabelName(String name, @Nullable String owner)
    • ParsedLabelName

      public ParsedLabelName(String name, @Nullable String owner, String prefix)
  • Method Details

    • getName

      public String getName()
      The label name.
    • getOwner

      public @Nullable String getOwner()
      The name of the labels owner, or null if this label does not have an owner.
    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • isOwnerSpecified

      @EnsuresNonNullIf(expression="getOwner()", result=true) public boolean isOwnerSpecified()
    • addLabel

      public Label addLabel(Labelable labelable, LabelManager labelManager)
    • toLabel

      public Label toLabel()
      Creates a personal, team or global Label object from the parsed name.
    • toLabel

      public Label toLabel(@Nullable ConfluenceUser user)
      Creates a personal, team or global Label object from the parsed name with the given owner.
      Parameters:
      user - For personal or global labels, overrides the original user of the label.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object