Package com.helger.peppol.utils
Enum EPeppolCertificateCheckResult
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.commons.state.IValidityIndicator,Serializable,Comparable<EPeppolCertificateCheckResult>,java.lang.constant.Constable
public enum EPeppolCertificateCheckResult
extends Enum<EPeppolCertificateCheckResult>
implements com.helger.commons.id.IHasID<String>, com.helger.commons.state.IValidityIndicator
Enumeration for all Peppol certificate checks
- Since:
- 7.0.4
- 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 ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetFromIDOrDefault(String sID, EPeppolCertificateCheckResult eDefault) Find the item with the passed ID.getFromIDOrNull(String sID) Find the item with the passed ID.getID()booleanisValid()Returns the enum constant of this type with the specified name.static EPeppolCertificateCheckResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.helger.commons.state.IValidityIndicator
and, and, isInvalid, or, or
-
Enum Constant Details
-
VALID
-
NO_CERTIFICATE_PROVIDED
-
NOT_YET_VALID
-
EXPIRED
-
UNSUPPORTED_ISSUER
-
REVOKED
-
NOT_CHECKED
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getID
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getReason
-
isValid
public boolean isValid()- Specified by:
isValidin interfacecom.helger.commons.state.IValidityIndicator
-
getFromIDOrNull
Find the item with the passed ID.- Parameters:
sID- The ID to be searched. May benull.- Returns:
nullif no such item was found.
-
getFromIDOrDefault
@Nullable public static EPeppolCertificateCheckResult getFromIDOrDefault(@Nullable String sID, @Nullable EPeppolCertificateCheckResult eDefault) Find the item with the passed ID.- Parameters:
sID- The ID to be searched. May benull.eDefault- The default value to be returned if no such ID is contained. May benull.- Returns:
eDefaultif no such item was found.
-