View Javadoc
1 package com.bonevich.erj.mof.impl.model; 2 3 public class ErjContainsDomainsImpl extends ru.novosoft.mdf.impl.MDFAssociationImpl implements com.bonevich.erj.mof.interfaces.model.ContainsDomains 4 { 5 public ErjContainsDomainsImpl(ru.novosoft.mdf.impl.MDFOutermostPackageImpl r) 6 { 7 super(r); 8 } 9 public Class mdfGetInterfaceClass() 10 { 11 return com.bonevich.erj.mof.interfaces.model.ContainsDomains.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 "ContainsDomains"; 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.Domain) 42 { 43 return exists( (com.bonevich.erj.mof.interfaces.model.Schema)endOne, (com.bonevich.erj.mof.interfaces.model.Domain)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","ContainsDomains","schema")) 50 { 51 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Domain) 52 { 53 return java.util.Collections.singletonList( getSchema((com.bonevich.erj.mof.interfaces.model.Domain)queryObject) ); 54 } 55 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 56 } 57 if (checkQualifiedName( queryEnd, "ErjInfoModel","ContainsDomains","domains")) 58 { 59 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Schema) 60 { 61 return getDomains((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.Domain) 72 { 73 return java.util.Collections.singletonList( getSchema((com.bonevich.erj.mof.interfaces.model.Domain)queryObject) ); 74 } 75 throw new javax.jmi.reflect.TypeMismatchException(null, null, null); 76 } 77 if ("domains".equals(queryEnd)) 78 { 79 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Schema) 80 { 81 return getDomains((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.Domain) ) 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.Domain)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.Domain) ) 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.Domain)endTwo); 110 } 111 public final boolean exists(com.bonevich.erj.mof.interfaces.model.Schema _schema, com.bonevich.erj.mof.interfaces.model.Domain _domains) 112 { 113 return ((com.bonevich.erj.mof.impl.model.ErjSchemaImpl)_schema).getDomains104().contains(_domains); 114 } 115 public final java.util.List getDomains(com.bonevich.erj.mof.interfaces.model.Schema _Schema) 116 { 117 return ((com.bonevich.erj.mof.impl.model.ErjSchemaImpl)_Schema).getDomains104(); 118 } 119 public final com.bonevich.erj.mof.interfaces.model.Schema getSchema(com.bonevich.erj.mof.interfaces.model.Domain _Domains) 120 { 121 return ((com.bonevich.erj.mof.impl.model.ErjDomainImpl)_Domains).getSchema106(); 122 } 123 public final void remove(com.bonevich.erj.mof.interfaces.model.Schema _schema, com.bonevich.erj.mof.interfaces.model.Domain _domains) 124 { 125 ((com.bonevich.erj.mof.impl.model.ErjSchemaImpl)_schema).getDomains104().remove(_domains); 126 } 127 public final void add(com.bonevich.erj.mof.interfaces.model.Schema _schema, com.bonevich.erj.mof.interfaces.model.Domain _domains) 128 { 129 ((com.bonevich.erj.mof.impl.model.ErjSchemaImpl)_schema).getDomains104().add(_domains); 130 } 131 }

This page was automatically generated by Maven