author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 31 May 2018 10:52:50 +0100 | |
branch | jv |
changeset 4330 | 998eb03f0736 |
parent 3011 | 1997ff6e7e55 |
permissions | -rw-r--r-- |
1445 | 1 |
" |
2 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
1231 | 13 |
"{ Package: 'stx:libbasic3' }" |
14 |
||
15 |
"{ NameSpace: Packages }" |
|
16 |
||
17 |
Object subclass:#Prerequisite |
|
18 |
instanceVariableNames:'name ifFailedString' |
|
19 |
classVariableNames:'' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'Package-Prerequisite' |
|
22 |
! |
|
23 |
||
1445 | 24 |
!Prerequisite class methodsFor:'documentation'! |
25 |
||
26 |
copyright |
|
27 |
" |
|
28 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
29 |
All Rights Reserved |
|
30 |
||
31 |
This software is furnished under a license and may be used |
|
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
! ! |
|
1231 | 39 |
|
40 |
!Prerequisite class methodsFor:'instance creation'! |
|
41 |
||
42 |
named:aName ifFail:anActionBlock |
|
43 |
^ self basicNew name:aName ifFailedAction:anActionBlock |
|
44 |
! |
|
45 |
||
46 |
named:aName ifFailString:aString |
|
47 |
^ self basicNew name:aName ifFailedString:aString |
|
48 |
! ! |
|
49 |
||
50 |
!Prerequisite methodsFor:'accessing'! |
|
51 |
||
52 |
ifFailedString |
|
53 |
"return the value of the instance variable 'ifFailedString' (automatically generated)" |
|
54 |
||
55 |
^ ifFailedString |
|
56 |
! |
|
57 |
||
58 |
ifFailedString:something |
|
59 |
"set the value of the instance variable 'ifFailedString' (automatically generated)" |
|
60 |
||
61 |
ifFailedString := something. |
|
62 |
! |
|
63 |
||
64 |
name |
|
65 |
"return the value of the instance variable 'name' (automatically generated)" |
|
66 |
||
67 |
^ name |
|
68 |
! |
|
69 |
||
70 |
name:something |
|
71 |
"set the value of the instance variable 'name' (automatically generated)" |
|
72 |
||
73 |
name := something. |
|
74 |
! |
|
75 |
||
76 |
name:nameArg ifFailedString:ifFailedStringArg |
|
77 |
"set instance variables (automatically generated)" |
|
78 |
||
79 |
name := nameArg. |
|
80 |
ifFailedString := ifFailedStringArg. |
|
81 |
! ! |
|
82 |
||
83 |
!Prerequisite methodsFor:'evaluation'! |
|
84 |
||
85 |
evaluate |
|
86 |
(self testCondition) ifFalse:[ |
|
87 |
self evaluateIfFailedAction. |
|
88 |
] |
|
89 |
||
90 |
||
91 |
||
92 |
||
93 |
||
94 |
||
95 |
||
96 |
||
97 |
||
98 |
||
99 |
||
100 |
! |
|
101 |
||
102 |
evaluateIfFailedAction |
|
103 |
Compiler evaluate:ifFailedString |
|
104 |
! |
|
105 |
||
106 |
testCondition |
|
107 |
self subclassResponsibility |
|
108 |
! ! |
|
109 |
||
110 |
!Prerequisite methodsFor:'queries'! |
|
111 |
||
112 |
isClassPrerequisite |
|
113 |
^ false |
|
114 |
! |
|
115 |
||
116 |
isPackagePrerequisite |
|
117 |
^ false |
|
118 |
! ! |
|
119 |
||
120 |
!Prerequisite class methodsFor:'documentation'! |
|
121 |
||
122 |
version |
|
3011
1997ff6e7e55
trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1445
diff
changeset
|
123 |
^ '$Header: /var/local/cvs/stx/libbasic3/packages/Prerequisite.st,v 1.2 2006-01-10 09:32:17 cg Exp $' |
1231 | 124 |
! ! |