KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > Made > CDL > CompVGElem


1 /* $Id: CompVGElem.java,v 1.1.1.1 2003/02/11 16:19:40 bures Exp $ */
2 package SOFA.SOFAnode.Made.CDL;
3  
4 class CompVGElem extends CompObjectIm {
5   CompExprOper expr1;
6   CompExprOper expr2;
7   public CompVGElem(CompExprOper ex1, CompExprOper ex2) {
8     super(ObjectsKind.o_ValueGenElem);
9     expr1 = ex1;
10     expr2 = ex2;
11   }
12
13   public void checkConsist(EnumList props, CompRepository rep) throws CDLExceptCheck, CDLExceptLock, CDLExceptRemote {
14     if (!CompExprOper.testPropInExpr(props, expr1.nameProp(rep)))
15       throw new CDLExceptCheck("Unknown property");
16     if (!CompExprOper.testPropInExpr(props, expr2.nameProp(rep)))
17       throw new CDLExceptCheck("Unknown property");
18   }
19
20   public String JavaDoc toString() {
21     return expr1.toString() + ".." + expr2.toString();
22   }
23 }
24
Popular Tags