DocBook|Search
Class Reference
%CSP.CompilerContext
   
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%CSP] >  [CompilerContext]
Private  Storage  

class %CSP.CompilerContext extends %RegisteredObject

This class represents the context of the current CSP compile. This class is primarily a set of name/value pairs where the names can be thought of as "properties".

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
6 13


Summary

Properties
InScript IsBasic PageLanguage

Methods
%%OIDGet %AddToSaveSet %ClassIsLatestVersion %ClassName
%ConstructClone %DispatchClassMethod %DispatchGetModified %DispatchGetProperty
%DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty
%Extends %GetParameter %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject Get GetByKey IsDefined
IsDefinedByKey Next NextByKey RemoveByKey
Set SetByKey clear remove


Properties

• property InScript as %Boolean;
The InScript property is true inside of an unrecognized script tag.
• property IsBasic as %Boolean;
IsBasic is true (=1) if the current CSP page is written in either Cache Basic or MV Basic. The IsBasic should not be modified by user code.
• property PageLanguage as %String;
PageLanguage is language used to implement the current CSP page. Possible values are "cache", "basic" and "mvbasic". The PageLanguage should not be modified by user code.

Methods

• final method Get(property As %String, default As %String = "") as %String
Return the value of property property. If the property is not defined, returns a null string ("").
• final method GetByKey(key As %String, name As %String, default As %String = "") as %String
Return the value associated with key and name. All key's used by CSP rules begin with "%". If the value is not defined, returns a null string ("").
• final method IsDefined(property As %String) as %Boolean
Tests if property property is defined.
• final method IsDefinedByKey(key As %String, name As %String) as %Boolean
Test if the value associated with key and name is defined. All key's used by CSP rules begin with "%".
• final method Next(property As %String) as %String
Get the name of the next property.
• final method NextByKey(key As %String, name As %String) as %String
Get the next name for key.
• final method RemoveByKey(key As %String, name As %String)
Remove the value associated with key and name. All key's used by CSP rules begin with "%".
• final method Set(property As %String, value As %String)
Set the value of property property to value.
• final method SetByKey(key As %String, name As %String, value As %String)
Set the value associated with key and name. All key's used by CSP rules begin with "%".
• final method clear()
Clear the contents of this object.
• final method remove(property As %String)
Removes property property from this object.