Interface ILcdOGCModelDecoderFactory

All Known Subinterfaces:
ILcdModelDecoderFactory
All Known Implementing Classes:
TLcdModelDecoderFactory, TLcdOGCModelDecoderFactory

public interface ILcdOGCModelDecoderFactory
Interface defining the method to create a new ILcdModelDecoder for a given source.
  • Method Details

    • createModelDecoder

      ILcdModelDecoder createModelDecoder(String aSource) throws IllegalArgumentException
      Creates a new 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.
      Parameters:
      aSource - the source to obtain a ILcdModelDecoder for.
      Returns:
      a new ILcdModelDecoder that can decode the specified source.
      Throws:
      IllegalArgumentException - if there is no ILcdModelDecoder known for this source.
    • createModelDecoder

      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.

      Parameters:
      aDataSource - the data source to obtain a ILcdModelDecoder for.
      Returns:
      a new ILcdModelDecoder that can decode the specified source.
      Throws:
      IllegalArgumentException - if there is no ILcdModelDecoder known for this source.
      Since:
      2017.0