Class TrivialModelDescriptor

  • All Implemented Interfaces:
    ModelWithDisposeInfo, FastNodeFinder.Factory, SModelInternal, SModel
    Direct Known Subclasses:
    LanguageDescriptorModelProvider.LanguageModelDescriptor

    public class TrivialModelDescriptor
    extends SModelBase
    Model openapi.SModel implementation to parasitize on (utilize) existing SModelBase and smodel.SModel classes. It takes existing SModelData and provides it to outer world through openapi.SModel. Perhaps, parts of SModelBase could move to SModelDescriptorStub, and this class could use SModelDescriptorStub then. FIXME move to [smodel] once SModelBase cease to depend on [kernel] stuff FIXME why doesn't it support add/remove root operations? Was it intentional, or just overlook?
    • Constructor Detail

      • TrivialModelDescriptor

        public TrivialModelDescriptor​(@NotNull
                                      SModel modelData)
        Parameters:
        modelData - actual model data represented with this descriptor. Note, data's modelDescriptor is set to this
    • Method Detail

      • getSModelInternal

        public SModel getSModelInternal()
        Description copied from class: SModelDescriptorStub
        Migration to 3.0. Loads and returns model data. FIXME Replace uses of this method with getSModel(), make it abstract and implement in SModelBase subclasses. The name getSModelInternal is misleading as it clashes with SModelInternal interface this class implements. Though getSModel is not much better, at least in the context of SModelDescriptor it makes more sense.
        Specified by:
        getSModelInternal in class SModelDescriptorStub