Skip to content

Commit

Permalink
Document private fields of serializable classes
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbl committed Jul 5, 2022
1 parent b3b91bb commit 5de0838
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,23 @@ public enum Type {

private static final long serialVersionUID = -8833174154173397772L;

/** Address type */
private Type type = Type.UNDETERMINED;
/** Name of person or company */
private String name;
/** Address line 1 */
private String addressLine1;
/** Address line 2 */
private String addressLine2;
/** Street */
private String street;
/** House or building number */
private String houseNo;
/** Postal code */
private String postalCode;
/** Town */
private String town;
/** ISO country code */
private String countryCode;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ public class AlternativeScheme implements Serializable {

private static final long serialVersionUID = -8304082204378228870L;

/** Scheme name */
private String name;
/** Payment instruction */
private String instruction;

/**
Expand Down
12 changes: 12 additions & 0 deletions generator/src/main/java/net/codecrete/qrbill/generator/Bill.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,29 @@ public enum Version {
V2_0
}

/** Version of QR bill standard */
private Version version = Version.V2_0;
/** Payment amount */
private BigDecimal amount = null;
/** Payment currency (ISO code) */
private String currency = "CHF";
/** Creditor's account number */
private String account = null;
/** Creditor address */
private Address creditor = new Address();
/** Payment reference type */
private String referenceType = REFERENCE_TYPE_NO_REF;
/** Payment reference (number) */
private String reference = null;
/** Debtor address */
private Address debtor = null;
/** Unstructured message */
private String unstructuredMessage = null;
/** Structured bill information */
private String billInformation = null;
/** Alternative schemes */
private AlternativeScheme[] alternativeSchemes = null;
/** Bill format */
private BillFormat format = new BillFormat();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ public class BillFormat implements Serializable {

private static final long serialVersionUID = -2874086922578292745L;

/** Output size */
private OutputSize outputSize = OutputSize.QR_BILL_ONLY;
/** Language */
private Language language = Language.EN;
/** Separator type */
private SeparatorType separatorType = SeparatorType.DASHED_LINE_WITH_SCISSORS;
/** Font family */
private String fontFamily = "Helvetica,Arial,\"Liberation Sans\"";
/** Graphics format */
private GraphicsFormat graphicsFormat = GraphicsFormat.SVG;
/** Resolution, in dpi */
private int resolution = 144;
/** Left margin, in mm */
private double marginLeft = DEFAULT_MARGIN_WIDTH;
/** Right margin, in mm */
private double marginRight = DEFAULT_MARGIN_WIDTH;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class QRBillValidationError extends RuntimeException {

private static final long serialVersionUID = -959460901342010774L;

/** Validation result */
private final ValidationResult validationResult;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ public enum Type {
ERROR
}

/** Message type */
private Type type;
/** Affected data field */
private String field;
/** Message key */
private String messageKey;
/** Message parameters for placeholders */
private String[] messageParameters;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public class ValidationResult implements Serializable {
private static final long serialVersionUID = -791181851684443602L;
private static final List<ValidationMessage> EMPTY_LIST = Collections.emptyList();

/** Validation messages */
private List<ValidationMessage> validationMessages;
/** Cleaned bill data */
private Bill cleanedBill;

/**
Expand Down

0 comments on commit 5de0838

Please sign in to comment.