0
|
1 |
"{ Package: 'stx:goodies/xmlsuite' }"
|
|
2 |
|
|
3 |
"{ NameSpace: XMLv2 }"
|
|
4 |
|
|
5 |
OrderedCollection subclass:#NameList
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'XML Suite-DOM3'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!NameList methodsFor:'DOM3 interface'!
|
|
14 |
|
|
15 |
contains: aString
|
|
16 |
"Warning: #contains override"
|
|
17 |
|
|
18 |
^(self
|
|
19 |
detect: [:e | e key = aString]
|
|
20 |
ifNone: [nil])
|
|
21 |
notNil
|
|
22 |
!
|
|
23 |
|
|
24 |
contains: nameString ns: nsString
|
|
25 |
"Warning: #contains override"
|
|
26 |
|
|
27 |
^(self
|
|
28 |
detect: [:e | e key = nameString and: [e value = nsString]]
|
|
29 |
ifNone: [nil])
|
|
30 |
notNil
|
|
31 |
!
|
|
32 |
|
|
33 |
getName: anInteger
|
|
34 |
|
|
35 |
| assoc |
|
|
36 |
assoc := self at: anInteger ifAbsent: [nil].
|
|
37 |
^assoc ifNotNil: [^assoc key]
|
|
38 |
!
|
|
39 |
|
|
40 |
getNamespaceURI: anInteger
|
|
41 |
|
|
42 |
| assoc |
|
|
43 |
assoc := self at: anInteger ifAbsent: [nil].
|
|
44 |
^assoc ifNotNil: [^assoc value]
|
|
45 |
!
|
|
46 |
|
|
47 |
length
|
|
48 |
|
|
49 |
^self size
|
|
50 |
! !
|
|
51 |
|
|
52 |
!NameList class methodsFor:'documentation'!
|
|
53 |
|
|
54 |
version
|
|
55 |
^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__NameList.st,v 1.1.1.1 2005-11-01 22:05:52 vranyj1 Exp $'
|
|
56 |
! !
|