Enum EMEP

java.lang.Object
java.lang.Enum<EMEP>
com.helger.phase4.model.EMEP
All Implemented Interfaces:
com.helger.commons.id.IHasID<String>, Serializable, Comparable<EMEP>, java.lang.constant.Constable

public enum EMEP extends Enum<EMEP> implements com.helger.commons.id.IHasID<String>
Defines the available Message Exchange Patterns (MEPs).
Author:
Philip Helger
  • Enum Constant Details

    • ONE_WAY

      public static final EMEP ONE_WAY
      The One-Way MEP which governs the exchange of a single User Message Unit unrelated to other User Messages.
    • TWO_WAY

      public static final EMEP TWO_WAY
      The Two-Way MEP which governs the exchange of two User Message Units in opposite directions, the first one to occur is labeled "request", the other one "reply". In an actual instance, the "reply" must reference the "request" using eb:RefToMessageId. Or referenced to as The Two-Way/Sync MEP.
  • Field Details

    • DEFAULT_EBMS

      public static final EMEP DEFAULT_EBMS
  • Method Details

    • values

      public static EMEP[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EMEP 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
    • getID

      @Nonnull @Nonempty public String getID()
      Specified by:
      getID in interface com.helger.commons.id.IHasID<String>
    • getMessageCount

      @Nonnegative public int getMessageCount()
    • isOneWay

      public boolean isOneWay()
    • isTwoWay

      public boolean isTwoWay()
    • getURI

      @Nonnull @Nonempty public String getURI()
    • getFromIDOrNull

      @Nullable public static EMEP getFromIDOrNull(@Nullable String sID)
    • getFromURIOrNull

      @Nullable public static EMEP getFromURIOrNull(@Nullable String sURI)