Log4j 1.1

pl.psnc.expres.remote.protocol.notification
Enum Sender

java.lang.Object
  extended by java.lang.Enum<Sender>
      extended by pl.psnc.expres.remote.protocol.notification.Sender
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Sender>

public enum Sender
extends java.lang.Enum<Sender>

Sender enum - defines a list of message senders

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Enum Constant Summary
CORRELATION_DATA_SERVICE
          Sender code for Correlated Data Serrvice module
CORRELATION_NODE
          Sender code for Correlatin Node module
TRANSLATION_NODE
          Sender code for Translation Node module
VLBI_BROKER
          Sender code for Vlbi Broker module
 
Method Summary
static Sender getSender(java.lang.String code)
          Get sender instance by the given sender code
 java.lang.String getSenderCode()
          Get sender code
 java.lang.String toString()
           
static Sender valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Sender[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VLBI_BROKER

public static final Sender VLBI_BROKER
Sender code for Vlbi Broker module


TRANSLATION_NODE

public static final Sender TRANSLATION_NODE
Sender code for Translation Node module


CORRELATION_NODE

public static final Sender CORRELATION_NODE
Sender code for Correlatin Node module


CORRELATION_DATA_SERVICE

public static final Sender CORRELATION_DATA_SERVICE
Sender code for Correlated Data Serrvice module

Method Detail

values

public static Sender[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Sender c : Sender.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Sender valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Sender>

getSender

public static Sender getSender(java.lang.String code)
Get sender instance by the given sender code

Parameters:
code - sender code
Returns:
sender instance by the given sender code or NULL if such enum was not found.

getSenderCode

public java.lang.String getSenderCode()
Get sender code

Returns:
the sender code

Log4j 1.1

Copyright 2007-2008 by VLAB