1 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 toString() { 21 return expr1.toString() + ".." + expr2.toString(); 22 } 23 } 24 | Popular Tags |