Class Bookmark.BookmarkBuilder

java.lang.Object
nz.org.riskscape.engine.data.Bookmark.BookmarkBuilder
Enclosing class:
Bookmark

public static class Bookmark.BookmarkBuilder extends Object
  • Method Details

    • id

      Returns:
      this.
    • description

      public Bookmark.BookmarkBuilder description(String description)
      Returns:
      this.
    • format

      public Bookmark.BookmarkBuilder format(String format)
      Returns:
      this.
    • location

      public Bookmark.BookmarkBuilder location(URI location)

      Contains a potentially modified location, set to be absolute based on the location of the bookmark itself. For a bookmark from a file, it will be relative to the directory the bookmark was in.

      Returns:
      this.
    • fromURI

      public Bookmark.BookmarkBuilder fromURI(boolean fromURI)

      If true, this Bookmark has not been fetched from an identified collection, but instead constructed, probably from a URI. The id is probably the text the user supplied and the URI is going to be something that was set or synthezised on the user's behalf

      Returns:
      this.
    • build

      public Bookmark build()
    • toString

      public String toString()
      Overrides:
      toString in class Object