Enum Class EPeppolMLSType

java.lang.Object
java.lang.Enum<EPeppolMLSType>
com.helger.peppol.sbdh.EPeppolMLSType
All Implemented Interfaces:
com.helger.base.id.IHasID<String>, Serializable, Comparable<EPeppolMLSType>, Constable

public enum EPeppolMLSType extends Enum<EPeppolMLSType> implements com.helger.base.id.IHasID<String>
The MLS type to be used inside the SBDH. Values are case sensitive.
Since:
10.3.3
Author:
Philip Helger
  • Enum Constant Details

    • FAILURE_ONLY

      public static final EPeppolMLSType FAILURE_ONLY
      The sender requests an MLS on failure only.
    • ALWAYS_SEND

      public static final EPeppolMLSType ALWAYS_SEND
      The sender requests an MLS for all statuses.
  • Field Details

    • DEFAULT

      public static final EPeppolMLSType DEFAULT
      According to the Peppol Network Policy
  • Method Details

    • values

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

      public static EPeppolMLSType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getID

      @Nonempty public @NonNull @Nonempty String getID()
      Specified by:
      getID in interface com.helger.base.id.IHasID<String>
    • getFromIDOrNull

      public static @Nullable EPeppolMLSType getFromIDOrNull(@Nullable String sID)
    • getFromIDOrDefault

      public static @Nullable EPeppolMLSType getFromIDOrDefault(@Nullable String sID, @Nullable EPeppolMLSType eDefault)