forked from ogheorghies/MetaUML
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Static, abstract class features based on style suppliers.
- Loading branch information
1 parent
15bc536
commit da512f6
Showing
8 changed files
with
270 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
% Copyright 2015 Ovidiu Gheorghies | ||
% Licensed under the Apache License, Version 2.0. | ||
|
||
input metauml; | ||
|
||
beginfig(1); | ||
if not metauml_private_isAbstract(abstract "foo"): | ||
1 = 2; | ||
fi; | ||
|
||
if metauml_private_isAbstract("@abstracp"): | ||
1 = 2; | ||
fi; | ||
endfig; | ||
|
||
beginfig(2); | ||
if not metauml_private_isStatic(static "bar"): | ||
1 = 2; | ||
fi; | ||
|
||
if metauml_private_isStatic("@statique"): | ||
1 = 2; | ||
fi; | ||
endfig; | ||
|
||
beginfig(3); | ||
Class.A("A") | ||
("+a:int+", static "+b:int") | ||
("+f+():int", static "+g+():int", abstract "+h():int"); | ||
Class_setDebugMode.A; | ||
drawObjects(A); | ||
endfig; | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,82 @@ | ||
% Part of the MetaUML manual | ||
% Copyright (c) 2005 Ovidiu Gheorghies | ||
% | ||
% Permission is granted to copy, distribute and/or modify this document | ||
% under the terms of the GNU Free Documentation License, Version 1.2 | ||
% or any later version published by the Free Software Foundation; | ||
% with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. | ||
% A copy of the license is included in the section entitled "GNU | ||
% Free Documentation License". | ||
|
||
\newcommand{\metaumltest}[2]{Test #2 --- \\ \includegraphics{fig/test_#1.#2} \\ } | ||
\newcommand{\metaumltests}[2]{\multido{\iA=1+1}{#2}{\metaumltest{#1}{\iA}}} | ||
|
||
\section{Test suite} | ||
|
||
\subsection{Low-level} | ||
\metaumltests{lowlevel}{2} | ||
|
||
\subsection{Fonts} | ||
\metaumltests{font}{3} | ||
|
||
\subsection{Util library} | ||
\subsubsection{Picture tests} | ||
\metaumltests{picture}{10} | ||
|
||
\subsubsection{Picture tests - TeX rendering} | ||
\metaumltests{picture_tex_rendering}{1} | ||
|
||
\subsubsection{Group tests} | ||
\metaumltests{group}{2} | ||
|
||
\subsubsection{PictureStack tests} | ||
\metaumltests{picture_stack}{7} | ||
|
||
\subsubsection{Positioning tests} | ||
\metaumltests{positioning}{6} | ||
|
||
\subsection{Class diagram} | ||
\subsubsection{Class tests} | ||
\metaumltests{class}{16} | ||
|
||
\subsubsection{Class template tests} | ||
\metaumltests{class_templates}{3} | ||
|
||
\subsubsection{Qualified Association tests} | ||
\metaumltests{class_qual_assoc}{2} | ||
|
||
\subsection{Package diagram} | ||
\subsubsection{Package tests} | ||
\metaumltests{package}{2} | ||
|
||
\subsection{Component diagram} | ||
\subsubsection{Component tests} | ||
\metaumltests{component}{1} | ||
|
||
\subsection{Paths} | ||
\metaumltests{paths}{3} | ||
|
||
\subsection{Behavioral diagrams} | ||
\subsubsection{Activity tests} | ||
\metaumltests{activity}{2} | ||
|
||
\subsubsection{State Machine tests} | ||
\metaumltests{state}{5} | ||
|
||
\subsubsection{Usecase tests} | ||
\metaumltests{usecase}{9} | ||
|
||
\subsection{Miscelaneous} | ||
\subsubsection{Notes} | ||
\metaumltests{note}{2} | ||
\subsubsection{Objects (Class Instances)} | ||
\metaumltests{instance}{1} | ||
|
||
\subsection{User requests} | ||
Test 1 --- \\ \includegraphics[scale=.2]{fig/test_lars_issues.1} \\ | ||
\metaumltest{lars_issues}{2} | ||
|
||
\subsection{Skins} | ||
\metaumltests{skins}{1} | ||
\metaumltests{skins_global_defaults}{1} | ||
% Part of the MetaUML manual | ||
% Copyright (c) 2005 Ovidiu Gheorghies | ||
% | ||
% Permission is granted to copy, distribute and/or modify this document | ||
% under the terms of the GNU Free Documentation License, Version 1.2 | ||
% or any later version published by the Free Software Foundation; | ||
% with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. | ||
% A copy of the license is included in the section entitled "GNU | ||
% Free Documentation License". | ||
|
||
\newcommand{\metaumltest}[2]{Test #2 --- \\ \includegraphics{fig/test_#1.#2} \\ } | ||
\newcommand{\metaumltests}[2]{\multido{\iA=1+1}{#2}{\metaumltest{#1}{\iA}}} | ||
|
||
\section{Test suite} | ||
|
||
\subsection{Low-level} | ||
\metaumltests{lowlevel}{2} | ||
|
||
\subsection{Fonts} | ||
\metaumltests{font}{3} | ||
|
||
\subsection{Util library} | ||
\subsubsection{Picture tests} | ||
\metaumltests{picture}{10} | ||
|
||
\subsubsection{Picture tests - TeX rendering} | ||
\metaumltests{picture_tex_rendering}{1} | ||
|
||
\subsubsection{Group tests} | ||
\metaumltests{group}{2} | ||
|
||
\subsubsection{PictureStack tests} | ||
\metaumltests{picture_stack}{7} | ||
|
||
\subsubsection{Positioning tests} | ||
\metaumltests{positioning}{6} | ||
|
||
\subsection{Class diagram} | ||
\subsubsection{Class tests} | ||
\metaumltests{class}{16} | ||
\subsubsection{Class feature types tests} | ||
\metaumltests{class_feature_types}{3} | ||
\subsubsection{Class template tests} | ||
\metaumltests{class_templates}{3} | ||
|
||
\subsubsection{Qualified Association tests} | ||
\metaumltests{class_qual_assoc}{2} | ||
|
||
\subsection{Package diagram} | ||
\subsubsection{Package tests} | ||
\metaumltests{package}{2} | ||
|
||
\subsection{Component diagram} | ||
\subsubsection{Component tests} | ||
\metaumltests{component}{1} | ||
|
||
\subsection{Paths} | ||
\metaumltests{paths}{3} | ||
|
||
\subsection{Behavioral diagrams} | ||
\subsubsection{Activity tests} | ||
\metaumltests{activity}{2} | ||
|
||
\subsubsection{State Machine tests} | ||
\metaumltests{state}{5} | ||
|
||
\subsubsection{Usecase tests} | ||
\metaumltests{usecase}{9} | ||
|
||
\subsection{Miscelaneous} | ||
\subsubsection{Notes} | ||
\metaumltests{note}{2} | ||
\subsubsection{Objects (Class Instances)} | ||
\metaumltests{instance}{1} | ||
|
||
\subsection{User requests} | ||
Test 1 --- \\ \includegraphics[scale=.2]{fig/test_lars_issues.1} \\ | ||
\metaumltest{lars_issues}{2} | ||
|
||
\subsection{Skins} | ||
\metaumltests{skins}{1} | ||
\metaumltests{skins_global_defaults}{1} |
Oops, something went wrong.