org.ow2.petals.component.framework.api
Enum Message.MEPConstants

java.lang.Object
  extended by java.lang.Enum<Message.MEPConstants>
      extended by org.ow2.petals.component.framework.api.Message.MEPConstants
All Implemented Interfaces:
Serializable, Comparable<Message.MEPConstants>
Enclosing class:
Message

public static enum Message.MEPConstants
extends Enum<Message.MEPConstants>

Constants for the JBI Message Exchange Patterns.

Author:
ofabre, gblondelle

Enum Constant Summary
IN_ONLY_PATTERN
           
IN_OPTIONAL_OUT_PATTERN
           
IN_OUT_PATTERN
           
ROBUST_IN_ONLY_PATTERN
           
 
Method Summary
 boolean equals(URI mep)
          Please use this equals method instead of using : value().equals(mep) which is almost 10 times slower...
 String toString()
           
 URI value()
           
static Message.MEPConstants valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Message.MEPConstants valueOf(URI pattern)
           
static Message.MEPConstants[] 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

IN_ONLY_PATTERN

public static final Message.MEPConstants IN_ONLY_PATTERN

IN_OPTIONAL_OUT_PATTERN

public static final Message.MEPConstants IN_OPTIONAL_OUT_PATTERN

IN_OUT_PATTERN

public static final Message.MEPConstants IN_OUT_PATTERN

ROBUST_IN_ONLY_PATTERN

public static final Message.MEPConstants ROBUST_IN_ONLY_PATTERN
Method Detail

values

public static Message.MEPConstants[] 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 (Message.MEPConstants c : Message.MEPConstants.values())
    System.out.println(c);

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

valueOf

public static Message.MEPConstants valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

valueOf

public static Message.MEPConstants valueOf(URI pattern)
Parameters:
pattern -
Returns:

value

public URI value()
Returns:

equals

public boolean equals(URI mep)
Please use this equals method instead of using : value().equals(mep) which is almost 10 times slower...

Parameters:
mep -
Returns:

toString

public String toString()
Overrides:
toString in class Enum<Message.MEPConstants>


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.