Search in sources :

Example 1 with TaggedFieldPackager

use of org.jpos.iso.TaggedFieldPackager in project jPOS by jpos.

the class TaggedSequencePackager method setFieldPackager.

public void setFieldPackager(ISOFieldPackager[] subFieldPackagers) {
    super.setFieldPackager(subFieldPackagers);
    for (ISOFieldPackager subFieldPackager : subFieldPackagers) {
        if (subFieldPackager instanceof TaggedFieldPackager) {
            String token = ((TaggedFieldPackager) subFieldPackager).getToken();
            if ("##########".startsWith(token)) {
                token = "default";
            }
            packagerMap.put(token, (TaggedFieldPackager) subFieldPackager);
        }
    }
    this.tagPackager = getTagPackager();
}
Also used : TaggedFieldPackager(org.jpos.iso.TaggedFieldPackager) ISOFieldPackager(org.jpos.iso.ISOFieldPackager)

Aggregations

ISOFieldPackager (org.jpos.iso.ISOFieldPackager)1 TaggedFieldPackager (org.jpos.iso.TaggedFieldPackager)1