View Javadoc
1 package com.bonevich.erj.mof.impl.model; 2 3 public class ErjContainsRelationsImpl extends ru.novosoft.mdf.impl.MDFAssociationImpl implements com.bonevich.erj.mof.interfaces.model.ContainsRelations 4 { 5 public ErjContainsRelationsImpl(ru.novosoft.mdf.impl.MDFOutermostPackageImpl r) 6 { 7 super(r); 8 } 9 public Class mdfGetInterfaceClass() 10 { 11 return com.bonevich.erj.mof.interfaces.model.ContainsRelations.class; 12 } 13 private com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage mdfOutermostPackage = null; 14 public javax.jmi.reflect.RefPackage refOutermostPackage() 15 { 16 if (mdfOutermostPackage == null) 17 { 18 mdfOutermostPackage = (com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage)repository.getMetaObject(com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage.class); 19 } 20 return mdfOutermostPackage; 21 } 22 private com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage mdfImmediatePackage = null; 23 public javax.jmi.reflect.RefPackage refImmediatePackage() 24 { 25 if (mdfImmediatePackage == null) 26 { 27 mdfImmediatePackage = (com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage)repository.getMetaObject(com.bonevich.erj.mof.interfaces.model.ErjInfoModelPackage.class); 28 } 29 return mdfImmediatePackage; 30 } 31 public String mdfGetMofName() 32 { 33 return "ContainsRelations"; 34 } 35 public String refMofId() 36 { 37 throw new RuntimeException(" !!! NOT IMPLEMENTED !!!"); 38 } 39 public final boolean refLinkExists(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo) 40 { 41 if (endOne instanceof com.bonevich.erj.mof.interfaces.model.Schema && endTwo instanceof com.bonevich.erj.mof.interfaces.model.Relation) 42 { 43 return exists( (com.bonevich.erj.mof.interfaces.model.Schema)endOne, (com.bonevich.erj.mof.interfaces.model.Relation)endTwo ); 44 } 45 return false; 46 } 47 public final java.util.Collection refQuery( javax.jmi.reflect.RefObject queryEnd, javax.jmi.reflect.RefObject queryObject) 48 { 49 if (checkQualifiedName( queryEnd, "ErjInfoModel","ContainsRelations","schema")) 50 { 51 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Relation) 52 { 53 return java.util.Collections.singletonList( getSchema((com.bonevich.erj.mof.interfaces.model.Relation)queryObject) ); 54 } 55 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 56 } 57 if (checkQualifiedName( queryEnd, "ErjInfoModel","ContainsRelations","relations")) 58 { 59 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Schema) 60 { 61 return getRelations((com.bonevich.erj.mof.interfaces.model.Schema)queryObject); 62 } 63 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 64 } 65 throw new javax.jmi.reflect.InvalidCallException(null); 66 } 67 public final java.util.Collection refQuery(String queryEnd, javax.jmi.reflect.RefObject queryObject) 68 { 69 if ("schema".equals(queryEnd)) 70 { 71 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Relation) 72 { 73 return java.util.Collections.singletonList( getSchema((com.bonevich.erj.mof.interfaces.model.Relation)queryObject) ); 74 } 75 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 76 } 77 if ("relations".equals(queryEnd)) 78 { 79 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Schema) 80 { 81 return getRelations((com.bonevich.erj.mof.interfaces.model.Schema)queryObject); 82 } 83 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 84 } 85 throw new javax.jmi.reflect.InvalidCallException(null); 86 } 87 public final void refRemoveLink(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo) throws javax.jmi.reflect.NotFoundException 88 { 89 if ( !(endOne instanceof com.bonevich.erj.mof.interfaces.model.Schema) ) 90 { 91 throw new javax.jmi.reflect.TypeMismatchException( null, null, null ); 92 } 93 if ( !(endTwo instanceof com.bonevich.erj.mof.interfaces.model.Relation) ) 94 { 95 throw new javax.jmi.reflect.TypeMismatchException( null, null, null ); 96 } 97 remove( (com.bonevich.erj.mof.interfaces.model.Schema)endOne, (com.bonevich.erj.mof.interfaces.model.Relation)endTwo ); 98 } 99 public final void refAddLink(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo) 100 { 101 if ( !(endOne instanceof com.bonevich.erj.mof.interfaces.model.Schema) ) 102 { 103 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 104 } 105 if ( !(endTwo instanceof com.bonevich.erj.mof.interfaces.model.Relation) ) 106 { 107 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 108 } 109 add( (com.bonevich.erj.mof.interfaces.model.Schema)endOne, (com.bonevich.erj.mof.interfaces.model.Relation)endTwo); 110 } 111 public final boolean exists(com.bonevich.erj.mof.interfaces.model.Schema _schema, com.bonevich.erj.mof.interfaces.model.Relation _relations) 112 { 113 return ((com.bonevich.erj.mof.impl.model.ErjSchemaImpl)_schema).getRelations105().contains(_relations); 114 } 115 public final java.util.List getRelations(com.bonevich.erj.mof.interfaces.model.Schema _Schema) 116 { 117 return ((com.bonevich.erj.mof.impl.model.ErjSchemaImpl)_Schema).getRelations105(); 118 } 119 public final com.bonevich.erj.mof.interfaces.model.Schema getSchema(com.bonevich.erj.mof.interfaces.model.Relation _Relations) 120 { 121 return ((com.bonevich.erj.mof.impl.model.ErjRelationImpl)_Relations).getSchema107(); 122 } 123 public final void remove(com.bonevich.erj.mof.interfaces.model.Schema _schema, com.bonevich.erj.mof.interfaces.model.Relation _relations) 124 { 125 ((com.bonevich.erj.mof.impl.model.ErjSchemaImpl)_schema).getRelations105().remove(_relations); 126 } 127 public final void add(com.bonevich.erj.mof.interfaces.model.Schema _schema, com.bonevich.erj.mof.interfaces.model.Relation _relations) 128 { 129 ((com.bonevich.erj.mof.impl.model.ErjSchemaImpl)_schema).getRelations105().add(_relations); 130 } 131 }

This page was automatically generated by Maven