Package com.helger.peppol.smp
Enum 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA transport profile with this state can be used without limitation.This transport profile can no longer be used.A transport profile can still be used, but should not be used for new SMP entries. -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayText(Locale aContentLocale) static ESMPTransportProfileStategetFromIDOrNull(String sID) Find the pre-defined transport profile state with the passed ID.getID()booleanisActive()booleanbooleanstatic ESMPTransportProfileStateReturns the enum constant of this type with the specified name.static ESMPTransportProfileState[]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.text.display.IHasDisplayText
getAsHasText
-
Enum Constant Details
-
ACTIVE
A transport profile with this state can be used without limitation. -
DEPRECATED
A transport profile can still be used, but should not be used for new SMP entries. -
DELETED
This transport profile can no longer be used.
-
-
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>
-
getDisplayText
- Specified by:
getDisplayTextin interfacecom.helger.commons.text.display.IHasDisplayText
-
isActive
public boolean isActive() -
isDeprecated
public boolean isDeprecated() -
isDeleted
public boolean isDeleted() -
getFromIDOrNull
Find the pre-defined transport profile state with the passed ID.- Parameters:
sID- The ID to be searched. May benull.- Returns:
nullif no such transport profile was found.
-