1 package net.sf.bacchus.records;
2
3 /** Record for a truncated check. */
4 public class TruncatedCheck extends DestroyedCheck {
5
6 /** NACS Truncated Items. */
7 public static final String NACS_ITEMS = "01";
8
9 /**
10 * Gets the discretionary data, which is aliased by
11 * {@link #getItemTypeIndicator()}.
12 * @return the item type indicator, defaulting to {@link #NACS_ITEMS}.
13 */
14 @Override
15 public String getDiscretionary() {
16 final String discretionary = super.getDiscretionary();
17 return "".equals(discretionary) ? NACS_ITEMS : discretionary;
18 }
19
20 /**
21 * Aliases {@link #getDiscretionary()}.
22 * @return the item type indicator.
23 */
24 public String getItemTypeIndicator() {
25 return getDiscretionary();
26 }
27
28 /**
29 * Aliases {@link #setDiscretionary(String)}.
30 * @param itemTypeIndicator the item type indicator.
31 */
32 public void setItemTypeIndicator(final String itemTypeIndicator) {
33 setDiscretionary(itemTypeIndicator);
34 }
35
36 }