Skip to main content

%CSP.AbstractAtom

Class %CSP.AbstractAtom Extends %RegisteredObject [ Abstract, Not ProcedureBlock, System = 3 ]

The CSPAtom class represents a unit of an HTML document. A document consists of two types of atom objects: CSPTextAtom and CSPElement.

Properties

Parent

Property Parent As %CSP.AbstractAtom [ Transient ];

TagName

Property TagName As %String;

Methods

RenderStartTag

Method RenderStartTag() As %Status

Writes code into the routine builder object that will render this element. Called before children rendered.

RenderEndTag

Method RenderEndTag() As %Status

Writes code into the routine builder object that will render this element. Called after children rendered.

ValidateTag

Method ValidateTag() As %Status

WriteText

Method WriteText(line As %String, crlf As %Boolean = 0)

Generate Write command in CSP page class to write the contents of line.

WriteCSPText

Method WriteCSPText(line As %String, crlf As %Boolean = 0)

Generate Write command in CSP page class to write the contents of line with processing of ##()## and #()#.

WriteExpressionText

Method WriteExpressionText(expr As %String, crlf As %Boolean = 0)

Generate Write command in CSP page class to write the the text returned by COS expression in expr.

WriteServer

Method WriteServer(line As %String, keepTogether As %Boolean = 0)

Generate COS command in CSP page class that is in line.

WriteCSPServer

Method WriteCSPServer(line As %String, keepTogether As %Boolean = 0)

Generate COS command in CSP page class that is in line with ##()## resolved.

PushDefaultSection

Method PushDefaultSection(sectionblock As %String)

Add new default section to the top of the stack of section identifiers. The section identifier is in the form ,.

PopDefaultSection

Method PopDefaultSection()

Pop default section from the top of the stack of section identifiers. The section identifier is in the form ,.