DLESE Tools
v1.6.0

org.dlese.dpc.index.writer
Class ErrorDocException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dlese.dpc.index.writer.ErrorDocException
All Implemented Interfaces:
Serializable

public class ErrorDocException
extends Exception

Exception that may be used to pass text and keywords to be written to the index by the ErrorFileIndexingWriter if an error occurs during indexing.

Author:
John Weatherley
See Also:
ErrorFileIndexingWriter, Serialized Form

Constructor Summary
ErrorDocException(String message, String errorDocType)
          Constructs an Exception with the specified detail message.
 
Method Summary
 String getErrorDocType()
           
 String[] getKeywordFieldNames()
          Gets the names of the fields to be indexed as keywords.
 String getKeywordFieldValue(String fieldName)
          Gets the value of the field to be indexed as a keyword.
 String[] getTextFieldNames()
          Gets the names of the fields to be indexed as text.
 String getTextFieldValue(String fieldName)
          Gets the value of the field to be indexed as text.
 void putKeywordField(String fieldName, String keyword)
          Adds a field to be indexed as a keyword.
 void putTextField(String fieldName, String text)
          Adds a field to be indexed as text.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorDocException

public ErrorDocException(String message,
                         String errorDocType)
Constructs an Exception with the specified detail message.

Parameters:
message - the detailed message.
Method Detail

getErrorDocType

public String getErrorDocType()

putKeywordField

public void putKeywordField(String fieldName,
                            String keyword)
Adds a field to be indexed as a keyword.

Parameters:
fieldName - The field name
keyword - The field content

getKeywordFieldNames

public String[] getKeywordFieldNames()
Gets the names of the fields to be indexed as keywords.

Returns:
The keywordFieldNames value

getKeywordFieldValue

public String getKeywordFieldValue(String fieldName)
Gets the value of the field to be indexed as a keyword.

Parameters:
fieldName - The field name
Returns:
The value, or null

putTextField

public void putTextField(String fieldName,
                         String text)
Adds a field to be indexed as text.

Parameters:
fieldName - The field name
text - The field value

getTextFieldNames

public String[] getTextFieldNames()
Gets the names of the fields to be indexed as text.

Returns:
The field names

getTextFieldValue

public String getTextFieldValue(String fieldName)
Gets the value of the field to be indexed as text.

Parameters:
fieldName - The field name
Returns:
The value

DLESE Tools
v1.6.0