1 package org.objectweb.modfact.jmi.repository.simpletrl; 2 import simpletrl.*; 3 import org.objectweb.modfact.jmi.reflect.*; 4 public class SimpleTRLPackageImpl extends RefPackageImpl implements simpletrl.SimpleTRLPackage { 5 public static simpletrl.SimpleTRLPackage create(javax.jmi.model.MofPackage meta) { 6 org.objectweb.modfact.jmi.repository.simpletrl.SimpleTRLPackageImpl p = new org.objectweb.modfact.jmi.repository.simpletrl.SimpleTRLPackageImpl(); 7 initRepository(p, meta); 8 return p; 9 } 10 11 public static simpletrl.SimpleTRLPackage create(String metaModelURL) throws Exception { 12 javax.jmi.model.MofPackage meta=(javax.jmi.model.MofPackage)createMetaObject("SimpleTRL", metaModelURL); 13 return create(meta); 14 } 15 public simpletrl.CalledRuleClass getCalledRule() { 16 return (simpletrl.CalledRuleClass)refClass("CalledRule"); 17 } 18 public simpletrl.RuleClass getRule() { 19 return (simpletrl.RuleClass)refClass("Rule"); 20 } 21 public simpletrl.EntryPointRuleClass getEntryPointRule() { 22 return (simpletrl.EntryPointRuleClass)refClass("EntryPointRule"); 23 } 24 public simpletrl.ContextExpClass getContextExp() { 25 return (simpletrl.ContextExpClass)refClass("ContextExp"); 26 } 27 public simpletrl.RulesUnitClass getRulesUnit() { 28 return (simpletrl.RulesUnitClass)refClass("RulesUnit"); 29 } 30 public simpletrl.PropertyAssignExpClass getPropertyAssignExp() { 31 return (simpletrl.PropertyAssignExpClass)refClass("PropertyAssignExp"); 32 } 33 public simpletrl.RuleCallExpClass getRuleCallExp() { 34 return (simpletrl.RuleCallExpClass)refClass("RuleCallExp"); 35 } 36 public simpletrl.ValueExpClass getValueExp() { 37 return (simpletrl.ValueExpClass)refClass("ValueExp"); 38 } 39 public simpletrl.AbstractOperationCallExpClass getAbstractOperationCallExp() { 40 return (simpletrl.AbstractOperationCallExpClass)refClass("AbstractOperationCallExp"); 41 } 42 public simpletrl.LiteralExpClass getLiteralExp() { 43 return (simpletrl.LiteralExpClass)refClass("LiteralExp"); 44 } 45 public simpletrl.ParameterExpClass getParameterExp() { 46 return (simpletrl.ParameterExpClass)refClass("ParameterExp"); 47 } 48 public simpletrl.CompareExpClass getCompareExp() { 49 return (simpletrl.CompareExpClass)refClass("CompareExp"); 50 } 51 public simpletrl.IsOfTypeExpClass getIsOfTypeExp() { 52 return (simpletrl.IsOfTypeExpClass)refClass("IsOfTypeExp"); 53 } 54 public simpletrl.PropertyCallExpClass getPropertyCallExp() { 55 return (simpletrl.PropertyCallExpClass)refClass("PropertyCallExp"); 56 } 57 public simpletrl.ModelReferenceExpClass getModelReferenceExp() { 58 return (simpletrl.ModelReferenceExpClass)refClass("ModelReferenceExp"); 59 } 60 public simpletrl.IfStatementExpClass getIfStatementExp() { 61 return (simpletrl.IfStatementExpClass)refClass("IfStatementExp"); 62 } 63 public simpletrl.IntegerLiteralClass getIntegerLiteral() { 64 return (simpletrl.IntegerLiteralClass)refClass("IntegerLiteral"); 65 } 66 public simpletrl.StringLiteralClass getStringLiteral() { 67 return (simpletrl.StringLiteralClass)refClass("StringLiteral"); 68 } 69 public simpletrl.DoubleLiteralClass getDoubleLiteral() { 70 return (simpletrl.DoubleLiteralClass)refClass("DoubleLiteral"); 71 } 72 public simpletrl.EnumLiteralClass getEnumLiteral() { 73 return (simpletrl.EnumLiteralClass)refClass("EnumLiteral"); 74 } 75 public simpletrl.BooleanLiteralClass getBooleanLiteral() { 76 return (simpletrl.BooleanLiteralClass)refClass("BooleanLiteral"); 77 } 78 public simpletrl.StatementExpClass getStatementExp() { 79 return (simpletrl.StatementExpClass)refClass("StatementExp"); 80 } 81 public simpletrl.ExpClass getExp() { 82 return (simpletrl.ExpClass)refClass("Exp"); 83 } 84 public simpletrl.OperationCallExpClass getOperationCallExp() { 85 return (simpletrl.OperationCallExpClass)refClass("OperationCallExp"); 86 } 87 public simpletrl.CollectionExpClass getCollectionExp() { 88 return (simpletrl.CollectionExpClass)refClass("CollectionExp"); 89 } 90 public simpletrl.AddCollectionExpClass getAddCollectionExp() { 91 return (simpletrl.AddCollectionExpClass)refClass("AddCollectionExp"); 92 } 93 public simpletrl.RemoveCollectionExpClass getRemoveCollectionExp() { 94 return (simpletrl.RemoveCollectionExpClass)refClass("RemoveCollectionExp"); 95 } 96 public simpletrl.IfValueExpClass getIfValueExp() { 97 return (simpletrl.IfValueExpClass)refClass("IfValueExp"); 98 } 99 public simpletrl.IfExpClass getIfExp() { 100 return (simpletrl.IfExpClass)refClass("IfExp"); 101 } 102 public simpletrl.ContainsRules getContainsRules() { 103 return (simpletrl.ContainsRules)refAssociation("containsRules"); 104 } 105 public simpletrl.HasArgs getHasArgs() { 106 return (simpletrl.HasArgs)refAssociation("hasArgs"); 107 } 108 public simpletrl.HasVal getHasVal() { 109 return (simpletrl.HasVal)refAssociation("hasVal"); 110 } 111 public simpletrl.HasContext getHasContext() { 112 return (simpletrl.HasContext)refAssociation("hasContext"); 113 } 114 public simpletrl.ComparesTo getComparesTo() { 115 return (simpletrl.ComparesTo)refAssociation("comparesTo"); 116 } 117 public simpletrl.HasParams getHasParams() { 118 return (simpletrl.HasParams)refAssociation("hasParams"); 119 } 120 public simpletrl.CallsRule getCallsRule() { 121 return (simpletrl.CallsRule)refAssociation("callsRule"); 122 } 123 public simpletrl.HasBody getHasBody() { 124 return (simpletrl.HasBody)refAssociation("hasBody"); 125 } 126 public simpletrl.ThenBody getThenBody() { 127 return (simpletrl.ThenBody)refAssociation("thenBody"); 128 } 129 public simpletrl.ElseBody getElseBody() { 130 return (simpletrl.ElseBody)refAssociation("elseBody"); 131 } 132 public simpletrl.HasMember getHasMember() { 133 return (simpletrl.HasMember)refAssociation("hasMember"); 134 } 135 public simpletrl.HasCondition getHasCondition() { 136 return (simpletrl.HasCondition)refAssociation("hasCondition"); 137 } 138 public simpletrl.ElseValue getElseValue() { 139 return (simpletrl.ElseValue)refAssociation("elseValue"); 140 } 141 public simpletrl.ThenValue getThenValue() { 142 return (simpletrl.ThenValue)refAssociation("thenValue"); 143 } 144 public simpletrl.HasReturnVal getHasReturnVal() { 145 return (simpletrl.HasReturnVal)refAssociation("hasReturnVal"); 146 } 147 public RefPackageImpl newPackage(String n) { 148 throw new RuntimeException ("invalide type"); 149 } 150 public RefClassImpl newClass(String n) { 151 if(n.equals("CalledRule")) return new org.objectweb.modfact.jmi.repository.simpletrl.CalledRuleClassImpl(); 152 if(n.equals("Rule")) return new org.objectweb.modfact.jmi.repository.simpletrl.RuleClassImpl(); 153 if(n.equals("EntryPointRule")) return new org.objectweb.modfact.jmi.repository.simpletrl.EntryPointRuleClassImpl(); 154 if(n.equals("ContextExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.ContextExpClassImpl(); 155 if(n.equals("RulesUnit")) return new org.objectweb.modfact.jmi.repository.simpletrl.RulesUnitClassImpl(); 156 if(n.equals("PropertyAssignExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.PropertyAssignExpClassImpl(); 157 if(n.equals("RuleCallExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.RuleCallExpClassImpl(); 158 if(n.equals("ValueExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.ValueExpClassImpl(); 159 if(n.equals("AbstractOperationCallExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.AbstractOperationCallExpClassImpl(); 160 if(n.equals("LiteralExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.LiteralExpClassImpl(); 161 if(n.equals("ParameterExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.ParameterExpClassImpl(); 162 if(n.equals("CompareExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.CompareExpClassImpl(); 163 if(n.equals("IsOfTypeExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.IsOfTypeExpClassImpl(); 164 if(n.equals("PropertyCallExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.PropertyCallExpClassImpl(); 165 if(n.equals("ModelReferenceExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.ModelReferenceExpClassImpl(); 166 if(n.equals("IfStatementExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.IfStatementExpClassImpl(); 167 if(n.equals("IntegerLiteral")) return new org.objectweb.modfact.jmi.repository.simpletrl.IntegerLiteralClassImpl(); 168 if(n.equals("StringLiteral")) return new org.objectweb.modfact.jmi.repository.simpletrl.StringLiteralClassImpl(); 169 if(n.equals("DoubleLiteral")) return new org.objectweb.modfact.jmi.repository.simpletrl.DoubleLiteralClassImpl(); 170 if(n.equals("EnumLiteral")) return new org.objectweb.modfact.jmi.repository.simpletrl.EnumLiteralClassImpl(); 171 if(n.equals("BooleanLiteral")) return new org.objectweb.modfact.jmi.repository.simpletrl.BooleanLiteralClassImpl(); 172 if(n.equals("StatementExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.StatementExpClassImpl(); 173 if(n.equals("Exp")) return new org.objectweb.modfact.jmi.repository.simpletrl.ExpClassImpl(); 174 if(n.equals("OperationCallExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.OperationCallExpClassImpl(); 175 if(n.equals("CollectionExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.CollectionExpClassImpl(); 176 if(n.equals("AddCollectionExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.AddCollectionExpClassImpl(); 177 if(n.equals("RemoveCollectionExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.RemoveCollectionExpClassImpl(); 178 if(n.equals("IfValueExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.IfValueExpClassImpl(); 179 if(n.equals("IfExp")) return new org.objectweb.modfact.jmi.repository.simpletrl.IfExpClassImpl(); 180 throw new RuntimeException ("invalide Class: '" + n + "'"); 181 } 182 public RefAssociationImpl newAssociation(String n) { 183 if(n.equals("containsRules")) return new org.objectweb.modfact.jmi.repository.simpletrl.ContainsRulesImpl(); 184 if(n.equals("hasArgs")) return new org.objectweb.modfact.jmi.repository.simpletrl.HasArgsImpl(); 185 if(n.equals("hasVal")) return new org.objectweb.modfact.jmi.repository.simpletrl.HasValImpl(); 186 if(n.equals("hasContext")) return new org.objectweb.modfact.jmi.repository.simpletrl.HasContextImpl(); 187 if(n.equals("comparesTo")) return new org.objectweb.modfact.jmi.repository.simpletrl.ComparesToImpl(); 188 if(n.equals("hasParams")) return new org.objectweb.modfact.jmi.repository.simpletrl.HasParamsImpl(); 189 if(n.equals("callsRule")) return new org.objectweb.modfact.jmi.repository.simpletrl.CallsRuleImpl(); 190 if(n.equals("hasBody")) return new org.objectweb.modfact.jmi.repository.simpletrl.HasBodyImpl(); 191 if(n.equals("thenBody")) return new org.objectweb.modfact.jmi.repository.simpletrl.ThenBodyImpl(); 192 if(n.equals("elseBody")) return new org.objectweb.modfact.jmi.repository.simpletrl.ElseBodyImpl(); 193 if(n.equals("hasMember")) return new org.objectweb.modfact.jmi.repository.simpletrl.HasMemberImpl(); 194 if(n.equals("hasCondition")) return new org.objectweb.modfact.jmi.repository.simpletrl.HasConditionImpl(); 195 if(n.equals("elseValue")) return new org.objectweb.modfact.jmi.repository.simpletrl.ElseValueImpl(); 196 if(n.equals("thenValue")) return new org.objectweb.modfact.jmi.repository.simpletrl.ThenValueImpl(); 197 if(n.equals("hasReturnVal")) return new org.objectweb.modfact.jmi.repository.simpletrl.HasReturnValImpl(); 198 throw new RuntimeException ("invalide Association: '" + n + "'"); 199 } 200 public Class newEnum(String n) { 201 throw new RuntimeException ("invalide EnumType : '" + n + "'"); 202 } 203 public RefStructImpl newStruct(String n) { 204 throw new RuntimeException ("invalide StructureType: '" + n + "'"); 205 } 206 } 207 | Popular Tags |