OCL is a programming language created in 1997.
#754on PLDB | 27Years Old |
The Object Constraint Language (OCL) is a declarative language describing rules applying to Unified Modeling Language (UML) models developed at IBM and is now part of the UML standard. Initially, OCL was merely a formal specification language extension for UML. OCL may now be used with any Meta-Object Facility (MOF) Object Management Group (OMG) meta-model, including UML. Read more on Wikipedia...
context Person inv: self.age >=0
context Person inv: self.age<18 implies self.cars->isEmpty()
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | -- A comment | |
Line Comments | ✓ | -- A comment | -- |
Semantic Indentation | X |