Annotation of OpenXM/src/OpenMath/ORG/openxm/tam/CMO_ERROR2.java, Revision 1.2
1.1 tam 1: /**
1.2 ! tam 2: * $OpenXM: OpenXM/src/OpenMath/ORG/openxm/tam/CMO_ERROR2.java,v 1.1 2000/09/12 07:05:05 tam Exp $
1.1 tam 3: */
4: package ORG.openxm.tam;
5:
6: import java.io.*;
7:
8: /**
9: * CMO $B7A<0$N(B ERROR2 $B7?$rI=$7$^$9(B.
10: */
11: final public class CMO_ERROR2 extends CMO{
12: private CMO ob = new CMO_NULL();
13:
14: /**
15: * CMO src $B$rFbMF$H$9$k(B ERROR2 $B$r:n@.$7$^$9(B.
16: */
17: public CMO_ERROR2(CMO src){
18: ob = src;
19: }
20:
21: public int DISCRIMINATOR(){
22: return CMO.ERROR2;
23: }
24:
1.2 ! tam 25: public void sendByObject(OpenXMstream os)
1.1 tam 26: throws IOException,MathcapViolation{
27: ob.write(os);
28: }
29:
1.2 ! tam 30: static protected CMO receive(OpenXMstream is) throws IOException{
1.1 tam 31: return new CMO_ERROR2(CMO.receive(is));
32: }
33:
34: public String toCMOexpressionByObject(){
35: return "CMO_ERROR2,"+ ob.toCMOexpression();
36: }
37: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>