Package network.oxalis.test.identifier
Enum PeppolProcessTypeIdAcronym
- java.lang.Object
-
- java.lang.Enum<PeppolProcessTypeIdAcronym>
-
- network.oxalis.test.identifier.PeppolProcessTypeIdAcronym
-
- All Implemented Interfaces:
Serializable,Comparable<PeppolProcessTypeIdAcronym>
public enum PeppolProcessTypeIdAcronym extends Enum<PeppolProcessTypeIdAcronym>
Acronyms for the various PEPPOL processes. Makes life a little easier, as the ProcessIdentifier only represents a type safe value of any kind of string.According to Policy 16: PEPPOL processes are identified by the respective BII processes. The process identifier has to match the BII profile ID.
- Author:
- Steinar Overbeck Cook
- See Also:
- "Tranport Policy for using Identifiers"
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVOICE_ONLYORDER_ONLYPROCUREMENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()network.oxalis.vefa.peppol.common.model.ProcessIdentifiertoVefa()static PeppolProcessTypeIdAcronymvalueOf(String name)Returns the enum constant of this type with the specified name.static PeppolProcessTypeIdAcronym[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORDER_ONLY
public static final PeppolProcessTypeIdAcronym ORDER_ONLY
-
INVOICE_ONLY
public static final PeppolProcessTypeIdAcronym INVOICE_ONLY
-
PROCUREMENT
public static final PeppolProcessTypeIdAcronym PROCUREMENT
-
-
Method Detail
-
values
public static PeppolProcessTypeIdAcronym[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PeppolProcessTypeIdAcronym c : PeppolProcessTypeIdAcronym.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PeppolProcessTypeIdAcronym 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 nameNullPointerException- if the argument is null
-
toVefa
public network.oxalis.vefa.peppol.common.model.ProcessIdentifier toVefa()
-
toString
public String toString()
- Overrides:
toStringin classEnum<PeppolProcessTypeIdAcronym>
-
-