PageRenderTime 127ms CodeModel.GetById 61ms app.highlight 20ms RepoModel.GetById 40ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/bsh/CollectionManager.html

#
HTML | 364 lines | 306 code | 45 blank | 13 comment | 0 complexity | 29499160678e89c892e571160a727b7d MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2<!--NewPage-->
  3<HTML>
  4<HEAD>
  5<!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:49 GMT-08:00 2008 -->
  6<TITLE>
  7CollectionManager (jEdit API)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.bsh.CollectionManager class">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 13
 14
 15<NOSCRIPT>
 16</NOSCRIPT>
 17
 18</HEAD>
 19
 20<BODY BGCOLOR="white" >
 21
 22
 23<!-- ========= START OF TOP NAVBAR ======= -->
 24<A NAME="navbar_top"><!-- --></A>
 25<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 26<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 27<TR>
 28<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 29<A NAME="navbar_top_firstrow"><!-- --></A>
 30<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 31  <TR ALIGN="center" VALIGN="top">
 32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 34  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 35  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CollectionManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 36  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 39  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 40  </TR>
 41</TABLE>
 42</TD>
 43<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 44</EM>
 45</TD>
 46</TR>
 47
 48<TR>
 49<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 50&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
 51&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.BasicBshIterator.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
 52<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 53  <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/CollectionManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 54&nbsp;<A HREF="CollectionManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 55&nbsp;
 56<NOSCRIPT>
 57  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 58</NOSCRIPT>
 59
 60
 61</FONT></TD>
 62</TR>
 63<TR>
 64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 65  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 68</TR>
 69</TABLE>
 70<A NAME="skip-navbar_top"></A>
 71<!-- ========= END OF TOP NAVBAR ========= -->
 72
 73<HR>
 74<!-- ======== START OF CLASS DATA ======== -->
 75<H2>
 76<FONT SIZE="-1">
 77org.gjt.sp.jedit.bsh</FONT>
 78<BR>
 79Class CollectionManager</H2>
 80<PRE>
 81java.lang.Object
 82  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.bsh.CollectionManager</B>
 83</PRE>
 84<DL>
 85<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/bsh/collection/CollectionManagerImpl.html" title="class in org.gjt.sp.jedit.bsh.collection">CollectionManagerImpl</A></DD>
 86</DL>
 87<HR>
 88<DL>
 89<DT><PRE>public class <B>CollectionManager</B><DT>extends java.lang.Object</DL>
 90</PRE>
 91
 92<P>
 93The default CollectionManager (which remains Java 1.1 compatible)
 94    supports iteration over objects of type:
 95    Enumeration, Vector, String, StringBuffer and array.
 96    The dynamically loaded CollectionManagerImpl supports additional types when
 97    it is present.
 98<P>
 99
100<P>
101<HR>
102
103<P>
104<!-- ======== NESTED CLASS SUMMARY ======== -->
105
106<A NAME="nested_class_summary"><!-- --></A>
107<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
108<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
109<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
110<B>Nested Class Summary</B></FONT></TH>
111</TR>
112<TR BGCOLOR="white" CLASS="TableRowColor">
113<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
114<CODE>static&nbsp;class</CODE></FONT></TD>
115<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.BasicBshIterator.html" title="class in org.gjt.sp.jedit.bsh">CollectionManager.BasicBshIterator</A></B></CODE>
116
117<BR>
118&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An implementation that works with JDK 1.1</TD>
119</TR>
120</TABLE>
121&nbsp;
122<!-- ======== CONSTRUCTOR SUMMARY ======== -->
123
124<A NAME="constructor_summary"><!-- --></A>
125<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
126<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
127<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
128<B>Constructor Summary</B></FONT></TH>
129</TR>
130<TR BGCOLOR="white" CLASS="TableRowColor">
131<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.html#CollectionManager()">CollectionManager</A></B>()</CODE>
132
133<BR>
134&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
135</TR>
136</TABLE>
137&nbsp;
138<!-- ========== METHOD SUMMARY =========== -->
139
140<A NAME="method_summary"><!-- --></A>
141<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
142<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
143<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
144<B>Method Summary</B></FONT></TH>
145</TR>
146<TR BGCOLOR="white" CLASS="TableRowColor">
147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148<CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/BshIterator.html" title="interface in org.gjt.sp.jedit.bsh">BshIterator</A></CODE></FONT></TD>
149<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.html#getBshIterator(java.lang.Object)">getBshIterator</A></B>(java.lang.Object&nbsp;obj)</CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.html" title="class in org.gjt.sp.jedit.bsh">CollectionManager</A></CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.html#getCollectionManager()">getCollectionManager</A></B>()</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
165<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.html#getFromMap(java.lang.Object, java.lang.Object)">getFromMap</A></B>(java.lang.Object&nbsp;map,
166           java.lang.Object&nbsp;key)</CODE>
167
168<BR>
169&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
170</TR>
171<TR BGCOLOR="white" CLASS="TableRowColor">
172<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173<CODE>&nbsp;boolean</CODE></FONT></TD>
174<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.html#isBshIterable(java.lang.Object)">isBshIterable</A></B>(java.lang.Object&nbsp;obj)</CODE>
175
176<BR>
177&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
178</TR>
179<TR BGCOLOR="white" CLASS="TableRowColor">
180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181<CODE>&nbsp;boolean</CODE></FONT></TD>
182<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.html#isMap(java.lang.Object)">isMap</A></B>(java.lang.Object&nbsp;obj)</CODE>
183
184<BR>
185&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
186</TR>
187<TR BGCOLOR="white" CLASS="TableRowColor">
188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
190<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.html#putInMap(java.lang.Object, java.lang.Object, java.lang.Object)">putInMap</A></B>(java.lang.Object&nbsp;map,
191         java.lang.Object&nbsp;key,
192         java.lang.Object&nbsp;value)</CODE>
193
194<BR>
195&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
196</TR>
197</TABLE>
198&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
199<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
200<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
201<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
202</TR>
203<TR BGCOLOR="white" CLASS="TableRowColor">
204<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
205</TR>
206</TABLE>
207&nbsp;
208<P>
209
210<!-- ========= CONSTRUCTOR DETAIL ======== -->
211
212<A NAME="constructor_detail"><!-- --></A>
213<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
214<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
215<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
216<B>Constructor Detail</B></FONT></TH>
217</TR>
218</TABLE>
219
220<A NAME="CollectionManager()"><!-- --></A><H3>
221CollectionManager</H3>
222<PRE>
223public <B>CollectionManager</B>()</PRE>
224<DL>
225</DL>
226
227<!-- ============ METHOD DETAIL ========== -->
228
229<A NAME="method_detail"><!-- --></A>
230<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
231<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
232<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
233<B>Method Detail</B></FONT></TH>
234</TR>
235</TABLE>
236
237<A NAME="getCollectionManager()"><!-- --></A><H3>
238getCollectionManager</H3>
239<PRE>
240public static <A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.html" title="class in org.gjt.sp.jedit.bsh">CollectionManager</A> <B>getCollectionManager</B>()</PRE>
241<DL>
242<DD><DL>
243</DL>
244</DD>
245</DL>
246<HR>
247
248<A NAME="isBshIterable(java.lang.Object)"><!-- --></A><H3>
249isBshIterable</H3>
250<PRE>
251public boolean <B>isBshIterable</B>(java.lang.Object&nbsp;obj)</PRE>
252<DL>
253<DD><DL>
254</DL>
255</DD>
256</DL>
257<HR>
258
259<A NAME="getBshIterator(java.lang.Object)"><!-- --></A><H3>
260getBshIterator</H3>
261<PRE>
262public <A HREF="../../../../../org/gjt/sp/jedit/bsh/BshIterator.html" title="interface in org.gjt.sp.jedit.bsh">BshIterator</A> <B>getBshIterator</B>(java.lang.Object&nbsp;obj)
263                           throws java.lang.IllegalArgumentException</PRE>
264<DL>
265<DD><DL>
266
267<DT><B>Throws:</B>
268<DD><CODE>java.lang.IllegalArgumentException</CODE></DL>
269</DD>
270</DL>
271<HR>
272
273<A NAME="isMap(java.lang.Object)"><!-- --></A><H3>
274isMap</H3>
275<PRE>
276public boolean <B>isMap</B>(java.lang.Object&nbsp;obj)</PRE>
277<DL>
278<DD><DL>
279</DL>
280</DD>
281</DL>
282<HR>
283
284<A NAME="getFromMap(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
285getFromMap</H3>
286<PRE>
287public java.lang.Object <B>getFromMap</B>(java.lang.Object&nbsp;map,
288                                   java.lang.Object&nbsp;key)</PRE>
289<DL>
290<DD><DL>
291</DL>
292</DD>
293</DL>
294<HR>
295
296<A NAME="putInMap(java.lang.Object, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
297putInMap</H3>
298<PRE>
299public java.lang.Object <B>putInMap</B>(java.lang.Object&nbsp;map,
300                                 java.lang.Object&nbsp;key,
301                                 java.lang.Object&nbsp;value)</PRE>
302<DL>
303<DD><DL>
304</DL>
305</DD>
306</DL>
307<!-- ========= END OF CLASS DATA ========= -->
308<HR>
309
310
311<!-- ======= START OF BOTTOM NAVBAR ====== -->
312<A NAME="navbar_bottom"><!-- --></A>
313<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
314<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
315<TR>
316<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
317<A NAME="navbar_bottom_firstrow"><!-- --></A>
318<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
319  <TR ALIGN="center" VALIGN="top">
320  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
321  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
322  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
323  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CollectionManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
324  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
325  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
326  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
327  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
328  </TR>
329</TABLE>
330</TD>
331<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
332</EM>
333</TD>
334</TR>
335
336<TR>
337<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
338&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/ClassPathException.html" title="class in org.gjt.sp.jedit.bsh"><B>PREV CLASS</B></A>&nbsp;
339&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/bsh/CollectionManager.BasicBshIterator.html" title="class in org.gjt.sp.jedit.bsh"><B>NEXT CLASS</B></A></FONT></TD>
340<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
341  <A HREF="../../../../../index.html?org/gjt/sp/jedit/bsh/CollectionManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;
342&nbsp;<A HREF="CollectionManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
343&nbsp;
344<NOSCRIPT>
345  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
346</NOSCRIPT>
347
348
349</FONT></TD>
350</TR>
351<TR>
352<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
353  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
354<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
355DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
356</TR>
357</TABLE>
358<A NAME="skip-navbar_bottom"></A>
359<!-- ======== END OF BOTTOM NAVBAR ======= -->
360
361<HR>
362
363</BODY>
364</HTML>