Home > Class Reference > %SYS namespace > Inventory.DirectoryComponent

Inventory.DirectoryComponent

persistent class Inventory.DirectoryComponent extends Inventory.Component

SQL Table Name: Inventory.DirectoryComponent

DirectoryComponent is a subclass of Component. An instance represents an operating system directory.

It contains references to the FileComponents and DirectoryComponents representing the files and subdirectories in the directory as subcomponents.

Method Inventory (Including Private)

Parameters

parameter XMLNAME = DirectoryComponent;
The element name used in the XML representation of the component.
parameter XMLTYPE = DirectoryComponent;
The identifier used to distinguish the type of this component in the XML representation.

Methods (Including Private)

method Init(scan As Scan, directoryName As %String) as DirectoryComponent [ Language = objectscript ]
Initializes and saves this DirectoryComponent, recording scan as the Scan property, and scanning directoryName for its subdirectories and files.

The saved DirectoryComponent is returned.

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)

Storage

Gray indicates storage defined by superclasses.

Storage Model: Storage (Inventory.Component)

^SYS("Inventory","ComponentD")(ID)
=
%%CLASSNAME
Name
ParentComponent
Scan

Storage Model: Storage (Inventory.Component)

^SYS("Inventory","ComponentD")(ID,"SubComponents",n)
=
SubComponents(n)
Feedback