The aliases of operations on definitions whose return type is non-primitive are called definitions aliases.
For more information, see Definition
The eight primitive return types supported by the Java programming language are:
byte
short
int
long
float
double
boolean
char
Address custAddress = null is a Definition Alias.
The Address object has operations like getCity() , getCountry() .
Definition Aliases of custAddress are:
custAddress.getCity()
custAddress.getCountry()
You can create a definition alias in the project resources and at the ruleset level.
For more information, see Project Resources
You must have added Java classes to DC.
For more information, see Adding a Class
Locate the Project Resources node and double-click the node.
For more information, see Locating the Project Resources Node
In the Project Resources editor, choose the Definitions tab.
Locate the ruleset and double-click the ruleset.
For more information, see Locating the Ruleset
In the ruleset editor, choose the Definitions tab.
In the definition editor create a definition whose return type is non- primitive and save the changes.
In the Project Resources editor and the ruleset editor, choose the Aliases tab to view the Definition Aliases.
Let us consider a Java type - StringBuffer [java.lang] .
In the Project Resources editor, choose the Aliases tab.
In the Alias Name table , select the StringBuffer [java.util.StringBuffer] checkbox.
Save the changes.
In the Project Resources editor, choose the Common Definitions tab.
In the definition editor, in the Variable Definitions section, choose the Add icon and in the drop down that appears, choose StringBuffer[java.lang] .
Choose StringBuffer1 and in the inline textbox enter messageBuffer and press Enter
Choose null and in the drop down menu that appears, expand the StringBuffer[java.lang] and choose new StringBuffer .
Save the changes.
In the Project Resources editor, choose the Aliases tab and you should see the messageBuffer node.
Expand the messageBuffer node to see all the all definition aliases.