Object Constraint Language is an actively used programming language created in 1997. 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...
- Object Constraint Language ranks in the top 25% of languages
- the Object Constraint Language wikipedia page
- Object Constraint Language first appeared in 1997
- Have a question about Object Constraint Language not answered here? Email me and let me know how I can help.
Example code from the web:
context Person inv: self.age >=0 context Person inv: self.age<18 implies self.cars->isEmpty()
Last updated August 9th, 2020