0
|
1 |
"{ Package: 'stx:goodies/xmlsuite/relaxng' }"
|
|
2 |
|
|
3 |
"{ NameSpace: RNG }"
|
|
4 |
|
|
5 |
Object subclass:#SingletonObject
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Relax NG-Support'
|
|
10 |
!
|
|
11 |
|
|
12 |
SingletonObject class instanceVariableNames:'soleInstance'
|
|
13 |
|
|
14 |
"
|
|
15 |
No other class instance variables are inherited by this class.
|
|
16 |
"
|
|
17 |
!
|
|
18 |
|
|
19 |
|
|
20 |
!SingletonObject class methodsFor:'instance creation'!
|
|
21 |
|
|
22 |
default
|
|
23 |
|
|
24 |
soleInstance ifNil:[
|
|
25 |
soleInstance := self basicNew initialize
|
|
26 |
].
|
|
27 |
^soleInstance
|
|
28 |
|
|
29 |
"Created: / 30-04-2005 / 13:43:19 / janfrog"
|
|
30 |
!
|
|
31 |
|
|
32 |
new
|
|
33 |
self shouldNotImplement.
|
|
34 |
"Use #default instead"
|
|
35 |
|
|
36 |
"Created: / 30-04-2005 / 13:44:11 / janfrog"
|
|
37 |
! !
|
|
38 |
|
|
39 |
!SingletonObject class methodsFor:'utilities'!
|
|
40 |
|
|
41 |
flushDefault
|
|
42 |
|
|
43 |
soleInstance := nil.
|
|
44 |
|
|
45 |
"
|
|
46 |
RNG::SingletonObject flushDefault
|
|
47 |
"
|
|
48 |
|
|
49 |
"Created: / 30-04-2005 / 13:45:00 / janfrog"
|
|
50 |
! !
|
|
51 |
|
|
52 |
!SingletonObject class methodsFor:'documentation'!
|
|
53 |
|
|
54 |
version
|
|
55 |
^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/relaxng/RNG__SingletonObject.st,v 1.1.1.1 2005-11-01 22:07:16 vranyj1 Exp $'
|
|
56 |
! !
|