Package com.helger.peppol.sbdh
Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe sender requests an MLS for all statuses.The sender requests an MLS on failure only. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EPeppolMLSTypeAccording to the Peppol Network Policy -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable EPeppolMLSTypegetFromIDOrDefault(@Nullable String sID, @Nullable EPeppolMLSType eDefault) static @Nullable EPeppolMLSTypegetFromIDOrNull(@Nullable String sID) @NonNull @Nonempty StringgetID()static EPeppolMLSTypeReturns the enum constant of this class with the specified name.static EPeppolMLSType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILURE_ONLY
The sender requests an MLS on failure only. -
ALWAYS_SEND
The sender requests an MLS for all statuses.
-
-
Field Details
-
DEFAULT
According to the Peppol Network Policy
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getID
- Specified by:
getIDin interfacecom.helger.base.id.IHasID<String>
-
getFromIDOrNull
-
getFromIDOrDefault
public static @Nullable EPeppolMLSType getFromIDOrDefault(@Nullable String sID, @Nullable EPeppolMLSType eDefault)
-