net.sf.bacchus.records
Class Check

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<Record>
          extended by net.sf.bacchus.records.AbstractDetail
              extended by net.sf.bacchus.records.Check
All Implemented Interfaces:
Iterable<Record>, Collection<Record>, List<Record>, Detail, Record
Direct Known Subclasses:
PointOfPurchase

public class Check
extends AbstractDetail

Record for a converted paper check.


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface net.sf.bacchus.Detail
DETAIL_RECORD, HAS_ADDENDA, NO_ADDENDA
 
Fields inherited from interface net.sf.bacchus.Record
ACH_RECORD_SIZE, BASE_TEN, FILLER
 
Constructor Summary
Check()
           
 
Method Summary
 StringBuilder build()
          Adds the check serial number and receiver name in positions 40 through 76 of the value returned by the superclass implementation.
 String getReceiverName()
          Gets the individual or receiving company name.
 String getSerialNumber()
          Gets the check serial number.
 void load(String record)
          Loads the properties from a raw ACH record.
 void normalize()
          Calls the superclass implementation and clears the receiver name and serial number if they are empty.
 void setReceiverName(String receiverName)
          Sets the individual or receiving company name.
 void setSerialNumber(String serialNumber)
          Sets the check serial number.
 
Methods inherited from class net.sf.bacchus.records.AbstractDetail
format, get, getAccount, getAddenda, getAddendaIndicator, getAmount, getDiscretionary, getOdfi, getRdfi, getRdfiCheck, getRecordType, getSequence, getTraceNumber, getTransactionType, isEmpty, setAccount, setAddendaIndicator, setAmount, setDiscretionary, setOdfi, setRdfi, setRdfiCheck, setRecordType, setSequence, setTraceNumber, setTransactionType, size, validate
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 

Constructor Detail

Check

public Check()
Method Detail

getSerialNumber

public String getSerialNumber()
Gets the check serial number.

Returns:
the check serial number.

setSerialNumber

public void setSerialNumber(String serialNumber)
Sets the check serial number.

Parameters:
serialNumber - the check serial number.

getReceiverName

public String getReceiverName()
Gets the individual or receiving company name.

Returns:
the individual or receiving company name.

setReceiverName

public void setReceiverName(String receiverName)
Sets the individual or receiving company name.

Parameters:
receiverName - the individual or receiving company name.

load

public void load(String record)
Loads the properties from a raw ACH record. Subclasses should override this method by first calling super.load(String), then parsing the properties of the subclass record type. The effect of this method is the opposite of AbstractDetail.format().

Specified by:
load in interface Record
Overrides:
load in class AbstractDetail
Parameters:
record - the ACH record to load.

normalize

public void normalize()
Calls the superclass implementation and clears the receiver name and serial number if they are empty.

Specified by:
normalize in interface Record
Overrides:
normalize in class AbstractDetail

build

public StringBuilder build()
Adds the check serial number and receiver name in positions 40 through 76 of the value returned by the superclass implementation.

Overrides:
build in class AbstractDetail
Returns:
the common details formatted as an ACH record.


Copyright © 2008-2009 Bacchus Development Team. All Rights Reserved.