View Javadoc
1 package com.bonevich.erj.mof.impl.primitivetypes; 2 import ru.novosoft.mdf.ext.*; 3 import ru.novosoft.mdf.ext.xmi.*; 4 import javax.jmi.xmi.*; 5 import javax.jmi.reflect.*; 6 import ru.novosoft.mdf.impl.*; 7 import ru.novosoft.mdf.impl.xmi.*; 8 import com.bonevich.erj.mof.impl.*; 9 public class ErjPrimitiveTypesPackageImpl extends ru.novosoft.mdf.impl.MDFOutermostPackageImpl implements com.bonevich.erj.mof.interfaces.primitivetypes.PrimitiveTypesPackage 10 { 11 public ErjPrimitiveTypesPackageImpl() 12 { 13 super(); 14 } 15 public ErjPrimitiveTypesPackageImpl(ru.novosoft.mdf.impl.MDFOutermostPackageImpl r) 16 { 17 super(r); 18 } 19 20 protected MDFBaseObject createMetaObject( Class cls ) 21 { 22 if (cls == com.bonevich.erj.mof.interfaces.model.KeyConstraintClass.class) 23 { 24 return new com.bonevich.erj.mof.impl.model.ErjKeyConstraintClassImpl( this ); 25 } 26 if (cls == com.bonevich.erj.mof.interfaces.model.SchemaClass.class) 27 { 28 return new com.bonevich.erj.mof.impl.model.ErjSchemaClassImpl( this ); 29 } 30 if (cls == com.bonevich.erj.mof.interfaces.model.ModelElementClass.class) 31 { 32 return new com.bonevich.erj.mof.impl.model.ErjModelElementClassImpl( this ); 33 } 34 if (cls == com.bonevich.erj.mof.interfaces.model.AttributeTypeClass.class) 35 { 36 return new com.bonevich.erj.mof.impl.model.ErjAttributeTypeClassImpl( this ); 37 } 38 if (cls == com.bonevich.erj.mof.interfaces.model.ForeignKeyClass.class) 39 { 40 return new com.bonevich.erj.mof.impl.model.ErjForeignKeyClassImpl( this ); 41 } 42 if (cls == com.bonevich.erj.mof.interfaces.model.DomainClass.class) 43 { 44 return new com.bonevich.erj.mof.impl.model.ErjDomainClassImpl( this ); 45 } 46 if (cls == com.bonevich.erj.mof.interfaces.model.RelationClass.class) 47 { 48 return new com.bonevich.erj.mof.impl.model.ErjRelationClassImpl( this ); 49 } 50 if (cls == com.bonevich.erj.mof.interfaces.model.UniqueKeyClass.class) 51 { 52 return new com.bonevich.erj.mof.impl.model.ErjUniqueKeyClassImpl( this ); 53 } 54 if (cls == com.bonevich.erj.mof.interfaces.model.PrimaryKeyClass.class) 55 { 56 return new com.bonevich.erj.mof.impl.model.ErjPrimaryKeyClassImpl( this ); 57 } 58 if (cls == com.bonevich.erj.mof.interfaces.model.DataTypeClass.class) 59 { 60 return new com.bonevich.erj.mof.impl.model.ErjDataTypeClassImpl( this ); 61 } 62 if (cls == com.bonevich.erj.mof.interfaces.model.AttributeClass.class) 63 { 64 return new com.bonevich.erj.mof.impl.model.ErjAttributeClassImpl( this ); 65 } 66 if (cls == com.bonevich.erj.mof.interfaces.model.ContainsDomains.class) 67 { 68 return new com.bonevich.erj.mof.impl.model.ErjContainsDomainsImpl( this ); 69 } 70 if (cls == com.bonevich.erj.mof.interfaces.model.Types.class) 71 { 72 return new com.bonevich.erj.mof.impl.model.ErjTypesImpl( this ); 73 } 74 if (cls == com.bonevich.erj.mof.interfaces.model.References.class) 75 { 76 return new com.bonevich.erj.mof.impl.model.ErjReferencesImpl( this ); 77 } 78 if (cls == com.bonevich.erj.mof.interfaces.model.ContainsRelations.class) 79 { 80 return new com.bonevich.erj.mof.impl.model.ErjContainsRelationsImpl( this ); 81 } 82 if (cls == com.bonevich.erj.mof.interfaces.model.KeyAttributes.class) 83 { 84 return new com.bonevich.erj.mof.impl.model.ErjKeyAttributesImpl( this ); 85 } 86 if (cls == com.bonevich.erj.mof.interfaces.model.ContainsAttributes.class) 87 { 88 return new com.bonevich.erj.mof.impl.model.ErjContainsAttributesImpl( this ); 89 } 90 if (cls == com.bonevich.erj.mof.interfaces.model.ContainsKeys.class) 91 { 92 return new com.bonevich.erj.mof.impl.model.ErjContainsKeysImpl( this ); 93 } 94 if (cls == com.bonevich.erj.mof.interfaces.primitivetypes.PrimitiveTypesPackage.class) 95 { 96 return this; 97 } 98 if (cls == com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage.class) 99 { 100 return new com.bonevich.erj.mof.impl.model.ErjErjInfoModelPackageImpl(this); 101 } 102 throw new RuntimeException("Unknow class: " + cls.getName()); 103 } 104 105 public MDFObject create(Class cls) 106 { 107 if (cls == com.bonevich.erj.mof.interfaces.model.Schema.class) 108 { 109 return new com.bonevich.erj.mof.impl.model.ErjSchemaImpl(this); 110 } 111 if (cls == com.bonevich.erj.mof.interfaces.model.ForeignKey.class) 112 { 113 return new com.bonevich.erj.mof.impl.model.ErjForeignKeyImpl(this); 114 } 115 if (cls == com.bonevich.erj.mof.interfaces.model.Domain.class) 116 { 117 return new com.bonevich.erj.mof.impl.model.ErjDomainImpl(this); 118 } 119 if (cls == com.bonevich.erj.mof.interfaces.model.Relation.class) 120 { 121 return new com.bonevich.erj.mof.impl.model.ErjRelationImpl(this); 122 } 123 if (cls == com.bonevich.erj.mof.interfaces.model.UniqueKey.class) 124 { 125 return new com.bonevich.erj.mof.impl.model.ErjUniqueKeyImpl(this); 126 } 127 if (cls == com.bonevich.erj.mof.interfaces.model.PrimaryKey.class) 128 { 129 return new com.bonevich.erj.mof.impl.model.ErjPrimaryKeyImpl(this); 130 } 131 if (cls == com.bonevich.erj.mof.interfaces.model.DataType.class) 132 { 133 return new com.bonevich.erj.mof.impl.model.ErjDataTypeImpl(this); 134 } 135 if (cls == com.bonevich.erj.mof.interfaces.model.Attribute.class) 136 { 137 return new com.bonevich.erj.mof.impl.model.ErjAttributeImpl(this); 138 } 139 throw new RuntimeException("Unknow class: " + cls.getName()); 140 } 141 public javax.jmi.reflect.RefBaseObject getMetaObject(javax.jmi.reflect.RefObject metaobject ) 142 { 143 Class c = null; 144 if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","KeyConstraint" )) 145 { 146 c = com.bonevich.erj.mof.interfaces.model.KeyConstraintClass.class; 147 } 148 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","Schema" )) 149 { 150 c = com.bonevich.erj.mof.interfaces.model.SchemaClass.class; 151 } 152 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","ModelElement" )) 153 { 154 c = com.bonevich.erj.mof.interfaces.model.ModelElementClass.class; 155 } 156 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","AttributeType" )) 157 { 158 c = com.bonevich.erj.mof.interfaces.model.AttributeTypeClass.class; 159 } 160 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","ForeignKey" )) 161 { 162 c = com.bonevich.erj.mof.interfaces.model.ForeignKeyClass.class; 163 } 164 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","Domain" )) 165 { 166 c = com.bonevich.erj.mof.interfaces.model.DomainClass.class; 167 } 168 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","Relation" )) 169 { 170 c = com.bonevich.erj.mof.interfaces.model.RelationClass.class; 171 } 172 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","UniqueKey" )) 173 { 174 c = com.bonevich.erj.mof.interfaces.model.UniqueKeyClass.class; 175 } 176 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","PrimaryKey" )) 177 { 178 c = com.bonevich.erj.mof.interfaces.model.PrimaryKeyClass.class; 179 } 180 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","DataType" )) 181 { 182 c = com.bonevich.erj.mof.interfaces.model.DataTypeClass.class; 183 } 184 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","Attribute" )) 185 { 186 c = com.bonevich.erj.mof.interfaces.model.AttributeClass.class; 187 } 188 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","ContainsDomains" )) 189 { 190 c = com.bonevich.erj.mof.interfaces.model.ContainsDomains.class; 191 } 192 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","Types" )) 193 { 194 c = com.bonevich.erj.mof.interfaces.model.Types.class; 195 } 196 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","References" )) 197 { 198 c = com.bonevich.erj.mof.interfaces.model.References.class; 199 } 200 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","ContainsRelations" )) 201 { 202 c = com.bonevich.erj.mof.interfaces.model.ContainsRelations.class; 203 } 204 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","KeyAttributes" )) 205 { 206 c = com.bonevich.erj.mof.interfaces.model.KeyAttributes.class; 207 } 208 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","ContainsAttributes" )) 209 { 210 c = com.bonevich.erj.mof.interfaces.model.ContainsAttributes.class; 211 } 212 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel","ContainsKeys" )) 213 { 214 c = com.bonevich.erj.mof.interfaces.model.ContainsKeys.class; 215 } 216 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "PrimitiveTypes" )) 217 { 218 c = com.bonevich.erj.mof.interfaces.primitivetypes.PrimitiveTypesPackage.class; 219 } 220 else if(ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( metaobject, "ErjInfoModel" )) 221 { 222 c = com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage.class; 223 } 224 else { 225 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 226 } 227 return getMetaObject( c ); 228 } 229 230 public XMIReader getXMIReader( String xmiVersion ) 231 { 232 return new ErjRepositoryImplXMIReader(); 233 } 234 235 public XMIWriter getXMIWriter( String xmiVersion ) 236 { 237 return new ErjRepositoryImplXMIWriter(); 238 } 239 // enm - enumeration name 240 public javax.jmi.reflect.RefEnum forName(String enm, String tnm) 241 { 242 if ("AttributeConstraint".equals(enm)) 243 { 244 if ("NULL".equals(tnm)) 245 { 246 return com.bonevich.erj.mof.interfaces.model.AttributeConstraintEnum.NULL; 247 } 248 if ("NOTNULL".equals(tnm)) 249 { 250 return com.bonevich.erj.mof.interfaces.model.AttributeConstraintEnum.NOTNULL; 251 } 252 } 253 if ("Cardinality".equals(enm)) 254 { 255 if ("ZERO_TO_ZERO".equals(tnm)) 256 { 257 return com.bonevich.erj.mof.interfaces.model.CardinalityEnum.ZERO_TO_ZERO; 258 } 259 if ("ONE_TO_ZERO".equals(tnm)) 260 { 261 return com.bonevich.erj.mof.interfaces.model.CardinalityEnum.ONE_TO_ZERO; 262 } 263 if ("ONE_TO_ONE".equals(tnm)) 264 { 265 return com.bonevich.erj.mof.interfaces.model.CardinalityEnum.ONE_TO_ONE; 266 } 267 if ("ZERO_TO_MANY".equals(tnm)) 268 { 269 return com.bonevich.erj.mof.interfaces.model.CardinalityEnum.ZERO_TO_MANY; 270 } 271 if ("ONE_TO_MANY".equals(tnm)) 272 { 273 return com.bonevich.erj.mof.interfaces.model.CardinalityEnum.ONE_TO_MANY; 274 } 275 if ("ZERO_TO_MANY_MANDATORY".equals(tnm)) 276 { 277 return com.bonevich.erj.mof.interfaces.model.CardinalityEnum.ZERO_TO_MANY_MANDATORY; 278 } 279 if ("ONE_TO_MANY_MANDATORY".equals(tnm)) 280 { 281 return com.bonevich.erj.mof.interfaces.model.CardinalityEnum.ONE_TO_MANY_MANDATORY; 282 } 283 if ("MANY_TO_MANY".equals(tnm)) 284 { 285 return com.bonevich.erj.mof.interfaces.model.CardinalityEnum.MANY_TO_MANY; 286 } 287 } 288 return null; 289 } 290 public javax.jmi.reflect.RefClass refGetClass(javax.jmi.reflect.RefObject type) 291 { 292 if (type == null) 293 { 294 throw new NullPointerException(); 295 } 296 throw new javax.jmi.reflect.InvalidCallException( null ); 297 } 298 public javax.jmi.reflect.RefClass refGetClass(String type) 299 { 300 if (type == null) 301 { 302 throw new NullPointerException(); 303 } 304 throw new javax.jmi.reflect.InvalidCallException( null ); 305 } 306 public javax.jmi.reflect.RefAssociation refGetAssociation(javax.jmi.reflect.RefObject association) 307 { 308 if (association == null) 309 { 310 throw new NullPointerException(); 311 } 312 throw new javax.jmi.reflect.InvalidCallException(null); 313 } 314 public javax.jmi.reflect.RefAssociation refGetAssociation(String association) 315 { 316 if (association == null) 317 { 318 throw new NullPointerException(); 319 } 320 throw new javax.jmi.reflect.InvalidCallException(null); 321 } 322 public javax.jmi.reflect.RefPackage refGetPackage(javax.jmi.reflect.RefObject nestedPackage) 323 { 324 if (nestedPackage == null) 325 { 326 throw new NullPointerException(); 327 } 328 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 329 } 330 public javax.jmi.reflect.RefPackage refGetPackage(String nestedPackage) 331 { 332 if (nestedPackage == null) 333 { 334 throw new NullPointerException(); 335 } 336 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 337 } 338 private java.util.Collection allPackages; 339 public java.util.Collection refGetAllPackages() 340 { 341 if (allPackages == null) 342 { 343 java.util.List list = new java.util.ArrayList(); 344 allPackages = java.util.Collections.unmodifiableList( list ); 345 } 346 return allPackages; 347 } 348 private java.util.Collection allAssociations; 349 public java.util.Collection refGetAllAssociations() 350 { 351 if (allAssociations == null) 352 { 353 java.util.Collection col = new java.util.ArrayList(); 354 allAssociations = java.util.Collections.unmodifiableCollection( col ); 355 } 356 return allAssociations; 357 } 358 private java.util.Collection allProxies; 359 public java.util.Collection refGetAllClasses() 360 { 361 if (allProxies == null) 362 { 363 java.util.Collection col = new java.util.ArrayList(); 364 allProxies = java.util.Collections.unmodifiableCollection( col ); 365 } 366 return allProxies; 367 } 368 public javax.jmi.reflect.RefStruct refCreateStruct(javax.jmi.reflect.RefObject dataType, java.util.List args) 369 { 370 if (dataType == null) 371 { 372 throw new NullPointerException(); 373 } 374 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 375 } 376 public javax.jmi.reflect.RefStruct refCreateStruct(String dataType, java.util.List args) 377 { 378 if (dataType == null) 379 { 380 throw new NullPointerException(); 381 } 382 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 383 } 384 public javax.jmi.reflect.RefEnum refCreateEnum(javax.jmi.reflect.RefObject metaEnum, String literalName) 385 { 386 if (metaEnum == null) 387 { 388 throw new NullPointerException(); 389 } 390 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 391 } 392 public javax.jmi.reflect.RefEnum refCreateEnum(String metaEnum, String literalName) 393 { 394 if (metaEnum == null) 395 { 396 throw new NullPointerException(); 397 } 398 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 399 } 400 public void refDelete() 401 { 402 throw new RuntimeException("NOT SUPPORTED"); 403 } 404 private com.bonevich.erj.mof.interfaces.primitivetypes.PrimitiveTypesPackage mdfOutermostPackage = null; 405 public javax.jmi.reflect.RefPackage refOutermostPackage() 406 { 407 if (mdfOutermostPackage == null) 408 { 409 mdfOutermostPackage = (com.bonevich.erj.mof.interfaces.primitivetypes.PrimitiveTypesPackage)repository.getMetaObject(com.bonevich.erj.mof.interfaces.primitivetypes.PrimitiveTypesPackage.class); 410 } 411 return mdfOutermostPackage; 412 } 413 public javax.jmi.reflect.RefPackage refImmediatePackage() 414 { 415 return null; 416 } 417 public String mdfGetMofName() 418 { 419 return "PrimitiveTypes"; 420 } 421 public String refMofId() 422 { 423 throw new RuntimeException(" !!! NOT IMPLEMENTED !!!"); 424 } 425 public Class mdfGetInterfaceClass() 426 { 427 return com.bonevich.erj.mof.interfaces.primitivetypes.PrimitiveTypesPackage.class; 428 } 429 }

This page was automatically generated by Maven