Package nz.org.riskscape.engine.data
Class Bookmark.BookmarkBuilder
java.lang.Object
nz.org.riskscape.engine.data.Bookmark.BookmarkBuilder
- Enclosing class:
- Bookmark
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
description
(String description) fromURI
(boolean fromURI) If true, this Bookmark has not been fetched from an identified collection, but instead constructed, probably from a URI.Contains a potentially modified location, set to be absolute based on the location of the bookmark itself.toString()
-
Method Details
-
id
- Returns:
this
.
-
description
- Returns:
this
.
-
format
- Returns:
this
.
-
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
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
-
toString
-