1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
2
|
<!--NewPage-->
|
3
|
<html>
|
4
|
<head>
|
5
|
<!-- Generated by javadoc on Fri Sep 24 03:23:03 CEST 1999 -->
|
6
|
<title>
|
7
|
Class de.tudarmstadt.ito.utils.TokenList
|
8
|
</title>
|
9
|
</head>
|
10
|
<body>
|
11
|
<a name="_top_"></a>
|
12
|
<pre>
|
13
|
<a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-de.tudarmstadt.ito.utils.html">This Package</a> <a href="de.tudarmstadt.ito.utils.NSName.html#_top_">Previous</a> <a href="de.tudarmstadt.ito.utils.XMLOutputStream.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre>
|
14
|
<hr>
|
15
|
<h1>
|
16
|
Class de.tudarmstadt.ito.utils.TokenList
|
17
|
</h1>
|
18
|
<pre>
|
19
|
java.lang.Object
|
20
|
|
|
21
|
+----de.tudarmstadt.ito.utils.TokenList
|
22
|
</pre>
|
23
|
<hr>
|
24
|
<dl>
|
25
|
<dt> public class <b>TokenList</b>
|
26
|
<dt> extends Object
|
27
|
</dl>
|
28
|
Manages a list of tokens.
|
29
|
<p>
|
30
|
<hr>
|
31
|
<a name="index"></a>
|
32
|
<h2>
|
33
|
<img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
|
34
|
</h2>
|
35
|
<dl>
|
36
|
<dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
|
37
|
<a href="#TokenList(java.lang.String[], int[])"><b>TokenList</b></a>(String[], int[])
|
38
|
<dd> Construct a TokenList without a default.
|
39
|
<dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
|
40
|
<a href="#TokenList(java.lang.String[], int[], int)"><b>TokenList</b></a>(String[], int[], int)
|
41
|
<dd> Construct a TokenList with a default.
|
42
|
</dl>
|
43
|
<h2>
|
44
|
<img src="images/method-index.gif" width=207 height=38 alt="Method Index">
|
45
|
</h2>
|
46
|
<dl>
|
47
|
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
|
48
|
<a href="#getToken(java.lang.String)"><b>getToken</b></a>(String)
|
49
|
<dd> Get the token value for a particular name.
|
50
|
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
|
51
|
<a href="#getToken(java.lang.String, int)"><b>getToken</b></a>(String, int)
|
52
|
<dd> Get the token value for a particular name, overriding the default value
|
53
|
if necessary.
|
54
|
</dl>
|
55
|
<a name="constructors"></a>
|
56
|
<h2>
|
57
|
<img src="images/constructors.gif" width=231 height=38 alt="Constructors">
|
58
|
</h2>
|
59
|
<a name="TokenList"></a>
|
60
|
<a name="TokenList(java.lang.String[], int[])"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
|
61
|
<b>TokenList</b>
|
62
|
<pre>
|
63
|
public TokenList(String names[],
|
64
|
int tokens[])
|
65
|
</pre>
|
66
|
<dl>
|
67
|
<dd> Construct a TokenList without a default.
|
68
|
<p>
|
69
|
<dd><dl>
|
70
|
<dt> <b>Parameters:</b>
|
71
|
<dd> names - Token names.
|
72
|
<dd> tokens - Token values.
|
73
|
</dl></dd>
|
74
|
</dl>
|
75
|
<a name="TokenList(java.lang.String[], int[], int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
|
76
|
<b>TokenList</b>
|
77
|
<pre>
|
78
|
public TokenList(String names[],
|
79
|
int tokens[],
|
80
|
int listDefault)
|
81
|
</pre>
|
82
|
<dl>
|
83
|
<dd> Construct a TokenList with a default.
|
84
|
<p>
|
85
|
<dd><dl>
|
86
|
<dt> <b>Parameters:</b>
|
87
|
<dd> names - Token names.
|
88
|
<dd> tokens - Token values.
|
89
|
<dd> listDefault - Default value (returned when a name is not found).
|
90
|
</dl></dd>
|
91
|
</dl>
|
92
|
<a name="methods"></a>
|
93
|
<h2>
|
94
|
<img src="images/methods.gif" width=151 height=38 alt="Methods">
|
95
|
</h2>
|
96
|
<a name="getToken(java.lang.String, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
|
97
|
<a name="getToken"><b>getToken</b></a>
|
98
|
<pre>
|
99
|
public int getToken(String name,
|
100
|
int overrideDefault)
|
101
|
</pre>
|
102
|
<dl>
|
103
|
<dd> Get the token value for a particular name, overriding the default value
|
104
|
if necessary.
|
105
|
<p>
|
106
|
<dd><dl>
|
107
|
<dt> <b>Parameters:</b>
|
108
|
<dd> name - Token name.
|
109
|
<dd> overrideDefault - The temporary default value.
|
110
|
<dt> <b>Returns:</b>
|
111
|
<dd> The token value or overrideDefault if the name is not found.
|
112
|
</dl></dd>
|
113
|
</dl>
|
114
|
<a name="getToken(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
|
115
|
<a name="getToken"><b>getToken</b></a>
|
116
|
<pre>
|
117
|
public int getToken(String name)
|
118
|
</pre>
|
119
|
<dl>
|
120
|
<dd> Get the token value for a particular name.
|
121
|
<p>
|
122
|
<dd><dl>
|
123
|
<dt> <b>Parameters:</b>
|
124
|
<dd> name - Token name.
|
125
|
<dt> <b>Returns:</b>
|
126
|
<dd> The token value or the list default if the name is not found.
|
127
|
If no list default has been set, 0 is returned.
|
128
|
</dl></dd>
|
129
|
</dl>
|
130
|
<hr>
|
131
|
<pre>
|
132
|
<a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-de.tudarmstadt.ito.utils.html">This Package</a> <a href="de.tudarmstadt.ito.utils.NSName.html#_top_">Previous</a> <a href="de.tudarmstadt.ito.utils.XMLOutputStream.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre>
|
133
|
</body>
|
134
|
</html>
|