KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* $Id: CompBindType.java,v 1.1.1.1 2003/02/11 16:19:40 bures Exp $ */
2 package SOFA.SOFAnode.Made.CDL;
3  
4 class CompBindType extends CompObjectIm {
5   String JavaDoc name;
6   List exprs;
7
8   public CompBindType(String JavaDoc name) {
9     super(ObjectsKind.o_BindType);
10     this.name = name;
11     exprs = new List();
12   }
13
14   public void checkConsist(EnumList props, CompRepository rep) throws CDLExceptCheck, CDLExceptLock, CDLExceptRemote {
15     exprs.toFirst();
16     for(int i=0;i<exprs.size();i++) {
17       if (!CompExprOper.testPropInExpr(props, ((CompExprOper) exprs.aktual()).nameProp(rep)))
18         throw new CDLExceptCheck("Unknown property");
19       exprs.toNext();
20     }
21   }
22 }
23
Popular Tags