Package ucar.unidata.idv.collab
Class CollabMsgType
java.lang.Object
ucar.unidata.idv.collab.CollabMsgType
Used by the CollabManager to define the different messages
that may be sent
- Version:
- $Revision: 1.8 $Date: 2005/05/13 18:30:36 $
- Author:
- IDV development team
-
Method Summary
Modifier and TypeMethodDescriptionstatic CollabMsgTypecreateNoRelay(String id, String desc) Factory method to create a CollabMsgType that should not be relayed.static CollabMsgTypecreateRelay(String id, String desc) Factory method to create a CollabMsgType that should be relayed.booleanOverwrite the equalsstatic CollabMsgTypeFind the MsgType identified by the given type typeId.booleanGet the Blocked property.booleanGet the ShouldRelay property.booleanDoes this object's identifier equals the given idvoidsetBlocked(boolean value) Set the Blocked property.voidsetShouldRelay(boolean value) Set the ShouldRelay property.toString()String representation of this type
-
Method Details
-
createRelay
Factory method to create a CollabMsgType that should be relayed.- Parameters:
id- Id of the message typedesc- Its description- Returns:
- The newly create message type
-
createNoRelay
Factory method to create a CollabMsgType that should not be relayed.- Parameters:
id- Id of the message typedesc- Its description- Returns:
- The newly create message type
-
find
Find the MsgType identified by the given type typeId.- Parameters:
typeId- The- Returns:
- The message type object or null
-
equals
Overwrite the equals -
idEquals
Does this object's identifier equals the given id- Parameters:
otherId- Id to check equality on- Returns:
- Is id equals
-
toString
String representation of this type -
setBlocked
public void setBlocked(boolean value) Set the Blocked property. This temporarily halts the processing of messages of this type.- Parameters:
value- The new value for Blocked
-
getBlocked
public boolean getBlocked()Get the Blocked property.- Returns:
- The Blocked
-
setShouldRelay
public void setShouldRelay(boolean value) Set the ShouldRelay property. Should messages of this type be relayed.- Parameters:
value- The new value for ShouldRelay
-
getShouldRelay
public boolean getShouldRelay()Get the ShouldRelay property.- Returns:
- The ShouldRelay
-