Class LinksAppearance.Builder

  • Enclosing class:
    LinksAppearance

    public static class LinksAppearance.Builder
    extends Object
    The LinksAppearance builder class.
    • Method Detail

      • property

        public LinksAppearance.Builder property​(String property)
        Adds a property to the current attribute.
        Parameters:
        property - the property to add.
        Returns:
        this builder instance.
      • tag

        public LinksAppearance.Builder tag​(String identifier,
                                           String source,
                                           String label)
        Adds a tag decorator to the current attribute.
        Parameters:
        identifier - decorator's identifier.
        source - the name/class of the tag to decorate the link.
        label - decorator's label.
        Returns:
        this builder instance.
      • icon

        public LinksAppearance.Builder icon​(String identifier,
                                            URI source,
                                            String label)
        Adds an icon decorator to the current attribute.
        Parameters:
        identifier - decorator's identifier.
        source - the icon URI to decorate the link.
        label - decorator's label.
        Returns:
        this builder instance.
      • attribute

        public LinksAppearance.Builder attribute​(String title,
                                                 String comment)
        Creates a new attribute.
        Parameters:
        title - attribute's title.
        comment - attribute's comment.
        Returns:
        this builder instance.
      • attribute

        public LinksAppearance.Builder attribute​(String title)
        Creates a new attribute.
        Parameters:
        title - attribute's title.
        Returns:
        this builder instance.
      • build

        public LinksAppearance build()
        Creates the LinksAppearance instance.
        Returns:
        the built instance.