Enum PeppolDocumentTypeIdAcronym
- java.lang.Object
-
- java.lang.Enum<PeppolDocumentTypeIdAcronym>
-
- network.oxalis.ng.test.identifier.PeppolDocumentTypeIdAcronym
-
- All Implemented Interfaces:
Serializable,Comparable<PeppolDocumentTypeIdAcronym>
public enum PeppolDocumentTypeIdAcronym extends Enum<PeppolDocumentTypeIdAcronym>
Represents a Peppol Document Identifier acronym, textually represented thus:<root NS>::<document element local name>##<customization id>::<version>Provides short hand notation for Peppol Document Type Identifiers, which are otherwise fairly lengthy and complex. This is just a simple helper class to make life easier :-)
- Author:
- Steinar Overbeck Cook
- See Also:
- "Peppol Policy for us of Identifiers v2.2, POLICY 13"
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREDIT_NOTECREDIT_NOTE_BILLLINGEHF_CREDIT_NOTEEHF_INVOICEINVOICEINVOICE_BILLINGORDERPEPPOL_CATALOGUETENDER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()network.oxalis.vefa.peppol.common.model.DocumentTypeIdentifiertoVefa()static PeppolDocumentTypeIdAcronymvalueOf(String name)Returns the enum constant of this type with the specified name.static PeppolDocumentTypeIdAcronym[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PEPPOL_CATALOGUE
public static final PeppolDocumentTypeIdAcronym PEPPOL_CATALOGUE
-
ORDER
public static final PeppolDocumentTypeIdAcronym ORDER
-
INVOICE
public static final PeppolDocumentTypeIdAcronym INVOICE
-
EHF_INVOICE
public static final PeppolDocumentTypeIdAcronym EHF_INVOICE
-
EHF_CREDIT_NOTE
public static final PeppolDocumentTypeIdAcronym EHF_CREDIT_NOTE
-
INVOICE_BILLING
public static final PeppolDocumentTypeIdAcronym INVOICE_BILLING
-
CREDIT_NOTE_BILLLING
public static final PeppolDocumentTypeIdAcronym CREDIT_NOTE_BILLLING
-
CREDIT_NOTE
public static final PeppolDocumentTypeIdAcronym CREDIT_NOTE
-
TENDER
public static final PeppolDocumentTypeIdAcronym TENDER
-
-
Method Detail
-
values
public static PeppolDocumentTypeIdAcronym[] 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 (PeppolDocumentTypeIdAcronym c : PeppolDocumentTypeIdAcronym.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PeppolDocumentTypeIdAcronym 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<PeppolDocumentTypeIdAcronym>
-
toVefa
public network.oxalis.vefa.peppol.common.model.DocumentTypeIdentifier toVefa()
-
-