Abstract
The Object Constraint Language (OCL) is a part of the Unified Modeling Language (UML) - an emerging standard language for object-oriented analysis and design. OCL is designed as a formal language for specifying constraints that cannot be expressed conveniently using UML’s diagrammatic notation.
This article describes results of a careful analysis of the syntactic structure of OCL, resulting in a number of improvements of the OCL-syntax. In particular, a new and better readable grammar describing OCL is defined. The paper enhances not only the language OCL itself, but in particular its presentation.
Given the new grammar, a Java-style variant of OCL with essentially the same abstract grammar is defined, which should be more comfortable to Java-programmers.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Aliprand, J., Allen, J., Becker, J., Davis, M., Everson, M., Freytag, A., Jenkins, J., Ksar, M., McGowan, R., Moore, L., Suignard, M., Whistler, K., The Unicode Standard, Version 3.0. Addison Wesley Longman Publisher, 2000.
Boger, M., Baier, T., Wienberg, F., Extreme Modeling, In: XP’2000 conference proceedings, Ed. Michele Marchesi (to appear), Addison-Wesley, 2001.
Broy, M., Facchi, C., Grosu, R., Hettler, R., Hussmann, H., Nazareth, D., Regensburger, F., Slotosch, O., Stolen K., The Requirement and Design Specification Language SPECTRUM. An Informal Introduction. Version 1.0. Part ii. Technical Report TUM-I9312, Technische Universität München. Institut für Informatik, TUM, München, Germany, May 1993.
Church A, A formulation of the simple theory of types. Journal of Symbolic Logic, 5:56–68, 1940.
Cook, S., Kleppe, A., Mitchell, R., Rumpe, B., Warmer, J., Wills, A., The Amsterdam Manifesto on OCL, Technical Report, Technische Universität München, Computer Science, 1999.
Cook, S., Daniels, J. Designing Object Systems-Object Oriented Modeling with Syntropy. Prentice-Hall, 1994.
Fitzgerald, J., Larsen, P. G., Modelling Systems: Practical Tools and Techniques in Software Development. Cambridge University Press, 1998.
Gogolla, M., Richters, M., On Constraints and Queries in UML. In M. Schader and A. Korthaus, editors, Proc. UML’97 Workshop ‘The Unified Modeling Language-Technical Aspects and Applications’, pages 109–121. Physica-Verlag, Heidelberg, 1997.
Gosling, J,. Joy, B., Steele, G., The Java Language Specification, Addison-Wesley, 1996.
Hamie, A., Civello, F., Howse, J., Kent, S., Mitchell, R., Reflections on the Object Constraint Language. In P. Muller and J. Bézivin, editors, Proc. of UML’98 International Workshop, Mulhouse, France, June 3–4, 1998, pages 137–145.
Hamie, A., Howse, J., Kent S., Interpreting the Object Constraint Language. In Proceedings of Asia Pacific Conference in Software Engineering. IEEE Press, July 1998.
Harel, D., Rumpe, B., Modeling Languages: Syntax, Semantics and All That Stuff, The Weizmann Institute of Science, Rehovot, Israel, MCS00-16, 2000.
Hussmann, H., OCL Compiler. Technische Universität Dresden. Available from http://www-st.inf.tu-dresden.de/ocl, 2001.
Jacobi, C., Rumpe, B., Hierarchical XP-Improving XP for large scale projects, In: XP’2000 conference proceedings, Ed. Michele Marchesi (to appear), Addison-Wesley, 2001.
OMG. Object Constraint Language Specification. In OMG Unified Modeling Language Specification, Version 1.3 (June 1999), chapter 7. Available from http://www.rational.com.
Richters, M., Gogolla, M., On Formalizing the UMLObje ct Constraint Language OCL. In Tok-Wang Ling, Sudha Ram, and Mong Li Lee, editors, Proc. 17th Int. Conf. Conceptual Modeling (ER’98), pages 449–464. Springer, Berlin, LNCS 1507, 1998.
Rumpe, B., Gofer Objekt-System-Imperativ Objektorientierte und Funktionale Programmierung in einer Sprache, Technical Report, Universität Passau, MIP-9519, 1995.
Warmer, J., Kleppe, A., The Object Constraint Language: Precise Modeling with UML. Addison Wesley Longman, Reading, Massachusetts, 1999.
Wirth, N., Programming in Modula-2, Springer Verlag, 1982.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Rumpe, B. (2002). ≪Java≫OCL Based on New Presentation of the OCL-Syntax. In: Clark, T., Warmer, J. (eds) Object Modeling with the OCL. Lecture Notes in Computer Science, vol 2263. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45669-4_10
Download citation
DOI: https://doi.org/10.1007/3-540-45669-4_10
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-43169-5
Online ISBN: 978-3-540-45669-8
eBook Packages: Springer Book Archive