.ocl OCL file

Text & source code

MIME typetext/x-ocl
DescriptionOCL file
AcronymOCL – Object Constraint Language
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .ocl file?

A .ocl file is a “OCL file” (MIME type text/x-ocl). OCL stands for Object Constraint Language.

How do I open a .ocl file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .ocl file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.ocl shows the guessed type.

Which format is .ocl based on?

Technically a .ocl file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .ocl?

The MIME type is text/x-ocl. In the Apache web server: AddType text/x-ocl .ocl; in nginx: types { text/x-ocl ocl; }.

Nearby entries