IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.base
Class ErrorInfo

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended bycom.ibm.btt.base.Hashtable
              extended bycom.ibm.btt.base.ErrorInfo
All Implemented Interfaces:
java.lang.Cloneable, DSECloneable, java.util.Map, java.io.Serializable

public class ErrorInfo
extends Hashtable
implements java.io.Serializable

This class is a Hashtable of errors detected trying to validate an input object. Each entry of the table has as its key the error code and as its value the error message.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Field Summary
(package private)  java.lang.Object inputObject
           
 
Constructor Summary
ErrorInfo(int initialCapacity, float loadFactor, java.lang.Object anInputObject)
          Creates an ErrorInfo object.
ErrorInfo(int initialCapacity, java.lang.Object anInputObject)
          Creates an ErrorInfo object.
ErrorInfo(java.lang.Object anInputObject)
          Creates an ErrorInfo object.
 
Method Summary
 java.lang.Object clone()
          Returns a new Hashtable cloned from the current one.
 java.lang.String get(java.lang.String id, java.util.Locale locale)
          Returns the localized message associated with the error.
 java.lang.String getDynamicInfo(java.lang.String id)
          Return the localized dynamic part of the message.
 java.lang.String getDynamicInfo(java.lang.String id, java.lang.String startDelim, java.lang.String endDelim)
          Return the localized dynamic part of the message.
 java.lang.Object getInputObject()
          Returns the input object, that is, the object that was set to the DataElement and was found invalid during the validation process.
 void setInputObject(java.lang.Object anInputObject)
          Sets the input object, that is, the object that is meant to be the value of the DataElement
 
Methods inherited from class com.ibm.btt.base.Hashtable
clone, clone, keyAtValue, removeAll, toString
 
Methods inherited from class java.util.Hashtable
clear, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

inputObject

java.lang.Object inputObject
Constructor Detail

ErrorInfo

public ErrorInfo(int initialCapacity,
                 float loadFactor,
                 java.lang.Object anInputObject)
Creates an ErrorInfo object.

Parameters:
initialCapacity - int
loadFactor - float
anInputObject - Object

ErrorInfo

public ErrorInfo(int initialCapacity,
                 java.lang.Object anInputObject)
Creates an ErrorInfo object.

Parameters:
initialCapacity - int
anInputObject - Object

ErrorInfo

public ErrorInfo(java.lang.Object anInputObject)
Creates an ErrorInfo object.

Parameters:
anInputObject - Object
Method Detail

clone

public java.lang.Object clone()
Returns a new Hashtable cloned from the current one.

Specified by:
clone in interface DSECloneable
Overrides:
clone in class Hashtable
Returns:
java.lang.Object

get

public java.lang.String get(java.lang.String id,
                            java.util.Locale locale)
Returns the localized message associated with the error.

Returns:
String

getDynamicInfo

public java.lang.String getDynamicInfo(java.lang.String id)
Return the localized dynamic part of the message.

Returns:
String

getDynamicInfo

public java.lang.String getDynamicInfo(java.lang.String id,
                                       java.lang.String startDelim,
                                       java.lang.String endDelim)
Return the localized dynamic part of the message.

Returns:
String

getInputObject

public java.lang.Object getInputObject()
Returns the input object, that is, the object that was set to the DataElement and was found invalid during the validation process.


setInputObject

public void setInputObject(java.lang.Object anInputObject)
Sets the input object, that is, the object that is meant to be the value of the DataElement

Parameters:
anInputObject - Object

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005