1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
\r
5 <!-- Generated by javadoc (build 1.5.0_06) on Fri Oct 17 16:04:52 EDT 2008 -->
\r
7 ErrorHandler (MARC4J API)
\r
10 <META NAME="keywords" CONTENT="org.marc4j.ErrorHandler class">
\r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
\r
14 <SCRIPT type="text/javascript">
\r
15 function windowTitle()
\r
17 parent.document.title="ErrorHandler (MARC4J API)";
\r
25 <BODY BGCOLOR="white" onload="windowTitle();">
\r
28 <!-- ========= START OF TOP NAVBAR ======= -->
\r
29 <A NAME="navbar_top"><!-- --></A>
\r
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
\r
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
34 <A NAME="navbar_top_firstrow"><!-- --></A>
\r
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
36 <TR ALIGN="center" VALIGN="top">
\r
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ErrorHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
48 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
55 <A HREF="../../org/marc4j/Constants.html" title="class in org.marc4j"><B>PREV CLASS</B></A>
\r
56 <A HREF="../../org/marc4j/ErrorHandler.Error.html" title="class in org.marc4j"><B>NEXT CLASS</B></A></FONT></TD>
\r
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
58 <A HREF="../../index.html?org/marc4j/ErrorHandler.html" target="_top"><B>FRAMES</B></A>
\r
59 <A HREF="ErrorHandler.html" target="_top"><B>NO FRAMES</B></A>
\r
60 <SCRIPT type="text/javascript">
\r
63 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
68 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
\r
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
76 SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
78 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
81 <A NAME="skip-navbar_top"></A>
\r
82 <!-- ========= END OF TOP NAVBAR ========= -->
\r
85 <!-- ======== START OF CLASS DATA ======== -->
\r
90 Class ErrorHandler</H2>
\r
92 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
\r
93 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>org.marc4j.ErrorHandler</B>
\r
97 <DT><PRE>public class <B>ErrorHandler</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
\r
101 Defines and describes errors encountered in the processing a given MARC record.
102 Used in conjunction with the MarcPermissiveReader class.
\r
107 <DT><B>Version:</B></DT>
\r
108 <DD>$Revision: 1.8 $</DD>
\r
109 <DT><B>Author:</B></DT>
\r
110 <DD>Robert Haschart</DD>
\r
115 <!-- ======== NESTED CLASS SUMMARY ======== -->
\r
117 <A NAME="nested_class_summary"><!-- --></A>
\r
118 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
119 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
120 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
121 <B>Nested Class Summary</B></FONT></TH>
\r
123 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
124 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
125 <CODE> class</CODE></FONT></TD>
\r
126 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.Error.html" title="class in org.marc4j">ErrorHandler.Error</A></B></CODE>
\r
129 </TD>
\r
132 <!-- =========== FIELD SUMMARY =========== -->
\r
134 <A NAME="field_summary"><!-- --></A>
\r
135 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
136 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
137 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
138 <B>Field Summary</B></FONT></TH>
\r
140 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
141 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
142 <CODE>static int</CODE></FONT></TD>
\r
143 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#ERROR_TYPO">ERROR_TYPO</A></B></CODE>
\r
146 ERROR_TYPO indicates that an even less severe problem was found with the record,
147 such as the record leader ends with characters other than "4500" or a field tag
148 contains non-numeric characters the record contains a html-style entity reference
149 such as & or "e; which was replaced with the unescaped version.</TD>
\r
151 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
152 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
153 <CODE>static int</CODE></FONT></TD>
\r
154 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#FATAL">FATAL</A></B></CODE>
\r
157 FATAL is the most severe error, it is usually set in conjunction with throwing an
158 exception, generally no record is returned when a FATAL error occurs.</TD>
\r
160 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
162 <CODE>static int</CODE></FONT></TD>
\r
163 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#INFO">INFO</A></B></CODE>
\r
166 INFO is used to pass information about the record translation process.</TD>
\r
168 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
170 <CODE>static int</CODE></FONT></TD>
\r
171 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#MAJOR_ERROR">MAJOR_ERROR</A></B></CODE>
\r
174 MAJOR_ERROR indicates that a serious problem existed with the record, such as a
175 malformed directory or an invalid subfield tag, or an encoding error where missing
176 data had to be inferred through some heuristic process.</TD>
\r
178 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
179 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
180 <CODE>static int</CODE></FONT></TD>
\r
181 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#MINOR_ERROR">MINOR_ERROR</A></B></CODE>
\r
184 MINOR_ERROR indicates that a less serious problem existed with the record, such as
185 a mismatch between the directory stated field sizes and the actual field sizes,
186 or an encoding error where extraneous data had to be discarded to correctly
187 interpret the data.</TD>
\r
191 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
193 <A NAME="constructor_summary"><!-- --></A>
\r
194 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
195 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
196 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
197 <B>Constructor Summary</B></FONT></TH>
\r
199 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
200 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#ErrorHandler()">ErrorHandler</A></B>()</CODE>
\r
203 </TD>
\r
207 <!-- ========== METHOD SUMMARY =========== -->
\r
209 <A NAME="method_summary"><!-- --></A>
\r
210 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
211 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
212 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
213 <B>Method Summary</B></FONT></TH>
\r
215 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
216 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
217 <CODE> void</CODE></FONT></TD>
\r
218 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#addError(int, java.lang.String)">addError</A></B>(int severity,
\r
219 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message)</CODE>
\r
222 Logs an error message using the stated severity level.</TD>
\r
224 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
225 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
226 <CODE> void</CODE></FONT></TD>
\r
227 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#addError(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String)">addError</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> id,
\r
228 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> field,
\r
229 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> subfield,
\r
231 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message)</CODE>
\r
234 Logs an error message using the stated severity level.</TD>
\r
236 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
237 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
238 <CODE> <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD>
\r
239 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#getErrors()">getErrors</A></B>()</CODE>
\r
242 Returns a list of all of the errors encountered in processing the current record.</TD>
\r
244 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
245 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
246 <CODE> int</CODE></FONT></TD>
\r
247 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#getMaxSeverity()">getMaxSeverity</A></B>()</CODE>
\r
250 Returns the highest error severity level encountered in processing the current record.</TD>
\r
252 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
253 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
254 <CODE> boolean</CODE></FONT></TD>
\r
255 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#hasErrors()">hasErrors</A></B>()</CODE>
\r
258 Returns true if any errors (or warnings) were encountered in processing the
259 current record.</TD>
\r
261 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
262 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
263 <CODE> void</CODE></FONT></TD>
\r
264 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#reset()">reset</A></B>()</CODE>
\r
267 Resets the list of errors to empty.</TD>
\r
269 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
270 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
271 <CODE> void</CODE></FONT></TD>
\r
272 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#setCurrentField(java.lang.String)">setCurrentField</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> curField)</CODE>
\r
275 Sets the field tag to be stored for subsequent error messages that are logged</TD>
\r
277 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
278 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
279 <CODE> void</CODE></FONT></TD>
\r
280 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#setCurrentSubfield(java.lang.String)">setCurrentSubfield</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> curSubfield)</CODE>
\r
283 Sets the subfield tag to be stored for subsequent error messages that are logged</TD>
\r
285 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
286 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
287 <CODE> void</CODE></FONT></TD>
\r
288 <TD><CODE><B><A HREF="../../org/marc4j/ErrorHandler.html#setRecordID(java.lang.String)">setRecordID</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> recordID)</CODE>
\r
291 Sets the record ID to be stored for subsequent error messages that are logged
292 If any previous messages are stored for the current record that don't have a
293 stored record ID, set the value for those entries to this value also.</TD>
\r
296 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
\r
297 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
298 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
299 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
\r
301 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
302 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
\r
308 <!-- ============ FIELD DETAIL =========== -->
\r
310 <A NAME="field_detail"><!-- --></A>
\r
311 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
312 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
313 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
314 <B>Field Detail</B></FONT></TH>
\r
318 <A NAME="FATAL"><!-- --></A><H3>
\r
321 public static final int <B>FATAL</B></PRE>
\r
323 <DD>FATAL is the most severe error, it is usually set in conjunction with throwing an
324 exception, generally no record is returned when a FATAL error occurs. Although in
325 some instances (a record with a field > 9999 bytes long) a record will be returned
326 that can be used, but it cannot be written back out without causing an error.
\r
329 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.ErrorHandler.FATAL">Constant Field Values</A></DL>
\r
333 <A NAME="MAJOR_ERROR"><!-- --></A><H3>
\r
336 public static final int <B>MAJOR_ERROR</B></PRE>
\r
338 <DD>MAJOR_ERROR indicates that a serious problem existed with the record, such as a
339 malformed directory or an invalid subfield tag, or an encoding error where missing
340 data had to be inferred through some heuristic process. This indicates that
341 although a record is returned, you cannot be sure that the record is not corrupted.
\r
344 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.ErrorHandler.MAJOR_ERROR">Constant Field Values</A></DL>
\r
348 <A NAME="MINOR_ERROR"><!-- --></A><H3>
\r
351 public static final int <B>MINOR_ERROR</B></PRE>
\r
353 <DD>MINOR_ERROR indicates that a less serious problem existed with the record, such as
354 a mismatch between the directory stated field sizes and the actual field sizes,
355 or an encoding error where extraneous data had to be discarded to correctly
356 interpret the data.
\r
359 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.ErrorHandler.MINOR_ERROR">Constant Field Values</A></DL>
\r
363 <A NAME="ERROR_TYPO"><!-- --></A><H3>
\r
366 public static final int <B>ERROR_TYPO</B></PRE>
\r
368 <DD>ERROR_TYPO indicates that an even less severe problem was found with the record,
369 such as the record leader ends with characters other than "4500" or a field tag
370 contains non-numeric characters the record contains a html-style entity reference
371 such as & or "e; which was replaced with the unescaped version.
\r
374 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.ErrorHandler.ERROR_TYPO">Constant Field Values</A></DL>
\r
378 <A NAME="INFO"><!-- --></A><H3>
\r
381 public static final int <B>INFO</B></PRE>
\r
383 <DD>INFO is used to pass information about the record translation process. It does
384 not indicate an error. It usually will occur when a defaultEncoding value of "BESTGUESS"
385 is passed in. INFO statements are generated to indicate which character encoding was
386 determined to be the best fit for the data, and why.
\r
389 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.ErrorHandler.INFO">Constant Field Values</A></DL>
\r
392 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
394 <A NAME="constructor_detail"><!-- --></A>
\r
395 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
396 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
397 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
398 <B>Constructor Detail</B></FONT></TH>
\r
402 <A NAME="ErrorHandler()"><!-- --></A><H3>
\r
405 public <B>ErrorHandler</B>()</PRE>
\r
409 <!-- ============ METHOD DETAIL ========== -->
\r
411 <A NAME="method_detail"><!-- --></A>
\r
412 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
413 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
414 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
415 <B>Method Detail</B></FONT></TH>
\r
419 <A NAME="hasErrors()"><!-- --></A><H3>
\r
422 public boolean <B>hasErrors</B>()</PRE>
\r
424 <DD>Returns true if any errors (or warnings) were encountered in processing the
425 current record. Note that if only INFO level messages are encountered for a
426 given record, this method will return false.
\r
430 <DT><B>Returns:</B><DD>boolean - The highest error severity level encountered for the current record.</DL>
\r
435 <A NAME="getMaxSeverity()"><!-- --></A><H3>
\r
436 getMaxSeverity</H3>
\r
438 public int <B>getMaxSeverity</B>()</PRE>
\r
440 <DD>Returns the highest error severity level encountered in processing the current record.
\r
444 <DT><B>Returns:</B><DD>int - The highest error severity level encountered for the current record.</DL>
\r
449 <A NAME="getErrors()"><!-- --></A><H3>
\r
452 public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getErrors</B>()</PRE>
\r
454 <DD>Returns a list of all of the errors encountered in processing the current record.
\r
458 <DT><B>Returns:</B><DD>List - A list of all of the errors encountered for the current record.</DL>
\r
463 <A NAME="reset()"><!-- --></A><H3>
\r
466 public void <B>reset</B>()</PRE>
\r
468 <DD>Resets the list of errors to empty. This should be called at the beginning of
469 processing of each record.
\r
477 <A NAME="addError(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String)"><!-- --></A><H3>
\r
480 public void <B>addError</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> id,
\r
481 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> field,
\r
482 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> subfield,
\r
484 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message)</PRE>
\r
486 <DD>Logs an error message using the stated severity level. Uses the values passed
487 in id, field, and subfield to note the location of the error.
\r
490 <DT><B>Parameters:</B><DD><CODE>id</CODE> - - the record ID of the record currently being processed<DD><CODE>field</CODE> - - the tag of the field currently being processed<DD><CODE>subfield</CODE> - - the subfield tag of the subfield currently being processed<DD><CODE>severity</CODE> - - An indication of the relative severity of the error that was
491 encountered.<DD><CODE>message</CODE> - - A descriptive message about the error that was encountered.</DL>
\r
496 <A NAME="addError(int, java.lang.String)"><!-- --></A><H3>
\r
499 public void <B>addError</B>(int severity,
\r
500 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message)</PRE>
\r
502 <DD>Logs an error message using the stated severity level. Uses the values stored
503 in curRecordID, curField, and curSubfield to note the location of the error.
\r
506 <DT><B>Parameters:</B><DD><CODE>severity</CODE> - - An indication of the relative severity of the error that was
507 encountered.<DD><CODE>message</CODE> - - A descriptive message about the error that was encountered.</DL>
\r
512 <A NAME="setRecordID(java.lang.String)"><!-- --></A><H3>
\r
515 public void <B>setRecordID</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> recordID)</PRE>
\r
517 <DD>Sets the record ID to be stored for subsequent error messages that are logged
518 If any previous messages are stored for the current record that don't have a
519 stored record ID, set the value for those entries to this value also.
\r
522 <DT><B>Parameters:</B><DD><CODE>recordID</CODE> - - the record ID of the record currently being processed</DL>
\r
527 <A NAME="setCurrentField(java.lang.String)"><!-- --></A><H3>
\r
528 setCurrentField</H3>
\r
530 public void <B>setCurrentField</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> curField)</PRE>
\r
532 <DD>Sets the field tag to be stored for subsequent error messages that are logged
\r
535 <DT><B>Parameters:</B><DD><CODE>curField</CODE> - - the tag of the field currently being processed</DL>
\r
540 <A NAME="setCurrentSubfield(java.lang.String)"><!-- --></A><H3>
\r
541 setCurrentSubfield</H3>
\r
543 public void <B>setCurrentSubfield</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> curSubfield)</PRE>
\r
545 <DD>Sets the subfield tag to be stored for subsequent error messages that are logged
\r
548 <DT><B>Parameters:</B><DD><CODE>curSubfield</CODE> - - the subfield tag of the subfield currently being processed</DL>
\r
551 <!-- ========= END OF CLASS DATA ========= -->
\r
555 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
556 <A NAME="navbar_bottom"><!-- --></A>
\r
557 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
\r
558 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
560 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
561 <A NAME="navbar_bottom_firstrow"><!-- --></A>
\r
562 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
563 <TR ALIGN="center" VALIGN="top">
\r
564 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
565 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
566 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
567 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ErrorHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
568 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
569 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
570 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
571 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
575 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
581 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
582 <A HREF="../../org/marc4j/Constants.html" title="class in org.marc4j"><B>PREV CLASS</B></A>
\r
583 <A HREF="../../org/marc4j/ErrorHandler.Error.html" title="class in org.marc4j"><B>NEXT CLASS</B></A></FONT></TD>
\r
584 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
585 <A HREF="../../index.html?org/marc4j/ErrorHandler.html" target="_top"><B>FRAMES</B></A>
\r
586 <A HREF="ErrorHandler.html" target="_top"><B>NO FRAMES</B></A>
\r
587 <SCRIPT type="text/javascript">
\r
590 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
595 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
\r
602 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
603 SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
604 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
605 DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
608 <A NAME="skip-navbar_bottom"></A>
\r
609 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r
612 Copyright © 2002-2006 Bas Peters. All Rights Reserved.
\r