public interface ILfnResourceMetadataResolver
null
for resource IDs it cannot resolve.
A typical use case is when you're creating asset metadata and coverage metadata using a
ALfnResourceMetadata.Builder
.
In this case, you could implement a resolver based on a map with asset ID as key and asset metadata as value.
Such a resolver can then be given to the coverage metadata builder to compute auto-defaults.
Another use case is when you're loading all resource metadata from an existing Tile Store.
In this case, you could implement a resolver based on
ALfnTileStore.getResourceMetadata(String)
.
Such a resolver can then be given to a TLfnThemeMetadataTraverser
to
traverse a theme resource's tree.
TLfnThemeMetadataTraverser
,
TLfnRasterCoverageMetadata.newBuilder(ILfnResourceMetadataResolver)
Modifier and Type | Method and Description |
---|---|
<R extends ALfnResourceMetadata> |
getResourceMetadata(String aId)
Gets the metadata for a resource with a given ID, or
null if none. |
<R extends ALfnResourceMetadata> R getResourceMetadata(String aId) throws IOException, TLfnServiceException
null
if none.aId
- the resource IDnull
if noneIOException
TLfnServiceException