org.fuin.jmsmvc4swing.jms
Class Utils

java.lang.Object
  extended by org.fuin.jmsmvc4swing.jms.Utils

public final class Utils
extends java.lang.Object

Utilities for the package.


Method Summary
static java.lang.String getIdExpr(long id)
          Create a selector message for a given method call id.
static java.lang.String getMessageSelector(java.lang.String methodName, java.lang.Long id, MessageType type)
          Create a selector message for a given method name, id and type.
static java.lang.String getMessageSelector(java.lang.String methodName, java.lang.Long id, MessageType[] type)
          Create a selector message for a given method name, id and types.
static java.lang.String getMethodExpr(java.lang.String methodName)
          Create a selector message for a given method name.
static java.lang.String getTypeExpr(MessageType type)
          Create a selector message for a given message type.
static java.lang.String getTypeExpr(MessageType[] type)
          Create a selector message for given message types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTypeExpr

public static java.lang.String getTypeExpr(MessageType type)
Create a selector message for a given message type.

Parameters:
type - Message type.
Returns:
A string that can be used for a selector.

getTypeExpr

public static java.lang.String getTypeExpr(MessageType[] type)
Create a selector message for given message types.

Parameters:
type - Message types.
Returns:
A string that can be used for a selector.

getMethodExpr

public static java.lang.String getMethodExpr(java.lang.String methodName)
Create a selector message for a given method name.

Parameters:
methodName - Name of a method.
Returns:
A string that can be used for a selector.

getIdExpr

public static java.lang.String getIdExpr(long id)
Create a selector message for a given method call id.

Parameters:
id - Unique method call id.
Returns:
A string that can be used for a selector.

getMessageSelector

public static java.lang.String getMessageSelector(java.lang.String methodName,
                                                  java.lang.Long id,
                                                  MessageType type)
Create a selector message for a given method name, id and type.

Parameters:
methodName - Name of a method - Can be null.
id - Unique method call id - Can be null.
type - Message type - Can be NULL.
Returns:
A string that can be used for a selector.

getMessageSelector

public static java.lang.String getMessageSelector(java.lang.String methodName,
                                                  java.lang.Long id,
                                                  MessageType[] type)
Create a selector message for a given method name, id and types.

Parameters:
methodName - Name of a method - Can be null.
id - Unique method call id - Can be null.
type - Message types - Can be NULL.
Returns:
A string that can be used for a selector.


Copyright © 2010 Future Invent Informationsmanagement GmbH. All Rights Reserved.