public interface ILcdMetadataDecoder
The TLcdISO19139MetadataDecoder
is an implementation of this interface which
allows decoding ISO-19115 metadata from an ISO-19139 XML source.
This interface is typically also implemented by a model decoder, in which case the model decoder is capable of decoding just the metadata from the model's source name without having to decode the whole model itself. Most formats already have a lot of the metadata information contained in the header, which is then decoded and represented as an ISO-19115 metadata object.
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeMetadata(java.lang.String aSourceName)
Tells whether this metadata decoder can likely decode metadata for a given source name.
|
TLcdISO19115Metadata |
decodeMetadata(java.lang.String aSourceName)
Decodes the metadata from a given source name as an ISO-19115 metadata object.
|
boolean canDecodeMetadata(java.lang.String aSourceName)
true
, it is likely that decodeMetadata(String)
will return a non-null TLcdISO19115Metadata
object,
but it is not a guarantee. The result is optimistic.
false
, it is guaranteed that decodeMetadata(String)
will return null
.
aSourceName
- the source name to decode metadata fortrue
if this metadata decoder can decode metadata for the given source name, false
otherwiseTLcdISO19115Metadata decodeMetadata(java.lang.String aSourceName) throws java.io.IOException
null
indicates that this decoder could not decode the given source name.
Note that even if canDecodeMetadata(String)
returns true
, this method may yet return null
.
aSourceName
- the source name to decode metadata fromnull
if this decoder does not support the source namejava.io.IOException