0
|
1 |
"{ Package: 'stx:goodies/xmlsuite/xpath' }"
|
|
2 |
|
|
3 |
"{ NameSpace: XMLv2 }"
|
|
4 |
|
|
5 |
XPathASTNode subclass:#XPathAxis
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'XML Suite-XPath-Axes'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!XPathAxis class methodsFor:'instance creation'!
|
|
14 |
|
|
15 |
getAxisOfType:anAxisTypeSymbol
|
|
16 |
(anAxisTypeSymbol = 'child::') ifTrue:[
|
|
17 |
^ XPathAxisChild new
|
|
18 |
].
|
|
19 |
(anAxisTypeSymbol = 'descendant::') ifTrue:[
|
|
20 |
^ XPathAxisDescendant new
|
|
21 |
].
|
|
22 |
(anAxisTypeSymbol = 'descendant-or-self::') ifTrue:[
|
|
23 |
^ XPathAxisDescendantOrSelf new
|
|
24 |
].
|
|
25 |
(anAxisTypeSymbol = 'parent::') ifTrue:[
|
|
26 |
^ XPathAxisParent new
|
|
27 |
].
|
|
28 |
(anAxisTypeSymbol = 'self::') ifTrue:[
|
|
29 |
^ XPathAxisSelf new
|
|
30 |
].
|
|
31 |
(anAxisTypeSymbol = '@') ifTrue:[
|
|
32 |
^ XPathAxisAttribute new
|
|
33 |
].
|
|
34 |
! !
|
|
35 |
|
|
36 |
!XPathAxis methodsFor:'queries'!
|
|
37 |
|
|
38 |
principalNodeType
|
|
39 |
^ #element.
|
|
40 |
! !
|
|
41 |
|
|
42 |
!XPathAxis methodsFor:'testing'!
|
|
43 |
|
|
44 |
isXPathAxisAncestor
|
|
45 |
^ false
|
|
46 |
|
|
47 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
48 |
!
|
|
49 |
|
|
50 |
isXPathAxisAncestorOrSelf
|
|
51 |
^ false
|
|
52 |
|
|
53 |
"Created: / 16-11-2007 / 09:26:02 / janfrog"
|
|
54 |
!
|
|
55 |
|
|
56 |
isXPathAxisAttribute
|
|
57 |
^ false
|
|
58 |
|
|
59 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
60 |
!
|
|
61 |
|
|
62 |
isXPathAxisChild
|
|
63 |
^ false
|
|
64 |
|
|
65 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
66 |
!
|
|
67 |
|
|
68 |
isXPathAxisDescendant
|
|
69 |
^ false
|
|
70 |
|
|
71 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
72 |
!
|
|
73 |
|
|
74 |
isXPathAxisDescendantOrSelf
|
|
75 |
^ false
|
|
76 |
|
|
77 |
"Created: / 16-11-2007 / 09:26:11 / janfrog"
|
|
78 |
!
|
|
79 |
|
|
80 |
isXPathAxisFollowing
|
|
81 |
^ false
|
|
82 |
|
|
83 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
84 |
!
|
|
85 |
|
|
86 |
isXPathAxisFollowingSibling
|
|
87 |
^ false
|
|
88 |
|
|
89 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
90 |
!
|
|
91 |
|
|
92 |
isXPathAxisParent
|
|
93 |
^ false
|
|
94 |
|
|
95 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
96 |
!
|
|
97 |
|
|
98 |
isXPathAxisPreceding
|
|
99 |
^ false
|
|
100 |
|
|
101 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
102 |
!
|
|
103 |
|
|
104 |
isXPathAxisPrecedingSibling
|
|
105 |
^ false
|
|
106 |
|
|
107 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
108 |
!
|
|
109 |
|
|
110 |
isXPathAxisSelf
|
|
111 |
^ false
|
|
112 |
|
|
113 |
"Created: / 16-11-2007 / 09:25:08 / janfrog"
|
|
114 |
! !
|
|
115 |
|
|
116 |
!XPathAxis class methodsFor:'documentation'!
|
|
117 |
|
|
118 |
version
|
|
119 |
^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/xpath/XMLv2__XPathAxis.st,v 1.3 2007-11-16 09:25:59 vranyj1 Exp $'
|
|
120 |
! !
|