public interface ILcdOGCModelDecoderFactory
ILcdModelDecoder
for a given source.Modifier and Type | Method and Description |
---|---|
default ILcdModelDecoder |
createModelDecoder(ILcdDataSource aDataSource)
Creates a new
ILcdModelDecoder that can decode the specified data source. |
ILcdModelDecoder |
createModelDecoder(String aSource)
Creates a new
ILcdModelDecoder that can decode the specified
source. |
ILcdModelDecoder createModelDecoder(String aSource) throws IllegalArgumentException
ILcdModelDecoder
that can decode the specified
source. Note that models produced by this decoder must implement
ILcd2DBoundsIndexedModel
, and the model descriptor must be an
ILcdFeaturedDescriptor
.aSource
- the source to obtain a ILcdModelDecoder
for.ILcdModelDecoder
that can decode the specified source.IllegalArgumentException
- if there is no ILcdModelDecoder
known for this source.default ILcdModelDecoder createModelDecoder(ILcdDataSource aDataSource) throws IllegalArgumentException
Creates a new ILcdModelDecoder
that can decode the specified data source.
By default, this method checks if the given ILcdDataSource
is a
TLcdDataSource
. If so, it delegates to the createModelDecoder(String)
method. If not, an IllegalArgumentException
is thrown.
aDataSource
- the data source to obtain a ILcdModelDecoder
for.ILcdModelDecoder
that can decode the specified source.IllegalArgumentException
- if there is no ILcdModelDecoder
known for this source.