Class TransientModelsModule.TransientSModelDescriptor

    • Method Detail

      • getBranchSerial

        public int getBranchSerial()
      • getCurrentModelInternal

        protected SModel getCurrentModelInternal()
        Description copied from class: SModelBase
        Likely, shall return SModelData eventually
        Specified by:
        getCurrentModelInternal in class SModelBase
        Returns:
        actual model data or null if not initialized yet
      • getSModelInternal

        public final 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
      • assertCanChange

        protected void assertCanChange()
        Description copied from class: SModelDescriptorStub
        Invoked to check if it's legal to modify the model. By default, is no-op, subclasses shall override to enforce proper policy
        Overrides:
        assertCanChange in class SModelBase
      • makeRefsMature

        public void makeRefsMature()
      • forEach

        public void forEach​(@NotNull
                            BiConsumer<String,​String> action)
        Description copied from interface: ModelWithAttributes
        Iterate over all available attributes. Generally, not present attributes are not reported, however, clients shall expect null values, and implementation may report missing/deleted attributes. For now, the contract is action shall not modify attributes, we might relax this in future (i.e. iterate over a copy of internal storage), if there are scenarios we find it handy.
        Specified by:
        forEach in interface ModelWithAttributes
        Parameters:
        action - action to perform for each key-value attribute pair