Class FileContainerUnit

All Implemented Interfaces:
IUnitCreator, IUserDataSupport, IUnit, IEventSource

@Ser public class FileContainerUnit extends ContainerUnit
Container units used to represent folders and files. Units and children units are created to mimic the file-system structure provided as input.
See Also:
  • Constructor Details

    • FileContainerUnit

      public FileContainerUnit(File folder, String name, IUnitProcessor unitProcessor, IUnitCreator parent, IPropertyDefinitionManager pdm)
      Create a file container unit.
      Parameters:
      folder - input folder to be processed
      name - unit name
      unitProcessor - unit processor
      parent - parent unit or artifact
      pdm - property definition manager
  • Method Details

    • process

      public boolean process(boolean processLeaves)
      Description copied from class: ContainerUnit
      Process the container.
      Overrides:
      process in class ContainerUnit
      Parameters:
      processLeaves - true to process leaf units
      Returns:
      true if processing succeeded