=================================================================== RCS file: /home/cvs/OpenXM/src/OpenMath/ORG/openxm/tam/CMO_LIST.java,v retrieving revision 1.1 retrieving revision 1.3 diff -u -p -r1.1 -r1.3 --- OpenXM/src/OpenMath/ORG/openxm/tam/CMO_LIST.java 2000/09/12 07:05:06 1.1 +++ OpenXM/src/OpenMath/ORG/openxm/tam/CMO_LIST.java 2000/12/03 12:40:40 1.3 @@ -1,5 +1,5 @@ /** - * $OpenXM$ + * $OpenXM: OpenXM/src/OpenMath/ORG/openxm/tam/CMO_LIST.java,v 1.2 2000/09/13 06:32:42 tam Exp $ */ package ORG.openxm.tam; @@ -29,7 +29,19 @@ final public class CMO_LIST extends CMO{ return CMO.LIST; } - public void sendByObject(OpenXMconnection os) + public boolean allowQ (int[] datacap) { + if(CMO.allowQ_tag(datacap, DISCRIMINATOR())) { + for (int j=0; j < ob.length; j++) { + if (!ob[j].allowQ(datacap)) { + return false; + } + } + return true; + } + return false; + } + + public void sendByObject(OpenXMstream os) throws IOException,MathcapViolation{ os.writeInt(ob.length); @@ -38,7 +50,7 @@ final public class CMO_LIST extends CMO{ } } - static protected CMO receive(OpenXMconnection is) throws IOException{ + static protected CMO receive(OpenXMstream is) throws IOException{ int len; CMO[] ob;