When working online, you can use this option to check whether the source code of your application violates the Architecture Model you have defined with the CAST Architecture Checker. This is the primary goal of the application - i.e. to identify links between objects that may violate your architecture definition.

The option can be accessed:

When selected, the CAST Architecture Checker will query the CAST Analysis Service (via the current connection to the CAST Management Service) and display any violations to your architecture model using links between layers.

These link types (circled in red below) indicate that an object (or objects) in one layer violate the Architecture Model you have defined:

  • The number indicates the number of links between the internal objects in the source layer and all objects in the destination layer.
  • The direction of the arrow indicates the direction of violation (i.e. objects from one layer are calling objects in another layer and that is contrary to your model):

If you do not see any links between layers on completion of the Check Model option, either there are no violations, or the Composition slider (see Options window / Content window) is set to opaque to hide these link types.

Viewing information about the violation

If the Check Model option returns violations ( links), you can then view information about the objects involved in the violation. To do so:

  • Right click the violation link (you need to click the text that indicates the number of links: "XX links").
  • A contextual menu will appear - select this option:

  • The violation link will change to a colour to indicate that the link is being examined and a panel will appear at the bottom of the screen listing the links involved:

An explanation of each option is listed below:

Column headingsCaller nameCalling object's short name as saved in the CAST Analysis Service
Caller typeCalling object's type as defined by CAST's meta-model.
Caller full NameCalling object's full name as saved in the CAST Analysis Service
Callee nameCalled object's short name as saved in the CAST Analysis Service
Callee typeCalled object's type as defined by CAST's meta-model.
Callee full nameCalled object's full name as saved in the CAST Analysis Service
Link typeType of link between the calling and called objects.
Dynamic LinkIndicates (true or false) whether the link between the objects is classed as "dynamic".
Dynamic Info

Indicates the status of the dynamic link:

  • Inference Engine: The dynamic link is generated by the Inference Engine during the analysis.
  • Grep - Validated: The dynamic link is generated from "Grep" search and it has already been reviewed and validated as correct.
  • Grep - Not Reviewed: The dynamic link is generated from "Grep" search and it has not yet been reviewed.
Dynamic links generated via "Grep" search and which have already been reviewed and ignored are not shown here as these links are not taken into account.
View sourceUse this option to view the source code of the selected object as stored in the CAST Analysis Service. The source code will be displayed in the Source Code tab (see Main window for more information).


- This option relies on the CAST Management Studio option Always upload Source Code for viewing in CAST Dashboard being set to true (this is the default position).

- Some items listed are in fact folder items or maybe part of a compiled JAR file (for example), and as such their source code is not visible.

Closes the current panel.

Column filtering

You can also use the Filter icon in each column heading to sort and filter according to content:

  • Choose the filter type in the drop down list
  • Choose whether the criteria will be applied using case sensitive text or not.
  • Enter the filter text.

Only content that matches the chosen criteria will be displayed.