1 26 27 package org.objectweb.openccm.generator.translator.ast2idl.lib; 28 29 import org.objectweb.openccm.ast.api.CategoryKind; 31 32 39 40 public class AST_CIDLTranslator 41 extends org.objectweb.openccm.generator.translator.ast2idl.lib.AST_PSDLTranslator 42 implements org.objectweb.openccm.generator.translator.ast2idl.api.AST_CIDLTranslator 43 { 44 50 56 59 public 60 AST_CIDLTranslator() 61 { 62 super(); 63 keywords_.add("bindsTo"); 64 keywords_.add("composition"); 65 keywords_.add("delegatesTo"); 66 keywords_.add("entity"); 67 keywords_.add("executor"); 68 keywords_.add("facet"); 69 keywords_.add("process"); 72 keywords_.add("proxy"); 73 keywords_.add("segment"); 74 keywords_.add("service"); 75 keywords_.add("session"); 76 keywords_.add("storedOn"); 79 } 80 81 87 93 100 public String 101 toCIDL(CategoryKind ck) 102 { 103 if (ck == CategoryKind.ck_entity) 104 return "entity"; 105 else if (ck == CategoryKind.ck_process) 106 return "process"; 107 else if (ck == CategoryKind.ck_service) 108 return "service"; 109 else 110 return "session"; 111 } 112 113 } 114 | Popular Tags |