java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com.e1c.g5.dt.internal.applications.ui.editor.infobases.aef.model.InfobasePublicationsModel
All Implemented Interfaces:
IModel, IValidable, ITreeModel

public class InfobasePublicationsModel extends Model implements ITreeModel
The tree model for publications.
  • Constructor Details

  • Method Details

    • dispose

      public void dispose()
      Description copied from interface: IModel
      Disposes this model.
      Specified by:
      dispose in interface IModel
      Overrides:
      dispose in class Model
    • getChange

      public IChange getChange()
      Specified by:
      getChange in interface IModel
      Returns:
      change describing the modifications done to the model.
    • getElements

      public Stream<Object> getElements()
      Description copied from interface: ITreeModel
      Returns a stream of top level objects
      Specified by:
      getElements in interface ITreeModel
      Returns:
      a stream of top level objects, never null.
    • getChildren

      public Stream<Object> getChildren(Object element)
      Description copied from interface: ITreeModel
      Returns a stream of children objects of the specified parent element.
      Specified by:
      getChildren in interface ITreeModel
      Parameters:
      element - the parent object to get its children, cannot be null.
      Returns:
      a stream of children objects, never null.
    • hasChildren

      public boolean hasChildren(Object element)
      Description copied from interface: ITreeModel
      Returns true if the specfied element has children.
      Specified by:
      hasChildren in interface ITreeModel
      Parameters:
      element - the element to test, cannot be null.
      Returns:
      true if the specfied element has children, false - otherwise.
      See Also:
    • getParent

      public Optional<Object> getParent(Object element)
      Description copied from interface: ITreeModel
      Returns the parent object for the specified element.
      Specified by:
      getParent in interface ITreeModel
      Parameters:
      element - the element to get its parent, cannot be null.
      Returns:
      the parent object or Optional.empty() if there is no parent element, never null