Enum ESMPTransportProfileState

java.lang.Object
java.lang.Enum<ESMPTransportProfileState>
com.helger.peppol.smp.ESMPTransportProfileState
All Implemented Interfaces:
com.helger.commons.id.IHasID<String>, com.helger.commons.text.display.IHasDisplayText, Serializable, Comparable<ESMPTransportProfileState>, java.lang.constant.Constable

public enum ESMPTransportProfileState extends Enum<ESMPTransportProfileState> implements com.helger.commons.id.IHasID<String>, com.helger.commons.text.display.IHasDisplayText
This enum defines the potential states for SMP transport profiles.
Since:
8.8.3
Author:
Philip Helger
  • Enum Constant Details

    • ACTIVE

      public static final ESMPTransportProfileState ACTIVE
      A transport profile with this state can be used without limitation.
    • DEPRECATED

      public static final ESMPTransportProfileState DEPRECATED
      A transport profile can still be used, but should not be used for new SMP entries.
    • DELETED

      public static final ESMPTransportProfileState DELETED
      This transport profile can no longer be used.
  • Method Details

    • values

      public static ESMPTransportProfileState[] 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 ESMPTransportProfileState 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>
    • getDisplayText

      @Nullable public String getDisplayText(@Nonnull Locale aContentLocale)
      Specified by:
      getDisplayText in interface com.helger.commons.text.display.IHasDisplayText
    • isActive

      public boolean isActive()
    • isDeprecated

      public boolean isDeprecated()
    • isDeleted

      public boolean isDeleted()
    • getFromIDOrNull

      @Nullable public static ESMPTransportProfileState getFromIDOrNull(@Nullable String sID)
      Find the pre-defined transport profile state with the passed ID.
      Parameters:
      sID - The ID to be searched. May be null.
      Returns:
      null if no such transport profile was found.