Package nz.org.riskscape.engine.data
Interface BookmarkResolver
- All Superinterfaces:
Identified
A BookmarkResolver
can access the data that is being pointed to by a Bookmark
. It works with the
ResolvedBookmark
interface to return data and error messages to the user.
-
Method Summary
Modifier and TypeMethodDescriptiongetExtensions
(String format) default String
getId()
default String
getName()
resolve
(Bookmark bookmark, BindingContext context) Deprecated.Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
-
Method Details
-
resolve
- Parameters:
bookmark
- to resolvecontext
- to bind any bookmark parameters with- Returns:
- a
ResolvedBookmark
capable of returning the data being referred to, or empty if this resolver can not open the given bookmark. - Throws:
IOException
-
getFormats
- Returns:
- a set of formats that allows a user to find out what sort of resources this resolver can
turn in to
Coverage
s orRelation
s
-
getExtensions
- Returns:
- a list of file extensions that are supported by the given format.
-
getParameterSet
ParameterSet getParameterSet()- Returns:
- a list of
Parameter
s that are accepted by thisBookmarkResolver
which configure the resulting data that comes from theResolvedBookmark
that this resolver produces. EachParameter
s name maps to an unparsed option contained by theBookmark.getUnparsed()
map.
-
supportedParameters
Deprecated. -
getName
- Returns:
- an informative name for the resolver for users to identify it in debugging messages.
-
getId
- Specified by:
getId
in interfaceIdentified
- Returns:
- id
-