Skip to main content

Inventory.Component

Class Inventory.Component Extends (%Persistent, %XML.Adaptor) [ Inheritance = right ]

Component is a superclass of all types of components discoverable in an inventory scan. A component represents a named object in a system installation such as a file, database or routine.

Components maintain a relationship with an optional parent component and any sub-components. For example, files are subcomponents of directories.

Component data is stored in the %SYS database, and may be exported into an XML representation.

Parameters

XMLNAME

Parameter XMLNAME = "Component";

The element name used in the XML representation of the component.

XMLTYPE

Parameter XMLTYPE = "Component";

The identifier used to distinguish the type of this component in the XML representation.

Properties

Name

Property Name As %String(COLLATION = "EXACT", MAXLEN = 512);

The name of this component, which distinguishes it from other components of the same type.

ParentComponent

Relationship ParentComponent As Inventory.Component [ Cardinality = one, Inverse = SubComponents ];

The parent component of this component.

Scan

Property Scan As Scan(XMLREFERENCE = "ID") [ Required ];

The Scan which found this component.

SubComponents

Relationship SubComponents As Component [ Cardinality = many, Inverse = ParentComponent ];

The subcomponents of this component.