a whole bunch of stuff
[ephemerata.git] / KezvhLib / lib / org.apache.commons.collections / apidocs / org / apache / commons / collections / Factory.html
blob706668b457d60bc981c4e429b315cfd9d3d19a48
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_07) on Fri Apr 11 15:39:17 BST 2008 -->
6 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
7 <TITLE>
8 Factory (Commons Collections 3.2.1 API)
9 </TITLE>
11 <META NAME="keywords" CONTENT="org.apache.commons.collections.Factory interface">
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
15 <SCRIPT type="text/javascript">
16 function windowTitle()
18 parent.document.title="Factory (Commons Collections 3.2.1 API)";
20 </SCRIPT>
21 <NOSCRIPT>
22 </NOSCRIPT>
24 </HEAD>
26 <BODY BGCOLOR="white" onload="windowTitle();">
29 <!-- ========= START OF TOP NAVBAR ======= -->
30 <A NAME="navbar_top"><!-- --></A>
31 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
32 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
33 <TR>
34 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
35 <A NAME="navbar_top_firstrow"><!-- --></A>
36 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
37 <TR ALIGN="center" VALIGN="top">
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Factory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
46 </TR>
47 </TABLE>
48 </TD>
49 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
50 </EM>
51 </TD>
52 </TR>
54 <TR>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 &nbsp;<A HREF="../../../../org/apache/commons/collections/ExtendedProperties.html" title="class in org.apache.commons.collections"><B>PREV CLASS</B></A>&nbsp;
57 &nbsp;<A HREF="../../../../org/apache/commons/collections/FactoryUtils.html" title="class in org.apache.commons.collections"><B>NEXT CLASS</B></A></FONT></TD>
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59 <A HREF="../../../../index.html?org/apache/commons/collections/Factory.html" target="_top"><B>FRAMES</B></A> &nbsp;
60 &nbsp;<A HREF="Factory.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
61 &nbsp;<SCRIPT type="text/javascript">
62 <!--
63 if(window==top) {
64 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
66 //-->
67 </SCRIPT>
68 <NOSCRIPT>
69 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
70 </NOSCRIPT>
73 </FONT></TD>
74 </TR>
75 <TR>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
80 </TR>
81 </TABLE>
82 <A NAME="skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
85 <HR>
86 <!-- ======== START OF CLASS DATA ======== -->
87 <H2>
88 <FONT SIZE="-1">
89 org.apache.commons.collections</FONT>
90 <BR>
91 Interface Factory</H2>
92 <DL>
93 <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/apache/commons/collections/functors/ConstantFactory.html" title="class in org.apache.commons.collections.functors">ConstantFactory</A>, <A HREF="../../../../org/apache/commons/collections/functors/ExceptionFactory.html" title="class in org.apache.commons.collections.functors">ExceptionFactory</A>, <A HREF="../../../../org/apache/commons/collections/functors/InstantiateFactory.html" title="class in org.apache.commons.collections.functors">InstantiateFactory</A></DD>
94 </DL>
95 <HR>
96 <DL>
97 <DT><PRE>public interface <B>Factory</B></DL>
98 </PRE>
101 Defines a functor interface implemented by classes that create objects.
103 A <code>Factory</code> creates an object without using an input parameter.
104 If an input parameter is required, then <A HREF="../../../../org/apache/commons/collections/Transformer.html" title="interface in org.apache.commons.collections"><CODE>Transformer</CODE></A> is more appropriate.
106 Standard implementations of common factories are provided by
107 <A HREF="../../../../org/apache/commons/collections/FactoryUtils.html" title="class in org.apache.commons.collections"><CODE>FactoryUtils</CODE></A>. These include factories that return a constant,
108 a copy of a prototype or a new instance.
112 <DL>
113 <DT><B>Since:</B></DT>
114 <DD>Commons Collections 2.1</DD>
115 <DT><B>Version:</B></DT>
116 <DD>$Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $</DD>
117 <DT><B>Author:</B></DT>
118 <DD>Arron Bates, Stephen Colebourne</DD>
119 </DL>
120 <HR>
124 <!-- ========== METHOD SUMMARY =========== -->
126 <A NAME="method_summary"><!-- --></A>
127 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
128 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
129 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
130 <B>Method Summary</B></FONT></TH>
131 </TR>
132 <TR BGCOLOR="white" CLASS="TableRowColor">
133 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
134 <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
135 <TD><CODE><B><A HREF="../../../../org/apache/commons/collections/Factory.html#create()">create</A></B>()</CODE>
137 <BR>
138 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new object.</TD>
139 </TR>
140 </TABLE>
141 &nbsp;
144 <!-- ============ METHOD DETAIL ========== -->
146 <A NAME="method_detail"><!-- --></A>
147 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
148 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
149 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
150 <B>Method Detail</B></FONT></TH>
151 </TR>
152 </TABLE>
154 <A NAME="create()"><!-- --></A><H3>
155 create</H3>
156 <PRE>
157 java.lang.Object <B>create</B>()</PRE>
158 <DL>
159 <DD>Create a new object.
161 <DD><DL>
163 <DT><B>Returns:</B><DD>a new object
164 <DT><B>Throws:</B>
165 <DD><CODE><A HREF="../../../../org/apache/commons/collections/FunctorException.html" title="class in org.apache.commons.collections">FunctorException</A></CODE> - (runtime) if the factory cannot create an object</DL>
166 </DD>
167 </DL>
168 <!-- ========= END OF CLASS DATA ========= -->
169 <HR>
172 <!-- ======= START OF BOTTOM NAVBAR ====== -->
173 <A NAME="navbar_bottom"><!-- --></A>
174 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
175 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
176 <TR>
177 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
178 <A NAME="navbar_bottom_firstrow"><!-- --></A>
179 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
180 <TR ALIGN="center" VALIGN="top">
181 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
182 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
183 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
184 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Factory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
185 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
186 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
187 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
188 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
189 </TR>
190 </TABLE>
191 </TD>
192 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
193 </EM>
194 </TD>
195 </TR>
197 <TR>
198 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
199 &nbsp;<A HREF="../../../../org/apache/commons/collections/ExtendedProperties.html" title="class in org.apache.commons.collections"><B>PREV CLASS</B></A>&nbsp;
200 &nbsp;<A HREF="../../../../org/apache/commons/collections/FactoryUtils.html" title="class in org.apache.commons.collections"><B>NEXT CLASS</B></A></FONT></TD>
201 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
202 <A HREF="../../../../index.html?org/apache/commons/collections/Factory.html" target="_top"><B>FRAMES</B></A> &nbsp;
203 &nbsp;<A HREF="Factory.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
204 &nbsp;<SCRIPT type="text/javascript">
205 <!--
206 if(window==top) {
207 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
209 //-->
210 </SCRIPT>
211 <NOSCRIPT>
212 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
213 </NOSCRIPT>
216 </FONT></TD>
217 </TR>
218 <TR>
219 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
220 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
221 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
222 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
223 </TR>
224 </TABLE>
225 <A NAME="skip-navbar_bottom"></A>
226 <!-- ======== END OF BOTTOM NAVBAR ======= -->
228 <HR>
229 Copyright © 2001-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
230 </BODY>
231 </HTML>