public class MessageEvent extends CVSEvent
source| Constructor and Description |
|---|
MessageEvent(Object source)
Construct a MessageEvent with no message text
|
MessageEvent(Object source,
String message,
boolean isError)
Construct a MessageEvent
|
MessageEvent(Object source,
String message,
byte[] raw,
boolean isError) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireEvent(CVSListener listener)
Fire the event to the event listener.
|
String |
getMessage()
Getter for property message.
|
byte[] |
getRawData() |
boolean |
isError()
Get whether the message should be displayed in stderr
|
boolean |
isTagged()
Getter for property tagged.
|
static String |
parseTaggedMessage(StringBuffer taggedLineBufferNotNull,
String taggedMessage)
Parses the tagged message using the specified buffer.
|
void |
setError(boolean error)
Set whether the message should go to stderr
|
void |
setMessage(String message)
Setter for property message.
|
void |
setTagged(boolean tagged)
Setter for property tagged.
|
getSource, toStringpublic MessageEvent(Object source, String message, boolean isError)
source - the source of the eventmessage - the message textisError - true if the message is an error message (i.e. intended for
stderr rather than stdout), false otherwisepublic MessageEvent(Object source)
source - the source of the eventpublic String getMessage()
public byte[] getRawData()
public void setMessage(String message)
message - New value of property message.public boolean isError()
public void setError(boolean error)
error - true if the message is an error message, false otherwiseprotected void fireEvent(CVSListener listener)
public boolean isTagged()
public void setTagged(boolean tagged)
tagged - New value of property tagged.public static String parseTaggedMessage(StringBuffer taggedLineBufferNotNull, String taggedMessage)
Copyright © 2013. All rights reserved.