void encode(NetworkDataRepresentation ndr, List defferedPointers ,int FLAG) { //first write all Max counts and then the rest of the structs for (int i = 0;i < listOfMaxCounts.size();i++) { JIMarshalUnMarshalHelper.serialize(ndr,Integer.class,(Integer)listOfMaxCounts.get(i),null,FLAG); } int i = 0; while (i < listOfMembers.size()) { Object o = listOfMembers.get(i); { if (o instanceof JIArray) { //if this array is conformant then reset it's conformancy , since the length would have been //written before. ((JIArray)o).setConformant(false); } JIMarshalUnMarshalHelper.serialize(ndr,o.getClass(),o,defferedPointers,FLAG); if (o instanceof JIArray) { //noew reset this, so that next time when the same struct is written everything goes proper. ((JIArray)o).setConformant(((JIArray)o).isConformant()); } } i++; } }
void encode(NetworkDataRepresentation ndr, List defferedPointers ,int FLAG) { //first write all Max counts and then the rest of the structs for (int i = 0;i < listOfMaxCounts.size();i++) { JIMarshalUnMarshalHelper.serialize(ndr,Integer.class,(Integer)listOfMaxCounts.get(i),null,FLAG); } int i = 0; while (i < listOfMembers.size()) { Object o = listOfMembers.get(i); { if (o instanceof JIArray) { //if this array is conformant then reset it's conformancy , since the length would have been //written before. ((JIArray)o).setConformant(false); } JIMarshalUnMarshalHelper.serialize(ndr,o.getClass(),o,defferedPointers,FLAG); if (o instanceof JIArray) { //noew reset this, so that next time when the same struct is written everything goes proper. ((JIArray)o).setConformant(((JIArray)o).isConformant()); } } i++; } }
void encode ( final NetworkDataRepresentation ndr, final List defferedPointers, final int FLAG ) { //first write all Max counts and then the rest of the structs for ( int i = 0; i < this.listOfMaxCounts.size (); i++ ) { JIMarshalUnMarshalHelper.serialize ( ndr, Integer.class, this.listOfMaxCounts.get ( i ), null, FLAG ); } int i = 0; while ( i < this.listOfMembers.size () ) { final Object o = this.listOfMembers.get ( i ); { if ( o instanceof JIArray ) { //if this array is conformant then reset it's conformancy , since the length would have been //written before. ( (JIArray)o ).setConformant ( false ); } JIMarshalUnMarshalHelper.serialize ( ndr, o.getClass (), o, defferedPointers, FLAG ); if ( o instanceof JIArray ) { //noew reset this, so that next time when the same struct is written everything goes proper. ( (JIArray)o ).setConformant ( ( (JIArray)o ).isConformant () ); } } i++; } }
if (o instanceof JIArray) if (((JIArray)o).isConformant() || ((JIArray)o).isVarying()) if (o instanceof JIArray) if (((JIArray)o).isConformant() || ((JIArray)o).isVarying()) ((JIArray)o).setConformant(((JIArray)o).isConformant()); ((JIArray)o).setMaxCountAndUpperBounds(maxCountTemp);
if ( o instanceof JIArray ) if ( ( (JIArray)o ).isConformant () || ( (JIArray)o ).isVarying () ) if ( o instanceof JIArray ) if ( ( (JIArray)o ).isConformant () || ( (JIArray)o ).isVarying () ) ( (JIArray)o ).setConformant ( ( (JIArray)o ).isConformant () ); ( (JIArray)o ).setMaxCountAndUpperBounds ( maxCountTemp );
if (o instanceof JIArray) if (((JIArray)o).isConformant() || ((JIArray)o).isVarying()) if (o instanceof JIArray) if (((JIArray)o).isConformant() || ((JIArray)o).isVarying()) ((JIArray)o).setConformant(((JIArray)o).isConformant()); ((JIArray)o).setMaxCountAndUpperBounds(maxCountTemp);
if (((JIArray)member).isConformant() || ((JIArray)member).isVarying())
if ( ( (JIArray)member ).isConformant () || ( (JIArray)member ).isVarying () )
if (((JIArray)member).isConformant() || ((JIArray)member).isVarying())