Class ParsedLabelName


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

      • ParsedLabelName

        public ParsedLabelName​(String name)
      • ParsedLabelName

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

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

      • 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()
      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object