@Override public Map getChildren() { return delegate.getChildren(); }
public byte[] pack ( ISOComponent c ) throws ISOException { try { Map tab = c.getChildren(); StringBuilder sb = new StringBuilder(); for ( int i = 0; i < fld.length; i++ ) { ISOField f = (ISOField) tab.get (i); if ( f != null ) { sb.append ( new String( fld[i].pack( f ) ) ); } } return sb.toString().getBytes(); } catch ( Exception ex ) { throw new ISOException ( this.getRealm() + ": " + ex.getMessage(), ex ); } }
public byte[] pack ( ISOComponent c ) throws ISOException { try { Map tab = c.getChildren(); StringBuilder sb = new StringBuilder(); for ( int i = 0; i < fld.length; i++ ) { ISOMsg f = (ISOMsg) tab.get (i); if ( f != null ) { sb.append ( ISOUtil.zeropad( f.getKey().toString(), 2 ) + new String( fld[i].pack( f ) ) ); } } return sb.toString().getBytes(); } catch ( Exception ex ) { throw new ISOException ( this.getRealm() + ":" + ex.getMessage(), ex ); } }
int len = 0; byte[] result; Map tab = c.getChildren();
/** * Recursive method to get the errors. */ private void _getErr ( ISOComponent c, Vector list, String id ) { if ( c instanceof ISOVField ){ Iterator iter = ((ISOVField)c).errorListIterator(); while (iter.hasNext()) { ISOVError error = (ISOVError)iter.next(); error.setId( id ); list.add( error ); } } else if ( c instanceof ISOMsg ){ if ( c instanceof ISOVMsg ){ /** Msg level error **/ Iterator iter = ((ISOVMsg)c).errorListIterator(); while (iter.hasNext()) { ISOVError error = (ISOVError)iter.next(); error.setId( id ); list.add( error ); } } /** recursively in childs **/ Map fields = c.getChildren(); int max = c.getMaxField(); for (int i = 0; i <= max ; i++) if ((c=(ISOComponent) fields.get (i)) != null ) _getErr( c, list, id + Integer.toString(i) + " " ); } }
try { int len =0; Map tab = c.getChildren(); List<byte[]> l = new ArrayList();
public ISOComponent validate( ISOComponent c ) throws org.jpos.iso.ISOException { LogEvent evt = new LogEvent( this, "validate" ); try { Map tab = c.getChildren(); for ( int i = 0; i < fldVld.length; i++ ) { ISOMsg f = (ISOMsg) tab.get (i); if ( f != null ) c.set(fldVld[i].validate( f )); } return c; } catch ( ISOVException ex ) { if ( !ex.treated() ) { c.set( ex.getErrComponent() ); ex.setTreated( true ); } evt.addMessage( ex ); throw ex; } finally { Logger.log( evt ); } }
public ISOComponent validate( ISOComponent c ) throws org.jpos.iso.ISOException { LogEvent evt = new LogEvent( this, "validate" ); try { Map tab = c.getChildren(); for ( int i = 0; i < fldVld.length; i++ ) { ISOField f = (ISOField) tab.get (i); if ( f != null ) c.set( fldVld[i].validate( f ) ); } return c; } catch ( ISOVException ex ) { if ( !ex.treated() ) { c.set( ex.getErrComponent() ); ex.setTreated( true ); } evt.addMessage( ex ); throw ex; } finally { Logger.log( evt ); } } }
int len = 0; Map fields = m.getChildren(); ISOComponent c = (ISOComponent) fields.get (0); int first = getFirstField();
ISOComponent c; List<byte[]> l = new ArrayList<byte[]>(); Map fields = m.getChildren(); fields.remove(new Integer(-1)); int len = 0;
ISOComponent c; List<byte[]> l = new ArrayList<byte[]>(); Map fields = m.getChildren(); int len = 0; for (int i = startIdx; i <= endIdx; i++) {
Map fields = m.getChildren(); int len = 0;
ISOComponent c; List<byte[]> l = new ArrayList<byte[]>(); Map fields = m.getChildren(); int len = 0;
Map fields = m.getChildren(); int len = 0;
try { ISOComponent c; Map fields = m.getChildren();
BitSet bs3rd= (BitSet)((ISOComponent)m.getChildren().get(thirdBitmapField)).getValue(); maxField= 128 + (bs3rd.length() - 1); // update loop end condition for (int bit= 1; bit <= 64; bit++)
try { ISOComponent c; Map<Object,ISOComponent> fields = m.getChildren();
ISOComponent delegate = taggedSubField.getDelegate(); if (delegate instanceof ISOMsg) { Map subChildren = delegate.getChildren(); boolean allTaggedValue = true; for (Object subChild : subChildren.values()) {
fld[65] instanceof ISOBitMapPackager) bmap= (BitSet) ((ISOComponent) m.getChildren().get(65)).getValue(); for (int i=1; i<64; i++) { if (bmap == null || bmap.get(i)) {