Class AbstractVFSSource

java.lang.Object
com.tccc.kos.commons.core.vfs.AbstractVFSSource
All Implemented Interfaces:
VFSSource
Direct Known Subclasses:
FilesystemVFSSource, KabVFSSource, PathRewritingVFSSource, ProxyVFSSource, StackedVFSSource, VFS

public abstract class AbstractVFSSource extends Object implements VFSSource
Abstract base class for all concrete VFSSource classes.
Since:
1.0
Version:
2022-08-30
  • Constructor Details

    • AbstractVFSSource

      public AbstractVFSSource()
  • Method Details

    • getParent

      public VFSParent getParent()
      Retrieves ths VFS parent.
      Specified by:
      getParent in interface VFSSource
      Returns:
      the VFS parent
    • setParent

      public void setParent(VFSParent parent)
      Sets the VFS parent.
      Specified by:
      setParent in interface VFSSource
      Parameters:
      parent - the VFS parent
    • setEnabled

      public void setEnabled(boolean enabled)
      Set the enabled flag for the source. Sources that are disabled will not return any content but are still linked to the VFS graph.
      Parameters:
      enabled - true to enable the source
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: VFSSource
      Return true if the source is enabled. Disabled sources will not be accessible.
      Specified by:
      isEnabled in interface VFSSource