Enum Class EPeppolNetwork

java.lang.Object
java.lang.Enum<EPeppolNetwork>
com.helger.peppol.servicedomain.EPeppolNetwork
All Implemented Interfaces:
com.helger.base.id.IHasID<String>, com.helger.base.name.IHasDisplayName, IPeppolNetwork, Serializable, Comparable<EPeppolNetwork>, Constable

public enum EPeppolNetwork extends Enum<EPeppolNetwork> implements IPeppolNetwork
This enum lists all the Peppol Network stages
Since:
9.6.0
Author:
Philip Helger
  • Enum Constant Details

    • TEST

      public static final EPeppolNetwork TEST
      Peppol Test Network
    • PRODUCTION

      public static final EPeppolNetwork PRODUCTION
      Peppol Production Network
  • Field Details

    • PREFER_OPENPEPPOL_OVER_EC

      public static final AtomicBoolean PREFER_OPENPEPPOL_OVER_EC
  • Method Details

    • values

      public static EPeppolNetwork[] 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 EPeppolNetwork 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>
    • getDisplayName

      @Nonempty public @NonNull @Nonempty String getDisplayName()
      Specified by:
      getDisplayName in interface com.helger.base.name.IHasDisplayName
    • getDirectoryURL

      @Nonempty public @NonNull @Nonempty String getDirectoryURL()
      Specified by:
      getDirectoryURL in interface IPeppolNetwork
      Returns:
      The URL of the Peppol Directory for this network stage. Ends with the domain name and without a trailing slash. Never null.
    • getSMLInfo

      public @NonNull ISMLInfo getSMLInfo()
      Specified by:
      getSMLInfo in interface IPeppolNetwork
      Returns:
      The SML object to be used for this network stage. Never null.
    • isProduction

      public boolean isProduction()
      Specified by:
      isProduction in interface IPeppolNetwork
      Returns:
      true if this is a production network, false otherwise.
    • isTest

      public boolean isTest()
      Specified by:
      isTest in interface IPeppolNetwork
      Returns:
      true if this is a test network, false otherwise.
    • getFromIDOrNull

      public static @Nullable EPeppolNetwork getFromIDOrNull(@Nullable String sID)
    • getFromESMLOrNull

      public static @Nullable EPeppolNetwork getFromESMLOrNull(@Nullable ESML eSML)
    • getFromSMLInfoOrNull

      public static @Nullable EPeppolNetwork getFromSMLInfoOrNull(@Nullable ISMLInfo aSMLInfo)