1 package com.bonevich.erj.mof.impl.model;
2
3 public class ErjTypesImpl extends ru.novosoft.mdf.impl.MDFAssociationImpl implements com.bonevich.erj.mof.interfaces.model.Types
4 {
5 public ErjTypesImpl(ru.novosoft.mdf.impl.MDFOutermostPackageImpl r)
6 {
7 super(r);
8 }
9 public Class mdfGetInterfaceClass()
10 {
11 return com.bonevich.erj.mof.interfaces.model.Types.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 "Types";
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.AttributeType && endTwo instanceof com.bonevich.erj.mof.interfaces.model.Attribute)
42 {
43 return exists( (com.bonevich.erj.mof.interfaces.model.AttributeType)endOne, (com.bonevich.erj.mof.interfaces.model.Attribute)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","Types","type"))
50 {
51 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Attribute)
52 {
53 return java.util.Collections.singletonList( getType((com.bonevich.erj.mof.interfaces.model.Attribute)queryObject) );
54 }
55 throw new javax.jmi.reflect.TypeMismatchException(null, null, null);
56 }
57 throw new javax.jmi.reflect.InvalidCallException(null);
58 }
59 public final java.util.Collection refQuery(String queryEnd, javax.jmi.reflect.RefObject queryObject)
60 {
61 if ("type".equals(queryEnd))
62 {
63 if (queryObject instanceof com.bonevich.erj.mof.interfaces.model.Attribute)
64 {
65 return java.util.Collections.singletonList( getType((com.bonevich.erj.mof.interfaces.model.Attribute)queryObject) );
66 }
67 throw new javax.jmi.reflect.TypeMismatchException(null, null, null);
68 }
69 throw new javax.jmi.reflect.InvalidCallException(null);
70 }
71 public final void refRemoveLink(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo) throws javax.jmi.reflect.NotFoundException
72 {
73 if ( !(endOne instanceof com.bonevich.erj.mof.interfaces.model.AttributeType) )
74 {
75 throw new javax.jmi.reflect.TypeMismatchException( null, null, null );
76 }
77 if ( !(endTwo instanceof com.bonevich.erj.mof.interfaces.model.Attribute) )
78 {
79 throw new javax.jmi.reflect.TypeMismatchException( null, null, null );
80 }
81 remove( (com.bonevich.erj.mof.interfaces.model.AttributeType)endOne, (com.bonevich.erj.mof.interfaces.model.Attribute)endTwo );
82 }
83 public final void refAddLink(javax.jmi.reflect.RefObject endOne, javax.jmi.reflect.RefObject endTwo)
84 {
85 if ( !(endOne instanceof com.bonevich.erj.mof.interfaces.model.AttributeType) )
86 {
87 throw new javax.jmi.reflect.TypeMismatchException(null, null, null);
88 }
89 if ( !(endTwo instanceof com.bonevich.erj.mof.interfaces.model.Attribute) )
90 {
91 throw new javax.jmi.reflect.TypeMismatchException(null, null, null);
92 }
93 add( (com.bonevich.erj.mof.interfaces.model.AttributeType)endOne, (com.bonevich.erj.mof.interfaces.model.Attribute)endTwo);
94 }
95 public final boolean exists(com.bonevich.erj.mof.interfaces.model.AttributeType _type, com.bonevich.erj.mof.interfaces.model.Attribute _attributes)
96 {
97 return ((com.bonevich.erj.mof.impl.model.ErjAttributeTypeImplHelper)_type).getAttributes111().contains(_attributes);
98 }
99 public final com.bonevich.erj.mof.interfaces.model.AttributeType getType(com.bonevich.erj.mof.interfaces.model.Attribute _Attributes)
100 {
101 return ((com.bonevich.erj.mof.impl.model.ErjAttributeImpl)_Attributes).getType112();
102 }
103 public final void remove(com.bonevich.erj.mof.interfaces.model.AttributeType _type, com.bonevich.erj.mof.interfaces.model.Attribute _attributes)
104 {
105 ((com.bonevich.erj.mof.impl.model.ErjAttributeTypeImplHelper)_type).getAttributes111().remove(_attributes);
106 }
107 public final void add(com.bonevich.erj.mof.interfaces.model.AttributeType _type, com.bonevich.erj.mof.interfaces.model.Attribute _attributes)
108 {
109 ((com.bonevich.erj.mof.impl.model.ErjAttributeTypeImplHelper)_type).getAttributes111().add(_attributes);
110 }
111 }
This page was automatically generated by Maven