Package net.codecrete.qrbill.generator
Class ValidationConstants
- java.lang.Object
-
- net.codecrete.qrbill.generator.ValidationConstants
-
public class ValidationConstants extends java.lang.ObjectConstants for bill validation messages: message keys and field names.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADDITIONAL_INFO_TOO_LONGValidation message key: Unstructured message and bill information combined exceed the maximum lengthstatic java.lang.StringFIELD_ACCOUNTField name of the account numberstatic java.lang.StringFIELD_ALTERNATIVE_SCHEMESField name of the alternative schemesstatic java.lang.StringFIELD_AMOUNTField name of the amountstatic java.lang.StringFIELD_BILL_INFORMATIONField name of the bill informationstatic java.lang.StringFIELD_CODING_TYPEField name of the QR bill's coding typestatic java.lang.StringFIELD_CREDITOR_COUNTRY_CODEField name of the creditor's country codestatic java.lang.StringFIELD_CREDITOR_HOUSE_NOField name of the creditor's house numberstatic java.lang.StringFIELD_CREDITOR_NAMEField name of the creditor's namestatic java.lang.StringFIELD_CREDITOR_POSTAL_CODEField name of the creditor's postal coddestatic java.lang.StringFIELD_CREDITOR_STREETField name of the creditor's streetstatic java.lang.StringFIELD_CREDITOR_TOWNField name of the creditor's townstatic java.lang.StringFIELD_CURRENCYField name of the currencystatic java.lang.StringFIELD_DEBTOR_COUNTRY_CODEField name of the debtor's country codestatic java.lang.StringFIELD_DEBTOR_HOUSE_NOField name of the debtor's house numberstatic java.lang.StringFIELD_DEBTOR_NAMEField name of the debtor's namestatic java.lang.StringFIELD_DEBTOR_POSTAL_CODEField name of the debtor's postal codestatic java.lang.StringFIELD_DEBTOR_STREETField name of the debtor's streetstatic java.lang.StringFIELD_DEBTOR_TOWNField name of the debtor's townstatic java.lang.StringFIELD_QR_TYPEField name of the QR code typestatic java.lang.StringFIELD_REFERENCEField name of the referencestatic java.lang.StringFIELD_REFERENCE_TYPEField name of the reference typestatic java.lang.StringFIELD_TRAILERField name of the QR bill's trailer ("EPD")static java.lang.StringFIELD_UNSTRUCTURED_MESSAGEField name of the unstructured messagestatic java.lang.StringFIELD_VERSIONField name of the QR bill versionstatic java.lang.StringFIELDROOT_CREDITORStart of field name of the creditor addressstatic java.lang.StringFIELDROOT_DEBTORStart of field name of the debtor's addressstatic java.lang.StringKEY_ACCOUNT_IS_CH_LI_IBANValidation message key: IBAN must be from bank in Switzerland or Liechtensteinstatic java.lang.StringKEY_ACCOUNT_IS_VALID_IBANValidation message key: IBAN must have valid format and check digitstatic java.lang.StringKEY_ADDRESS_TYPE_CONFLICTValidation message key: Conflicting fields for both structured and combined elements address type have been usedstatic java.lang.StringKEY_ALT_SCHEME_MAX_EXCEEDEDValidation message key: The maximum of 2 alternative schemes has been exceededstatic java.lang.StringKEY_AMOUNT_IS_IN_VALID_RANGEValidation message key: amount must be between 0.01 and 999999999.99static java.lang.StringKEY_BILL_INFO_INVALIDValidation message key: The bill information is invalid (does not start with // or is too short)static java.lang.StringKEY_CURRENCY_IS_CHF_OR_EURValidation message key: currency must be "CHF" or "EUR"static java.lang.StringKEY_FIELD_CLIPPEDValidation message key: Field has been clipped to not exceed the maximum lengthstatic java.lang.StringKEY_FIELD_IS_MANDATORYValidation message key: Field is mandatorystatic java.lang.StringKEY_FIELD_TOO_LONGValidation message key: Field value exceed the maximum lengthstatic java.lang.StringKEY_MANDATORY_FOR_QR_IBANValidation message key: For QR-IBANs (IBAN in QR-IID range) a QR reference is mandatorystatic java.lang.StringKEY_REPLACED_UNSUPPORTED_CHARACTERSValidation message key: Unsupported characters have been replacedstatic java.lang.StringKEY_SUPPORTED_CODING_TYPEValidation message key: Coding type 1 is supported onlystatic java.lang.StringKEY_SUPPORTED_VERSIONValidation message key: Version 02.00 is supported onlystatic java.lang.StringKEY_VALID_COUNTRY_CODEValidation message key: Country code must consist of two lettersstatic java.lang.StringKEY_VALID_DATA_STRUCTUREValidation message key: Valid data structure starts with "SPC" and consists of 32 to 34 lines of text (with exceptions)static java.lang.StringKEY_VALID_ISO11649_CREDITOR_REFValidation message key: Due to regular IBAN (outside QR-IID range) an ISO 11649 references is expected but it has invalid format or check digitstatic java.lang.StringKEY_VALID_NUMBERValidation message key: Valid number required (nnnnn.nn)static java.lang.StringKEY_VALID_QR_REF_NOValidation message key: Due to QR-IBAN (IBAN in QR-IID range) a QR reference number is expected but it has invalid format or check digitstatic java.lang.StringKEY_VALID_REF_TYPEValidation message key: Reference type must be one of "QRR", "SCOR" and "NON" and match the reference.static java.lang.StringSUBFIELD_ADDRESS_LINE_1Relative field of an address' line 1static java.lang.StringSUBFIELD_ADDRESS_LINE_2Relative field of an address' line 2static java.lang.StringSUBFIELD_COUNTRY_CODERelative field of an address' country codestatic java.lang.StringSUBFIELD_HOUSE_NORelative field of an address' house numberstatic java.lang.StringSUBFIELD_NAMERelative field name of an address' namestatic java.lang.StringSUBFIELD_POSTAL_CODERelative field of an address' postal codestatic java.lang.StringSUBFIELD_STREETRelative field of an address' streetstatic java.lang.StringSUBFIELD_TOWNRelative field of an address' town
-
-
-
Field Detail
-
KEY_CURRENCY_IS_CHF_OR_EUR
public static final java.lang.String KEY_CURRENCY_IS_CHF_OR_EUR
Validation message key: currency must be "CHF" or "EUR"- See Also:
- Constant Field Values
-
KEY_AMOUNT_IS_IN_VALID_RANGE
public static final java.lang.String KEY_AMOUNT_IS_IN_VALID_RANGE
Validation message key: amount must be between 0.01 and 999999999.99- See Also:
- Constant Field Values
-
KEY_ACCOUNT_IS_CH_LI_IBAN
public static final java.lang.String KEY_ACCOUNT_IS_CH_LI_IBAN
Validation message key: IBAN must be from bank in Switzerland or Liechtenstein- See Also:
- Constant Field Values
-
KEY_ACCOUNT_IS_VALID_IBAN
public static final java.lang.String KEY_ACCOUNT_IS_VALID_IBAN
Validation message key: IBAN must have valid format and check digit- See Also:
- Constant Field Values
-
KEY_VALID_ISO11649_CREDITOR_REF
public static final java.lang.String KEY_VALID_ISO11649_CREDITOR_REF
Validation message key: Due to regular IBAN (outside QR-IID range) an ISO 11649 references is expected but it has invalid format or check digit- See Also:
- Constant Field Values
-
KEY_VALID_QR_REF_NO
public static final java.lang.String KEY_VALID_QR_REF_NO
Validation message key: Due to QR-IBAN (IBAN in QR-IID range) a QR reference number is expected but it has invalid format or check digit- See Also:
- Constant Field Values
-
KEY_MANDATORY_FOR_QR_IBAN
public static final java.lang.String KEY_MANDATORY_FOR_QR_IBAN
Validation message key: For QR-IBANs (IBAN in QR-IID range) a QR reference is mandatory- See Also:
- Constant Field Values
-
KEY_VALID_REF_TYPE
public static final java.lang.String KEY_VALID_REF_TYPE
Validation message key: Reference type must be one of "QRR", "SCOR" and "NON" and match the reference.- See Also:
- Constant Field Values
-
KEY_FIELD_IS_MANDATORY
public static final java.lang.String KEY_FIELD_IS_MANDATORY
Validation message key: Field is mandatory- See Also:
- Constant Field Values
-
KEY_ADDRESS_TYPE_CONFLICT
public static final java.lang.String KEY_ADDRESS_TYPE_CONFLICT
Validation message key: Conflicting fields for both structured and combined elements address type have been used- See Also:
- Constant Field Values
-
KEY_VALID_COUNTRY_CODE
public static final java.lang.String KEY_VALID_COUNTRY_CODE
Validation message key: Country code must consist of two letters- See Also:
- Constant Field Values
-
KEY_FIELD_CLIPPED
public static final java.lang.String KEY_FIELD_CLIPPED
Validation message key: Field has been clipped to not exceed the maximum length- See Also:
- Constant Field Values
-
KEY_FIELD_TOO_LONG
public static final java.lang.String KEY_FIELD_TOO_LONG
Validation message key: Field value exceed the maximum length- See Also:
- Constant Field Values
-
ADDITIONAL_INFO_TOO_LONG
public static final java.lang.String ADDITIONAL_INFO_TOO_LONG
Validation message key: Unstructured message and bill information combined exceed the maximum length- See Also:
- Constant Field Values
-
KEY_REPLACED_UNSUPPORTED_CHARACTERS
public static final java.lang.String KEY_REPLACED_UNSUPPORTED_CHARACTERS
Validation message key: Unsupported characters have been replaced- See Also:
- Constant Field Values
-
KEY_VALID_DATA_STRUCTURE
public static final java.lang.String KEY_VALID_DATA_STRUCTURE
Validation message key: Valid data structure starts with "SPC" and consists of 32 to 34 lines of text (with exceptions)- See Also:
- Constant Field Values
-
KEY_SUPPORTED_VERSION
public static final java.lang.String KEY_SUPPORTED_VERSION
Validation message key: Version 02.00 is supported only- See Also:
- Constant Field Values
-
KEY_SUPPORTED_CODING_TYPE
public static final java.lang.String KEY_SUPPORTED_CODING_TYPE
Validation message key: Coding type 1 is supported only- See Also:
- Constant Field Values
-
KEY_VALID_NUMBER
public static final java.lang.String KEY_VALID_NUMBER
Validation message key: Valid number required (nnnnn.nn)- See Also:
- Constant Field Values
-
KEY_ALT_SCHEME_MAX_EXCEEDED
public static final java.lang.String KEY_ALT_SCHEME_MAX_EXCEEDED
Validation message key: The maximum of 2 alternative schemes has been exceeded- See Also:
- Constant Field Values
-
KEY_BILL_INFO_INVALID
public static final java.lang.String KEY_BILL_INFO_INVALID
Validation message key: The bill information is invalid (does not start with // or is too short)- See Also:
- Constant Field Values
-
SUBFIELD_NAME
public static final java.lang.String SUBFIELD_NAME
Relative field name of an address' name- See Also:
- Constant Field Values
-
SUBFIELD_ADDRESS_LINE_1
public static final java.lang.String SUBFIELD_ADDRESS_LINE_1
Relative field of an address' line 1- See Also:
- Constant Field Values
-
SUBFIELD_ADDRESS_LINE_2
public static final java.lang.String SUBFIELD_ADDRESS_LINE_2
Relative field of an address' line 2- See Also:
- Constant Field Values
-
SUBFIELD_STREET
public static final java.lang.String SUBFIELD_STREET
Relative field of an address' street- See Also:
- Constant Field Values
-
SUBFIELD_HOUSE_NO
public static final java.lang.String SUBFIELD_HOUSE_NO
Relative field of an address' house number- See Also:
- Constant Field Values
-
SUBFIELD_POSTAL_CODE
public static final java.lang.String SUBFIELD_POSTAL_CODE
Relative field of an address' postal code- See Also:
- Constant Field Values
-
SUBFIELD_TOWN
public static final java.lang.String SUBFIELD_TOWN
Relative field of an address' town- See Also:
- Constant Field Values
-
SUBFIELD_COUNTRY_CODE
public static final java.lang.String SUBFIELD_COUNTRY_CODE
Relative field of an address' country code- See Also:
- Constant Field Values
-
FIELD_QR_TYPE
public static final java.lang.String FIELD_QR_TYPE
Field name of the QR code type- See Also:
- Constant Field Values
-
FIELD_VERSION
public static final java.lang.String FIELD_VERSION
Field name of the QR bill version- See Also:
- Constant Field Values
-
FIELD_CODING_TYPE
public static final java.lang.String FIELD_CODING_TYPE
Field name of the QR bill's coding type- See Also:
- Constant Field Values
-
FIELD_TRAILER
public static final java.lang.String FIELD_TRAILER
Field name of the QR bill's trailer ("EPD")- See Also:
- Constant Field Values
-
FIELD_CURRENCY
public static final java.lang.String FIELD_CURRENCY
Field name of the currency- See Also:
- Constant Field Values
-
FIELD_AMOUNT
public static final java.lang.String FIELD_AMOUNT
Field name of the amount- See Also:
- Constant Field Values
-
FIELD_ACCOUNT
public static final java.lang.String FIELD_ACCOUNT
Field name of the account number- See Also:
- Constant Field Values
-
FIELD_REFERENCE_TYPE
public static final java.lang.String FIELD_REFERENCE_TYPE
Field name of the reference type- See Also:
- Constant Field Values
-
FIELD_REFERENCE
public static final java.lang.String FIELD_REFERENCE
Field name of the reference- See Also:
- Constant Field Values
-
FIELDROOT_CREDITOR
public static final java.lang.String FIELDROOT_CREDITOR
Start of field name of the creditor address- See Also:
- Constant Field Values
-
FIELD_CREDITOR_NAME
public static final java.lang.String FIELD_CREDITOR_NAME
Field name of the creditor's name- See Also:
- Constant Field Values
-
FIELD_CREDITOR_STREET
public static final java.lang.String FIELD_CREDITOR_STREET
Field name of the creditor's street- See Also:
- Constant Field Values
-
FIELD_CREDITOR_HOUSE_NO
public static final java.lang.String FIELD_CREDITOR_HOUSE_NO
Field name of the creditor's house number- See Also:
- Constant Field Values
-
FIELD_CREDITOR_POSTAL_CODE
public static final java.lang.String FIELD_CREDITOR_POSTAL_CODE
Field name of the creditor's postal codde- See Also:
- Constant Field Values
-
FIELD_CREDITOR_TOWN
public static final java.lang.String FIELD_CREDITOR_TOWN
Field name of the creditor's town- See Also:
- Constant Field Values
-
FIELD_CREDITOR_COUNTRY_CODE
public static final java.lang.String FIELD_CREDITOR_COUNTRY_CODE
Field name of the creditor's country code- See Also:
- Constant Field Values
-
FIELD_UNSTRUCTURED_MESSAGE
public static final java.lang.String FIELD_UNSTRUCTURED_MESSAGE
Field name of the unstructured message- See Also:
- Constant Field Values
-
FIELD_BILL_INFORMATION
public static final java.lang.String FIELD_BILL_INFORMATION
Field name of the bill information- See Also:
- Constant Field Values
-
FIELD_ALTERNATIVE_SCHEMES
public static final java.lang.String FIELD_ALTERNATIVE_SCHEMES
Field name of the alternative schemes- See Also:
- Constant Field Values
-
FIELDROOT_DEBTOR
public static final java.lang.String FIELDROOT_DEBTOR
Start of field name of the debtor's address- See Also:
- Constant Field Values
-
FIELD_DEBTOR_NAME
public static final java.lang.String FIELD_DEBTOR_NAME
Field name of the debtor's name- See Also:
- Constant Field Values
-
FIELD_DEBTOR_STREET
public static final java.lang.String FIELD_DEBTOR_STREET
Field name of the debtor's street- See Also:
- Constant Field Values
-
FIELD_DEBTOR_HOUSE_NO
public static final java.lang.String FIELD_DEBTOR_HOUSE_NO
Field name of the debtor's house number- See Also:
- Constant Field Values
-
FIELD_DEBTOR_POSTAL_CODE
public static final java.lang.String FIELD_DEBTOR_POSTAL_CODE
Field name of the debtor's postal code- See Also:
- Constant Field Values
-
FIELD_DEBTOR_TOWN
public static final java.lang.String FIELD_DEBTOR_TOWN
Field name of the debtor's town- See Also:
- Constant Field Values
-
FIELD_DEBTOR_COUNTRY_CODE
public static final java.lang.String FIELD_DEBTOR_COUNTRY_CODE
Field name of the debtor's country code- See Also:
- Constant Field Values
-
-