Class BookmarkFactory

java.lang.Object
nz.org.riskscape.engine.ini.IdentifiedObjectBuilder.Base<nz.org.riskscape.engine.data.Bookmark>
nz.org.riskscape.engine.data.BookmarkFactory
All Implemented Interfaces:
IdentifiedObjectBuilder<nz.org.riskscape.engine.data.Bookmark>

public class BookmarkFactory extends IdentifiedObjectBuilder.Base<nz.org.riskscape.engine.data.Bookmark>

Factory for creating Bookmarks from files in ini format.

  • Field Details

  • Constructor Details

    • BookmarkFactory

      public BookmarkFactory()
  • Method Details

    • uriFromLocation

      public static nz.org.riskscape.problem.ResultOrProblems<URI> uriFromLocation(String location, URI relativeTo)
    • build

      public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.data.Bookmark> build(String id, nz.org.riskscape.config.ConfigSection section)

      Builds a bookmark from an ini file section.

      Parameters:
      id - of the bookmark to build
      section - config section to build bookmark from
      Returns:
      bookmark or encountered problems