And Dr Darren of Webel IT Australia will show exactly how!
This Webel tutorial trail STUB is currently just to record some main policies behind the Webel recipe for pseudo-classes using (so-called) Abstract Data Types (ADTs), which blend brilliantly with the "super functional" capabilities of the Wolfram Language for Mathematica. The entire recipe is also modelled in Systems Modeling Language v1 (SysML®).
To learn some more about this project, visit also this expanded intro:
Or visit some of the POLICY note pages linked below, which already have some explanations and code examples:Some Webel ADT recipe POLICY Note pages
Background on ADTs and strong types for Mathematica
You may wish to also read this forum posting answer by the ever helpful Mathematica expert Leonid Shiffrin, or any of the books on Mathematica by Roman Maeder