Package nz.org.riskscape.engine.data
Interface BookmarkResolvers
- All Superinterfaces:
IdentifiedCollection<BookmarkResolver>
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.IdentifiedCollection
IdentifiedCollection.Base<T extends Identified> -
Method Summary
Modifier and TypeMethodDescription<T> ResultOrProblems<T>getData(Bookmark bookmark, BindingContext context, Class<T> requiredType) Resolves aBookmarkand fetches the data from theResolvedBookmark.resolve(Bookmark bookmark, BindingContext context) Resolves aBookmarkwithout doing any error checking beyond asserting that aBookmarkResolverappears to be able to access the data behind thisBookmark.resolveAndValidate(Bookmark bookmark, BindingContext context, Class<?> requiredType) Alternative to getData that returns theResolvedBookmarkrather than the given data.Methods inherited from interface nz.org.riskscape.engine.IdentifiedCollection
add, add, add, addAll, addAll, clear, containsKey, get, get, getAll, getAllProblems, getCollectionClass, getOr, getReferences, getResult, getSimilarIds, isEmpty, remove
-
Method Details
-
resolve
Resolves a
Bookmarkwithout doing any error checking beyond asserting that aBookmarkResolverappears to be able to access the data behind thisBookmark. -
getData
Resolves a
Bookmarkand fetches the data from theResolvedBookmark.- Parameters:
bookmark- to resolvecontext- to bind any bookmark parameters with- Returns:
- the result of
ResolvedBookmark.getData(Class), or empty if the data can not be accessed from theResolvedBookmark. Any problems will be wrapped with a foundWith problem with the bookmark as context
-
resolveAndValidate
ResultOrProblems<ResolvedBookmark> resolveAndValidate(Bookmark bookmark, BindingContext context, Class<?> requiredType) Alternative to getData that returns the
ResolvedBookmarkrather than the given data. The data is still accessed, and any errors fetching it will be returned instead of the ResolvedBookmark.- Returns:
- Any problems will be wrapped with a foundWith problem with the bookmark as context
-
getSupportedFormats
- Returns:
- A list of all the supported bookmark formats
-