PropertyClass - addIntegerEnumProperty_1
PropertyClass - addIntegerEnumProperty
Description :
This command adds a new integer enumeration property to a specified class. If such a property already exists, the command fails.
Property names or values with spaces must be wrapped with quotes and escaped with a backslash, using a format like "\"prop name1\"".
Return type : void
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
fullyQualifiedClassName | String | Fully qualified name of the class to which you want to add a property. |
propertyName | String | Name of the property. |
description | String | Short description of the property. |
isEditable | Boolean | Indicates whether or not the property is editable. |
isRequired | Boolean | Indicates whether or not the property is required. |
usedInReports | Boolean | Indicates whether or not the property is used in reports. |
enumDataNames | String | Names of the enumeration data. |
enumDataValues | String | Values of the enumeration data. |
defaultValue | String | The default value for the property. |
Example
The following example adds a new integer enumeration property to the Apache class. The new enumeration property is called PROP1 and it contains a list of name/value pairs. The new enumeration is used in reports.
Script