Package nz.org.riskscape.engine.data
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 Bookmark
s from files in ini format.
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.ini.IdentifiedObjectBuilder
IdentifiedObjectBuilder.Base<T extends nz.org.riskscape.engine.Identified>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.data.Bookmark>
Builds a bookmark from an ini file section.static nz.org.riskscape.problem.ResultOrProblems<URI>
uriFromLocation
(String location, URI relativeTo) Methods inherited from class nz.org.riskscape.engine.ini.IdentifiedObjectBuilder.Base
getIdentifiedClass, getKeyword
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.ini.IdentifiedObjectBuilder
addToProject
-
Field Details
-
BOOKMARK_KEY
- See Also:
-
MAP_ATTRIBUTE_PREFIX
- See Also:
-
-
Constructor Details
-
BookmarkFactory
public BookmarkFactory()
-
-
Method Details
-
uriFromLocation
-
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 buildsection
- config section to build bookmark from- Returns:
- bookmark or encountered problems
-