source: fedd/abac-src/rtml/doc/edu/stanford/rt/credential/OrderedMap.html @ 8f32dc0

axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change on this file since 8f32dc0 was 8780cbec, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

ABAC sources from Cobham

  • Property mode set to 100644
File size: 25.0 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc on Wed Oct 02 14:27:57 PDT 2002 -->
6<TITLE>
7OrderedMap
8</TITLE>
9<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
10</HEAD>
11<SCRIPT>
12function asd()
13{
14parent.document.title="OrderedMap";
15}
16</SCRIPT>
17<BODY BGCOLOR="white" onload="asd();">
18
19<!-- ========== START OF NAVBAR ========== -->
20<A NAME="navbar_top"><!-- --></A>
21<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
22<TR>
23<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
24<A NAME="navbar_top_firstrow"><!-- --></A>
25<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
26  <TR ALIGN="center" VALIGN="top">
27  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
28  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
29  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
30  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/OrderedMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
31  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
34  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
35  </TR>
36</TABLE>
37</TD>
38<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
39</EM>
40</TD>
41</TR>
42
43<TR>
44<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
45&nbsp;<A HREF="../../../../edu/stanford/rt/credential/LinkedRole.html"><B>PREV CLASS</B></A>&nbsp;
46&nbsp;<A HREF="../../../../edu/stanford/rt/credential/Principal.html"><B>NEXT CLASS</B></A></FONT></TD>
47<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
48  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
49&nbsp;<A HREF="OrderedMap.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
50&nbsp;
51<SCRIPT>
52  <!--
53  if(window==top) {
54    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
55  }
56  //-->
57</SCRIPT>
58<NOSCRIPT>
59<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
60</NOSCRIPT>
61</FONT></TD>
62</TR>
63<TR>
64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
65  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
67DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
68</TR>
69</TABLE>
70<!-- =========== END OF NAVBAR =========== -->
71
72<HR>
73<!-- ======== START OF CLASS DATA ======== -->
74<H2>
75<FONT SIZE="-1">
76edu.stanford.rt.credential</FONT>
77<BR>
78Class  OrderedMap</H2>
79<PRE>
80java.lang.Object
81  |
82  +--<B>edu.stanford.rt.credential.OrderedMap</B>
83</PRE>
84<HR>
85<DL>
86<DT>public class <B>OrderedMap</B><DT>extends java.lang.Object</DL>
87
88<P>
89<DL>
90<DT><B>Author:</B><DD>Ninghui Li, Sandra Qiu<br>
91 
92  OrderedMap maintains a map from key to values and the ordering
93  of the keys.</DD>
94</DD>
95</DL>
96<HR>
97
98<P>
99<!-- ======== NESTED CLASS SUMMARY ======== -->
100
101
102<!-- =========== FIELD SUMMARY =========== -->
103
104<A NAME="field_summary"><!-- --></A>
105<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
106<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
107<TD COLSPAN=2><FONT SIZE="+2">
108<B>Field Summary</B></FONT></TD>
109</TR>
110<TR BGCOLOR="white" CLASS="TableRowColor">
111<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
112<CODE>private &nbsp;java.util.HashMap</CODE></FONT></TD>
113<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#dataMap">dataMap</A></B></CODE>
114
115<BR>
116&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map for the key-value pairs</TD>
117</TR>
118<TR BGCOLOR="white" CLASS="TableRowColor">
119<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
120<CODE>private static&nbsp;int</CODE></FONT></TD>
121<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#DEFAULT_SIZE">DEFAULT_SIZE</A></B></CODE>
122
123<BR>
124&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;defualt map capacity</TD>
125</TR>
126<TR BGCOLOR="white" CLASS="TableRowColor">
127<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128<CODE>private &nbsp;boolean</CODE></FONT></TD>
129<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#editable">editable</A></B></CODE>
130
131<BR>
132&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;whether this map is editable</TD>
133</TR>
134<TR BGCOLOR="white" CLASS="TableRowColor">
135<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136<CODE>private &nbsp;java.lang.Class</CODE></FONT></TD>
137<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#keyClass">keyClass</A></B></CODE>
138
139<BR>
140&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;key type</TD>
141</TR>
142<TR BGCOLOR="white" CLASS="TableRowColor">
143<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144<CODE>private &nbsp;java.util.ArrayList</CODE></FONT></TD>
145<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#keyList">keyList</A></B></CODE>
146
147<BR>
148&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;also stores the keys as they are added to the list,
149 so that we can remember the ordering of the keys.</TD>
150</TR>
151<TR BGCOLOR="white" CLASS="TableRowColor">
152<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153<CODE>private &nbsp;java.lang.Class</CODE></FONT></TD>
154<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#valueClass">valueClass</A></B></CODE>
155
156<BR>
157&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value type</TD>
158</TR>
159</TABLE>
160&nbsp;
161<!-- ======== CONSTRUCTOR SUMMARY ======== -->
162
163<A NAME="constructor_summary"><!-- --></A>
164<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
165<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
166<TD COLSPAN=2><FONT SIZE="+2">
167<B>Constructor Summary</B></FONT></TD>
168</TR>
169<TR BGCOLOR="white" CLASS="TableRowColor">
170<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#OrderedMap()">OrderedMap</A></B>()</CODE>
171
172<BR>
173&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor for OrderedMap.</TD>
174</TR>
175<TR BGCOLOR="white" CLASS="TableRowColor">
176<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#OrderedMap(java.lang.Class, java.lang.Class)">OrderedMap</A></B>(java.lang.Class&nbsp;keyClass,
177           java.lang.Class&nbsp;valueClass)</CODE>
178
179<BR>
180&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor for OrderedMap.</TD>
181</TR>
182<TR BGCOLOR="white" CLASS="TableRowColor">
183<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#OrderedMap(int)">OrderedMap</A></B>(int&nbsp;size)</CODE>
184
185<BR>
186&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor for OrderedMap.</TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#OrderedMap(int, java.lang.Class, java.lang.Class)">OrderedMap</A></B>(int&nbsp;size,
190           java.lang.Class&nbsp;keyClass,
191           java.lang.Class&nbsp;valueClass)</CODE>
192
193<BR>
194&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor for OrderedMap.</TD>
195</TR>
196</TABLE>
197&nbsp;
198<!-- ========== METHOD SUMMARY =========== -->
199
200<A NAME="method_summary"><!-- --></A>
201<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
202<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
203<TD COLSPAN=2><FONT SIZE="+2">
204<B>Method Summary</B></FONT></TD>
205</TR>
206<TR BGCOLOR="white" CLASS="TableRowColor">
207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208<CODE>&nbsp;boolean</CODE></FONT></TD>
209<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#constainsKey(java.lang.Object)">constainsKey</A></B>(java.lang.Object&nbsp;key)</CODE>
210
211<BR>
212&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method constainsKey.</TD>
213</TR>
214<TR BGCOLOR="white" CLASS="TableRowColor">
215<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
217<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#get(java.lang.Object)">get</A></B>(java.lang.Object&nbsp;key)</CODE>
218
219<BR>
220&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value for the given key and returns null if there is
221             no mapping for the given key .</TD>
222</TR>
223<TR BGCOLOR="white" CLASS="TableRowColor">
224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225<CODE>&nbsp;java.lang.Class</CODE></FONT></TD>
226<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#getKeyClass()">getKeyClass</A></B>()</CODE>
227
228<BR>
229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the key type.</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>&nbsp;java.lang.Class</CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#getValueClass()">getValueClass</A></B>()</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value type</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>&nbsp;boolean</CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#isEditable()">isEditable</A></B>()</CODE>
243
244<BR>
245&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the map is editable.</TD>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249<CODE>&nbsp;java.util.Iterator</CODE></FONT></TD>
250<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#keyIterator()">keyIterator</A></B>()</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns iterator to the list of keys in the map.</TD>
254</TR>
255<TR BGCOLOR="white" CLASS="TableRowColor">
256<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257<CODE>&nbsp;java.util.List</CODE></FONT></TD>
258<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#keyList()">keyList</A></B>()</CODE>
259
260<BR>
261&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an unmodifiable view of all the keys.</TD>
262</TR>
263<TR BGCOLOR="white" CLASS="TableRowColor">
264<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265<CODE>private &nbsp;void</CODE></FONT></TD>
266<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#myPut(java.lang.Object, java.lang.Object)">myPut</A></B>(java.lang.Object&nbsp;key,
267      java.lang.Object&nbsp;value)</CODE>
268
269<BR>
270&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
271</TR>
272<TR BGCOLOR="white" CLASS="TableRowColor">
273<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
274<CODE>&nbsp;void</CODE></FONT></TD>
275<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#put(java.lang.Object, java.lang.Object)">put</A></B>(java.lang.Object&nbsp;key,
276    java.lang.Object&nbsp;value)</CODE>
277
278<BR>
279&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method put.</TD>
280</TR>
281<TR BGCOLOR="white" CLASS="TableRowColor">
282<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283<CODE>&nbsp;void</CODE></FONT></TD>
284<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#putAll(edu.stanford.rt.credential.OrderedMap)">putAll</A></B>(<A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html">OrderedMap</A>&nbsp;map)</CODE>
285
286<BR>
287&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copies all the mapping entries to this map, perserving the
288             original ordering of the entries.</TD>
289</TR>
290<TR BGCOLOR="white" CLASS="TableRowColor">
291<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
292<CODE>&nbsp;void</CODE></FONT></TD>
293<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#setUneditable()">setUneditable</A></B>()</CODE>
294
295<BR>
296&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;marks this map as uneditable.</TD>
297</TR>
298<TR BGCOLOR="white" CLASS="TableRowColor">
299<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
300<CODE>&nbsp;int</CODE></FONT></TD>
301<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#size()">size</A></B>()</CODE>
302
303<BR>
304&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of this map</TD>
305</TR>
306<TR BGCOLOR="white" CLASS="TableRowColor">
307<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
308<CODE>&nbsp;java.util.Map</CODE></FONT></TD>
309<TD><CODE><B><A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html#valueMap()">valueMap</A></B>()</CODE>
310
311<BR>
312&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an unmodifiable view of this map.</TD>
313</TR>
314</TABLE>
315&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
316<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
317<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
318<TD><B>Methods inherited from class java.lang.Object</B></TD>
319</TR>
320<TR BGCOLOR="white" CLASS="TableRowColor">
321<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
322</TR>
323</TABLE>
324&nbsp;
325<P>
326
327<!-- ============ FIELD DETAIL =========== -->
328
329<A NAME="field_detail"><!-- --></A>
330<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
331<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
332<TD COLSPAN=1><FONT SIZE="+2">
333<B>Field Detail</B></FONT></TD>
334</TR>
335</TABLE>
336
337<A NAME="keyClass"><!-- --></A><H3>
338keyClass</H3>
339<PRE>
340private java.lang.Class <B>keyClass</B></PRE>
341<DL>
342<DD>key type
343<P>
344<DL>
345</DL>
346</DL>
347<HR>
348
349<A NAME="valueClass"><!-- --></A><H3>
350valueClass</H3>
351<PRE>
352private java.lang.Class <B>valueClass</B></PRE>
353<DL>
354<DD>value type
355<P>
356<DL>
357</DL>
358</DL>
359<HR>
360
361<A NAME="dataMap"><!-- --></A><H3>
362dataMap</H3>
363<PRE>
364private java.util.HashMap <B>dataMap</B></PRE>
365<DL>
366<DD>map for the key-value pairs
367<P>
368<DL>
369</DL>
370</DL>
371<HR>
372
373<A NAME="keyList"><!-- --></A><H3>
374keyList</H3>
375<PRE>
376private java.util.ArrayList <B>keyList</B></PRE>
377<DL>
378<DD>also stores the keys as they are added to the list,
379 so that we can remember the ordering of the keys.
380<P>
381<DL>
382</DL>
383</DL>
384<HR>
385
386<A NAME="editable"><!-- --></A><H3>
387editable</H3>
388<PRE>
389private boolean <B>editable</B></PRE>
390<DL>
391<DD>whether this map is editable
392<P>
393<DL>
394</DL>
395</DL>
396<HR>
397
398<A NAME="DEFAULT_SIZE"><!-- --></A><H3>
399DEFAULT_SIZE</H3>
400<PRE>
401private static final int <B>DEFAULT_SIZE</B></PRE>
402<DL>
403<DD>defualt map capacity
404<P>
405<DL>
406<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#edu.stanford.rt.credential.OrderedMap.DEFAULT_SIZE">Constant Field Values</A></DL>
407</DL>
408
409<!-- ========= CONSTRUCTOR DETAIL ======== -->
410
411<A NAME="constructor_detail"><!-- --></A>
412<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
413<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
414<TD COLSPAN=1><FONT SIZE="+2">
415<B>Constructor Detail</B></FONT></TD>
416</TR>
417</TABLE>
418
419<A NAME="OrderedMap()"><!-- --></A><H3>
420OrderedMap</H3>
421<PRE>
422public <B>OrderedMap</B>()</PRE>
423<DL>
424<DD>Constructor for OrderedMap.
425 
426   Constructs a OrderedMap object with size default to 10.
427   Both key and value are of Object type.
428<P>
429</DL>
430<HR>
431
432<A NAME="OrderedMap(int)"><!-- --></A><H3>
433OrderedMap</H3>
434<PRE>
435public <B>OrderedMap</B>(int&nbsp;size)</PRE>
436<DL>
437<DD>Constructor for OrderedMap.
438   Constructs a OrderedMap object with given size.
439   Both key and value are of Object type.
440<P>
441</DL>
442<HR>
443
444<A NAME="OrderedMap(java.lang.Class, java.lang.Class)"><!-- --></A><H3>
445OrderedMap</H3>
446<PRE>
447public <B>OrderedMap</B>(java.lang.Class&nbsp;keyClass,
448                  java.lang.Class&nbsp;valueClass)</PRE>
449<DL>
450<DD>Constructor for OrderedMap.
451  Constructs a OrderedMap object with size default to 10.
452  The key and value type are specified by the given keyClass and
453   valueClass, respectively.
454<P>
455</DL>
456<HR>
457
458<A NAME="OrderedMap(int, java.lang.Class, java.lang.Class)"><!-- --></A><H3>
459OrderedMap</H3>
460<PRE>
461public <B>OrderedMap</B>(int&nbsp;size,
462                  java.lang.Class&nbsp;keyClass,
463                  java.lang.Class&nbsp;valueClass)</PRE>
464<DL>
465<DD>Constructor for OrderedMap.
466   Constructs a OrderedMap object with given size.
467   The key and value type are specified by the given keyClass and
468   valueClass, respectively.
469<P>
470</DL>
471
472<!-- ============ METHOD DETAIL ========== -->
473
474<A NAME="method_detail"><!-- --></A>
475<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
476<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
477<TD COLSPAN=1><FONT SIZE="+2">
478<B>Method Detail</B></FONT></TD>
479</TR>
480</TABLE>
481
482<A NAME="constainsKey(java.lang.Object)"><!-- --></A><H3>
483constainsKey</H3>
484<PRE>
485public boolean <B>constainsKey</B>(java.lang.Object&nbsp;key)</PRE>
486<DL>
487<DD>Method constainsKey.
488   Returns true if there is a mapping for the given key.
489<P>
490<DD><DL>
491<DT><B>Parameters:</B><DD><CODE>key</CODE> -
492<DT><B>Returns:</B><DD>boolean</DL>
493</DD>
494</DL>
495<HR>
496
497<A NAME="put(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
498put</H3>
499<PRE>
500public void <B>put</B>(java.lang.Object&nbsp;key,
501                java.lang.Object&nbsp;value)
502         throws <A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></PRE>
503<DL>
504<DD>Method put.
505   Add a new key-value mapping entry to the map.
506   Exception is thrown if the map is not editable, the key is null,
507   or the given key or value's type does not match the specified
508   key type or value type.  Exception will also be thrown if trying
509   to add duplicated key-value pair.
510<P>
511<DD><DL>
512<DT><B>Parameters:</B><DD><CODE>key</CODE> - <DD><CODE>value</CODE> -
513<DT><B>Throws:</B>
514<DD><CODE><A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></CODE></DL>
515</DD>
516</DL>
517<HR>
518
519<A NAME="myPut(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
520myPut</H3>
521<PRE>
522private void <B>myPut</B>(java.lang.Object&nbsp;key,
523                   java.lang.Object&nbsp;value)
524            throws <A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></PRE>
525<DL>
526<DD><DL>
527
528<DD><CODE><A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></CODE></DL>
529</DD>
530</DL>
531<HR>
532
533<A NAME="putAll(edu.stanford.rt.credential.OrderedMap)"><!-- --></A><H3>
534putAll</H3>
535<PRE>
536public void <B>putAll</B>(<A HREF="../../../../edu/stanford/rt/credential/OrderedMap.html">OrderedMap</A>&nbsp;map)
537            throws <A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></PRE>
538<DL>
539<DD>Copies all the mapping entries to this map, perserving the
540             original ordering of the entries.
541             
542             Exception is thrown when the key type or value type of the given
543             map does not match that of this map, or when duplicated entries
544             are detected.
545<P>
546<DD><DL>
547
548<DD><CODE><A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></CODE></DL>
549</DD>
550</DL>
551<HR>
552
553<A NAME="setUneditable()"><!-- --></A><H3>
554setUneditable</H3>
555<PRE>
556public void <B>setUneditable</B>()</PRE>
557<DL>
558<DD>marks this map as uneditable.
559<P>
560<DD><DL>
561</DL>
562</DD>
563</DL>
564<HR>
565
566<A NAME="isEditable()"><!-- --></A><H3>
567isEditable</H3>
568<PRE>
569public boolean <B>isEditable</B>()</PRE>
570<DL>
571<DD>Returns true if the map is editable.
572<P>
573<DD><DL>
574</DL>
575</DD>
576</DL>
577<HR>
578
579<A NAME="size()"><!-- --></A><H3>
580size</H3>
581<PRE>
582public int <B>size</B>()</PRE>
583<DL>
584<DD>Returns the size of this map
585<P>
586<DD><DL>
587</DL>
588</DD>
589</DL>
590<HR>
591
592<A NAME="keyIterator()"><!-- --></A><H3>
593keyIterator</H3>
594<PRE>
595public java.util.Iterator <B>keyIterator</B>()</PRE>
596<DL>
597<DD>Returns iterator to the list of keys in the map.
598<P>
599<DD><DL>
600</DL>
601</DD>
602</DL>
603<HR>
604
605<A NAME="get(java.lang.Object)"><!-- --></A><H3>
606get</H3>
607<PRE>
608public java.lang.Object <B>get</B>(java.lang.Object&nbsp;key)
609                     throws <A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></PRE>
610<DL>
611<DD>Returns the value for the given key and returns null if there is
612             no mapping for the given key .
613             
614             Exception is thrown when the type of given key does not match the
615             specified key type of this map.
616<P>
617<DD><DL>
618
619<DD><CODE><A HREF="../../../../edu/stanford/rt/credential/DomainSpecException.html">DomainSpecException</A></CODE></DL>
620</DD>
621</DL>
622<HR>
623
624<A NAME="keyList()"><!-- --></A><H3>
625keyList</H3>
626<PRE>
627public java.util.List <B>keyList</B>()</PRE>
628<DL>
629<DD>Returns an unmodifiable view of all the keys.
630<P>
631<DD><DL>
632</DL>
633</DD>
634</DL>
635<HR>
636
637<A NAME="valueMap()"><!-- --></A><H3>
638valueMap</H3>
639<PRE>
640public java.util.Map <B>valueMap</B>()</PRE>
641<DL>
642<DD>Returns an unmodifiable view of this map.
643<P>
644<DD><DL>
645</DL>
646</DD>
647</DL>
648<HR>
649
650<A NAME="getKeyClass()"><!-- --></A><H3>
651getKeyClass</H3>
652<PRE>
653public java.lang.Class <B>getKeyClass</B>()</PRE>
654<DL>
655<DD>Returns the key type.
656<P>
657<DD><DL>
658</DL>
659</DD>
660</DL>
661<HR>
662
663<A NAME="getValueClass()"><!-- --></A><H3>
664getValueClass</H3>
665<PRE>
666public java.lang.Class <B>getValueClass</B>()</PRE>
667<DL>
668<DD>Returns the value type
669<P>
670<DD><DL>
671</DL>
672</DD>
673</DL>
674<!-- ========= END OF CLASS DATA ========= -->
675<HR>
676
677<!-- ========== START OF NAVBAR ========== -->
678<A NAME="navbar_bottom"><!-- --></A>
679<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
680<TR>
681<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
682<A NAME="navbar_bottom_firstrow"><!-- --></A>
683<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
684  <TR ALIGN="center" VALIGN="top">
685  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
686  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
687  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
688  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/OrderedMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
689  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
690  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
691  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
692  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
693  </TR>
694</TABLE>
695</TD>
696<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
697</EM>
698</TD>
699</TR>
700
701<TR>
702<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
703&nbsp;<A HREF="../../../../edu/stanford/rt/credential/LinkedRole.html"><B>PREV CLASS</B></A>&nbsp;
704&nbsp;<A HREF="../../../../edu/stanford/rt/credential/Principal.html"><B>NEXT CLASS</B></A></FONT></TD>
705<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
706  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
707&nbsp;<A HREF="OrderedMap.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
708&nbsp;
709<SCRIPT>
710  <!--
711  if(window==top) {
712    document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
713  }
714  //-->
715</SCRIPT>
716<NOSCRIPT>
717<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
718</NOSCRIPT>
719</FONT></TD>
720</TR>
721<TR>
722<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
723  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
724<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
725DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
726</TR>
727</TABLE>
728<!-- =========== END OF NAVBAR =========== -->
729
730<HR>
731
732</BODY>
733</HTML>
Note: See TracBrowser for help on using the repository browser.