Class SchemeId
- java.lang.Object
-
- network.oxalis.sniffer.identifier.SchemeId
-
public class SchemeId extends Object
Provides a binding between the attributes schemeAgencyId and the corresponding ISO6523 prefix (ICD). The ENUM is taken from Policy for use of Identifiers version 3.0 dated 2014-02-03. The ICD's should be 4 digits, a list can be found : http://www.oid-info.com/doc/ICD-list.pdfPossible improvements are:
- Add an attribute with the literal prefix of the organisation identifiers for each scheme. This would make it easier to identify which scheme an organisation identifier belongs to. This could be combined with a regexp
- Author:
- andy, steinar, thore
-
-
Constructor Summary
Constructors Constructor Description SchemeId()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static network.oxalis.vefa.peppol.icd.api.IcdfromISO6523(String code)Tries to find the Party id from the ISO652 code e.g.static network.oxalis.vefa.peppol.icd.api.Icdparse(String schemeId)Tries to find the Party id with the given schemeId e.g.
-
-
-
Method Detail
-
parse
public static network.oxalis.vefa.peppol.icd.api.Icd parse(String schemeId)
Tries to find the Party id with the given schemeId e.g. "ES:VAT" --> ES_VAT- Parameters:
schemeId- textual representation of scheme, i.e. NO:ORGNR- Returns:
- instance of SchemeId if found
- Throws:
IllegalStateException- if not found, i.e. unknown scheme
-
fromISO6523
public static network.oxalis.vefa.peppol.icd.api.Icd fromISO6523(String code)
Tries to find the Party id from the ISO652 code e.g. "9919" --> AT_KUR- Parameters:
code-- Returns:
- the scheme id if found null otherwise.
-
-