PropertyClass
Usage
To add property parameters to this class, use the following syntax:
Class PropClass.MyClass Extends %RegisteredObject [ PropertyClass = PropClass.MyPropertyClass ] { //class members }
Where propertyclasslist is one of the following:
A full class name, including all packages. For example:
[ PropertyClass = PropClass.MyPropertyClass ]
Copy code to clipboardA comma-separated list of class names, enclosed in parentheses.
Details
If you need to add custom property parameters, do the following:
Define and compile a class that defines one or more class parameters. For example:
Class PropClass.MyPropertyClass { Parameter MYPARM As %String = "XYZ"; }
Copy code to clipboardThese class parameters become property parameters in the next step.
In the class that defines the properties, specify the PropertyClass keyword.
Effect on Subclasses
Subclasses inherit the custom behavior added by this keyword. If the subclass specifies a value for the keyword, that value specifies an additional class or classes that specify parameters for properties of this class.
See Also
“Class Definitions” in this book
“Defining and Compiling Classes” in Using Caché Objects
“Introduction to Compiler Keywords” in Using Caché Objects