Package com.helger.peppol.servicedomain
Enum Class EPeppolNetwork
- All Implemented Interfaces:
com.helger.base.id.IHasID<String>,com.helger.base.name.IHasDisplayName,IPeppolNetwork,Serializable,Comparable<EPeppolNetwork>,Constable
This enum lists all the Peppol Network stages
- Since:
- 9.6.0
- 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 Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NonNull @Nonempty String@NonNull @Nonempty Stringstatic @Nullable EPeppolNetworkgetFromESMLOrNull(@Nullable ESML eSML) static @Nullable EPeppolNetworkgetFromIDOrNull(@Nullable String sID) static @Nullable EPeppolNetworkgetFromSMLInfoOrNull(@Nullable ISMLInfo aSMLInfo) @NonNull @Nonempty StringgetID()@NonNull ISMLInfobooleanbooleanisTest()static EPeppolNetworkReturns the enum constant of this class with the specified name.static EPeppolNetwork[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEST
Peppol Test Network -
PRODUCTION
Peppol Production Network
-
-
Field Details
-
PREFER_OPENPEPPOL_OVER_EC
-
-
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>
-
getDisplayName
- Specified by:
getDisplayNamein interfacecom.helger.base.name.IHasDisplayName
-
getDirectoryURL
- Specified by:
getDirectoryURLin interfaceIPeppolNetwork- Returns:
- The URL of the Peppol Directory for this network stage. Ends with the domain name and
without a trailing slash. Never
null.
-
getSMLInfo
- Specified by:
getSMLInfoin interfaceIPeppolNetwork- Returns:
- The SML object to be used for this network stage. Never
null.
-
isProduction
public boolean isProduction()- Specified by:
isProductionin interfaceIPeppolNetwork- Returns:
trueif this is a production network,falseotherwise.
-
isTest
public boolean isTest()- Specified by:
isTestin interfaceIPeppolNetwork- Returns:
trueif this is a test network,falseotherwise.
-
getFromIDOrNull
-
getFromESMLOrNull
-
getFromSMLInfoOrNull
-