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.4.2_13) on Mon Oct 01 14:33:34 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | Algorithm (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.types.selectors.modifiedselector.Algorithm interface">
|
---|
11 |
|
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.css" TITLE="Style">
|
---|
13 |
|
---|
14 | <SCRIPT type="text/javascript">
|
---|
15 | function windowTitle()
|
---|
16 | {
|
---|
17 | parent.document.title="Algorithm (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | PREV CLASS
|
---|
53 | <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Cache.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="Algorithm.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.types.selectors.modifiedselector</FONT>
|
---|
85 | <BR>
|
---|
86 | Interface Algorithm</H2>
|
---|
87 | <DL>
|
---|
88 | <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/DigestAlgorithm.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">DigestAlgorithm</A>, <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/HashvalueAlgorithm.html" title="class in org.apache.tools.ant.types.selectors.modifiedselector">HashvalueAlgorithm</A></DD>
|
---|
89 | </DL>
|
---|
90 | <HR>
|
---|
91 | <DL>
|
---|
92 | <DT>public interface <B>Algorithm</B></DL>
|
---|
93 |
|
---|
94 | <P>
|
---|
95 | The <i>Algorithm</i> defines how a value for a file is computed.
|
---|
96 | It must be sure that multiple calls for the same file results in the
|
---|
97 | same value.
|
---|
98 | The implementing class should implement a useful toString() method.
|
---|
99 | <P>
|
---|
100 |
|
---|
101 | <P>
|
---|
102 | <DL>
|
---|
103 | <DT><B>Since:</B></DT>
|
---|
104 | <DD>Ant 1.6</DD>
|
---|
105 | <DT><B>Version:</B></DT>
|
---|
106 | <DD>2003-09-13</DD>
|
---|
107 | </DL>
|
---|
108 | <HR>
|
---|
109 |
|
---|
110 | <P>
|
---|
111 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
112 |
|
---|
113 |
|
---|
114 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
115 |
|
---|
116 |
|
---|
117 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
118 |
|
---|
119 |
|
---|
120 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
121 |
|
---|
122 | <A NAME="method_summary"><!-- --></A>
|
---|
123 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
124 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
125 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
126 | <B>Method Summary</B></FONT></TD>
|
---|
127 | </TR>
|
---|
128 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
129 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
130 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
131 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html#getValue(java.io.File)">getValue</A></B>(java.io.File file)</CODE>
|
---|
132 |
|
---|
133 | <BR>
|
---|
134 | Get the value for a file.</TD>
|
---|
135 | </TR>
|
---|
136 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
137 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
138 | <CODE> boolean</CODE></FONT></TD>
|
---|
139 | <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Algorithm.html#isValid()">isValid</A></B>()</CODE>
|
---|
140 |
|
---|
141 | <BR>
|
---|
142 | Checks its prerequisites.</TD>
|
---|
143 | </TR>
|
---|
144 | </TABLE>
|
---|
145 |
|
---|
146 | <P>
|
---|
147 |
|
---|
148 | <!-- ============ FIELD DETAIL =========== -->
|
---|
149 |
|
---|
150 |
|
---|
151 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
152 |
|
---|
153 |
|
---|
154 | <!-- ============ METHOD DETAIL ========== -->
|
---|
155 |
|
---|
156 | <A NAME="method_detail"><!-- --></A>
|
---|
157 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
158 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
159 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
160 | <B>Method Detail</B></FONT></TD>
|
---|
161 | </TR>
|
---|
162 | </TABLE>
|
---|
163 |
|
---|
164 | <A NAME="isValid()"><!-- --></A><H3>
|
---|
165 | isValid</H3>
|
---|
166 | <PRE>
|
---|
167 | public boolean <B>isValid</B>()</PRE>
|
---|
168 | <DL>
|
---|
169 | <DD>Checks its prerequisites.
|
---|
170 | <P>
|
---|
171 | <DD><DL>
|
---|
172 |
|
---|
173 | <DT><B>Returns:</B><DD><i>true</i> if all is ok, otherwise <i>false</i>.</DL>
|
---|
174 | </DD>
|
---|
175 | </DL>
|
---|
176 | <HR>
|
---|
177 |
|
---|
178 | <A NAME="getValue(java.io.File)"><!-- --></A><H3>
|
---|
179 | getValue</H3>
|
---|
180 | <PRE>
|
---|
181 | public java.lang.String <B>getValue</B>(java.io.File file)</PRE>
|
---|
182 | <DL>
|
---|
183 | <DD>Get the value for a file.
|
---|
184 | <P>
|
---|
185 | <DD><DL>
|
---|
186 | <DT><B>Parameters:</B><DD><CODE>file</CODE> - File object for which the value should be evaluated.
|
---|
187 | <DT><B>Returns:</B><DD>The value for that file</DL>
|
---|
188 | </DD>
|
---|
189 | </DL>
|
---|
190 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
191 | <HR>
|
---|
192 |
|
---|
193 |
|
---|
194 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
195 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
196 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
197 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
198 | <TR>
|
---|
199 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
200 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
201 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
202 | <TR ALIGN="center" VALIGN="top">
|
---|
203 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
204 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
205 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
206 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
207 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
208 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
209 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
210 | </TR>
|
---|
211 | </TABLE>
|
---|
212 | </TD>
|
---|
213 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
214 | </EM>
|
---|
215 | </TD>
|
---|
216 | </TR>
|
---|
217 |
|
---|
218 | <TR>
|
---|
219 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
220 | PREV CLASS
|
---|
221 | <A HREF="../../../../../../../org/apache/tools/ant/types/selectors/modifiedselector/Cache.html" title="interface in org.apache.tools.ant.types.selectors.modifiedselector"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
222 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
223 | <A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
224 | <A HREF="Algorithm.html" target="_top"><B>NO FRAMES</B></A>
|
---|
225 | <SCRIPT type="text/javascript">
|
---|
226 | <!--
|
---|
227 | if(window==top) {
|
---|
228 | document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
229 | }
|
---|
230 | //-->
|
---|
231 | </SCRIPT>
|
---|
232 | <NOSCRIPT>
|
---|
233 | <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
234 | </NOSCRIPT>
|
---|
235 |
|
---|
236 | </FONT></TD>
|
---|
237 | </TR>
|
---|
238 | <TR>
|
---|
239 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
240 | SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
241 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
242 | DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
243 | </TR>
|
---|
244 | </TABLE>
|
---|
245 | <A NAME="skip-navbar_bottom"></A>
|
---|
246 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
247 |
|
---|
248 | <HR>
|
---|
249 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
250 | </BODY>
|
---|
251 | </HTML>
|
---|