wt.ixb.handlers.netmarkets
Class NmFeedbackSpec

java.lang.Object
  extended bywt.ixb.handlers.netmarkets.NmFeedbackSpec
All Implemented Interfaces:
Externalizable, Serializable

public class NmFeedbackSpec
extends Object
implements Externalizable

In reality this class embeds a DefaultFeedbackSpec object. This FeedbackSpec is used to send feedback for an in-progress update.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  boolean allDone
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private static String KILL_ME
           
private  String latestMessage
           
private  List msgList
           
private  Exception nme
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  String title
           
private static boolean VERBOSE
           
 
Constructor Summary
NmFeedbackSpec()
           
 
Method Summary
 void addMessage(String msg)
          

Supported API: false
 String[] getAllMessages()
          Returns all messages in the spec.
 String[] getAllMessages(boolean lifoFlag)
          Returns all messages in the spec.
 Exception getException()
           
 String getLatesMessage()
          

Supported API: false
 String[] getRecentMessages(int msgCount)
          Returns the last msgCount messages.
 String[] getRecentMessages(int msgCount, boolean lifoFlag)
          Returns the last msgCount messages.
 String getTitle()
          Gets the value of the attribute: title.
 boolean isAllDone()
          

Supported API: false
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(NmFeedbackSpec thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setException(Exception e)
           
 void setTitle(String a_Title)
          Sets the value of the attribute: title.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

msgList

private volatile List msgList

title

private String title

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

latestMessage

private String latestMessage

nme

private Exception nme

VERBOSE

private static final boolean VERBOSE

allDone

private boolean allDone

KILL_ME

private static final String KILL_ME
Constructor Detail

NmFeedbackSpec

public NmFeedbackSpec()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(NmFeedbackSpec thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getTitle

public String getTitle()
Gets the value of the attribute: title.

Supported API: false

Returns:
String

setTitle

public void setTitle(String a_Title)
Sets the value of the attribute: title.

Supported API: false

Parameters:
a_Title -

getAllMessages

public String[] getAllMessages()
Returns all messages in the spec. The returned messages are LIFO.

Supported API: false

Returns:
String[]

getAllMessages

public String[] getAllMessages(boolean lifoFlag)
Returns all messages in the spec. If lifoFlag is true, the results are returned in reverse order. If lifoFlag is false, the messages are returned in the order they are recieved.

Supported API: false

Parameters:
lifoFlag -
Returns:
String[]

getLatesMessage

public String getLatesMessage()


Supported API: false

Returns:
String

getRecentMessages

public String[] getRecentMessages(int msgCount)
Returns the last msgCount messages. If the number of messages is less than msgCount, all messages are returned. This method returns as a Last In First Out.

Supported API: false

Parameters:
msgCount -
Returns:
String[]

addMessage

public void addMessage(String msg)


Supported API: false

Parameters:
msg -

isAllDone

public boolean isAllDone()


Supported API: false

Returns:
boolean

getRecentMessages

public String[] getRecentMessages(int msgCount,
                                  boolean lifoFlag)
Returns the last msgCount messages. If the number of messages is less than msgCount, all messages are returned. If lifeFlag is true, the results are returned using last in first out, if lifeFlag is false, the messages are returned in the order they were added.

Supported API: false

Parameters:
msgCount -
lifoFlag -
Returns:
String[]

getException

public Exception getException()

setException

public void setException(Exception e)