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".
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.
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.