com.itextpdf.text.zugferd.checkers.comfort
Class GlobalIdentifierCode
java.lang.Object
com.itextpdf.text.zugferd.checkers.CodeValidation
com.itextpdf.text.zugferd.checkers.comfort.GlobalIdentifierCode
public class GlobalIdentifierCode
- extends CodeValidation
Class that can be used to check if a global identifier code is well-formed.
IMPORTANT: this doesn't check if the code is valid in the sense that
it doesn't check the code against a list of global identifier codes.
|
Method Summary |
boolean |
isValid(String code)
The code list provided with the ZUGFeRD standard only lists five codes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SWIFT
public static final String SWIFT
- See Also:
- Constant Field Values
DUNS
public static final String DUNS
- See Also:
- Constant Field Values
GLN
public static final String GLN
- See Also:
- Constant Field Values
GTIN
public static final String GTIN
- See Also:
- Constant Field Values
ODETTE
public static final String ODETTE
- See Also:
- Constant Field Values
GlobalIdentifierCode
public GlobalIdentifierCode()
isValid
public boolean isValid(String code)
- The code list provided with the ZUGFeRD standard only lists five codes.
There are more codes available (in ISO 6523).
We won't check the presence of a code in ISO 6523, but we'll check if
the code consists of four numbers.
- Specified by:
isValid in class CodeValidation
- Parameters:
code - the code to be tested
- Returns:
- true if the code has the correct format
Copyright © 2015. All Rights Reserved.