Package com.ibm.di.util
Class NotSerializable
- java.lang.Object
-
- com.ibm.di.util.NotSerializable
-
- All Implemented Interfaces:
java.io.Serializable
public class NotSerializable extends java.lang.Object implements java.io.SerializableThis class is used to transport information about non-serializable Objects. Used by debugger.- Since:
- 7.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_CHILDREN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributeconvertAttribute(Attribute a)Converts the values in the attribute to a serializable representation if needed.static EntryconvertEntry(Entry e)Checks if entry is of type Entry and traverses all attributes and values to see if any of them are not serializable.static java.lang.ObjectconvertObject(java.lang.Object value)Converts an object to a serializable representation if needed.static java.lang.ObjectconvertObject(java.lang.Object value, com.ibm.di.util.NotSerializable.SimpleMap map)Converts an object to a serializable representation if needed.java.lang.ObjectgetChild(int i)java.lang.StringgetChildName(int i)java.lang.StringgetClassName()java.lang.StringgetReason()java.lang.StringgetValue()intnumChildren()java.lang.StringtoString()
-
-
-
Field Detail
-
MAX_CHILDREN
public static final int MAX_CHILDREN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getChild
public java.lang.Object getChild(int i)
-
getChildName
public java.lang.String getChildName(int i)
-
getClassName
public java.lang.String getClassName()
-
getValue
public java.lang.String getValue()
-
getReason
public java.lang.String getReason()
-
numChildren
public int numChildren()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
convertEntry
public static Entry convertEntry(Entry e)
Checks if entry is of type Entry and traverses all attributes and values to see if any of them are not serializable. Non serializable values are converted to its string representation in the new returned entry.- Parameters:
e- The entry object to convert- Returns:
- The converted entry
-
convertAttribute
public static Attribute convertAttribute(Attribute a)
Converts the values in the attribute to a serializable representation if needed.- Parameters:
a- The attribute to convert- Returns:
- A new Attribute with serializable values
-
convertObject
public static java.lang.Object convertObject(java.lang.Object value)
Converts an object to a serializable representation if needed.- Parameters:
value- Object to convert.- Returns:
- A serializable representation of the object.
-
convertObject
public static java.lang.Object convertObject(java.lang.Object value, com.ibm.di.util.NotSerializable.SimpleMap map)Converts an object to a serializable representation if needed.- Parameters:
value- Object to convert.map- Map mapping objects to their representation, used to avoid loops- Returns:
- A serializable representation of the object.
-
-