Skip to content

MoDELSVGU/JavaOCL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

119 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaOCL

A representation of OCL expression in Java.

<dependency>
  <groupId>io.github.modelsvgu</groupId>
  <artifactId>oclj</artifactId>
  <version>[1.0.0,)</version>
</dependency>

This table represents a detailed overview of supported Object Constraint Language (OCL) operators. It consists of several categories, in which contains 2 columns: the operator (on the left) and the syntax example (on the right).

Class operations
allInstances class.allInstances()
attributes var.att
association ends var.assoc
Constants operations
Boolean Literal {TRUE, FALSE}
Integer Literal {..., -2, 1, 0, 1, 2, ...}
String Literal 'string'
Boolean operations
not NOT bool-expr
and, or bool-expr logic-operator bool-expr'
=, <>, >, <, ≥, ≤ bool-expr compare-operator bool-expr'
Iterative operations
collect source-expr -> collect(var | body-expr)
forAll source-expr -> forAll(var | bool-expr)
exists source-expr -> exists(var | bool-expr)
select source-expr -> select(var | bool-expr)
reject source-expr -> reject(var | bool-expr)
size source-expr -> size()
isEmpty source-expr -> isEmpty()
notEmpty source-expr -> notEmpty()
isUnique source-expr -> isUnique()
flatten1 source-expr -> flatten()
1 For the time being, this can operate ONLY after the collect operation

About

A representation of OCL expression in Java.

Resources

License

Stars

Watchers

Forks

Contributors

Languages