abstract class %XGEN.AbstractElement
extends %RegisteredObject, %XML.Adaptor
Note: This class is included because it is needed by
other parts of the library. You should not use this or any other class within
this package within your applications as a future version will
be incompatible. If you are interested in this functionality
please contact InterSystems.
This is the base class for all elements within an XGEN document.
There are 3 type of element within XGEN document:
- document: a container for the entire XGEN document. These are subclasses of %XGEN.AbstractDocument.
- sequence: a collection of one or more elements. These are subclasses of %XGEN.AbstractSequence.
- node: a single activity within an XGEN document. These are subclasses of %XGEN.AbstractNode.
See
%XGEN.AbstractDocument for an overview of XGEN.
parameter XGENDOCUMENT;
This is the name of the XGEN document class that this node belongs to.
parameter XMLIGNOREINVALIDATTRIBUTE = 0;
By setting this to 0, we disallow use of invalid attribute names.
parameter XMLIGNORENULL = 1;
By setting this 1, we ignore the difference between null and empty nodes within XGEN.
property name
as %String(MAXLEN="");
This is the logical name of this node. This provides a common way to
name elements within an XGEN document.
method %Indent(pIndent As %Integer = 0)
as %String
Helper method.
Returns a string containing the correct number of tabs for indenting code for this node.