KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > base > cci > TemplateEnabledImpl


1 // ----------------------------------------------------------------------------
2
// Instance/ImplBegin
3
// ----------------------------------------------------------------------------
4
//////////////////////////////////////////////////////////////////////////////
5
//
6
// Name: $Id: JMIAbstractMapper.java,v 1.11 2006/01/21 23:09:07 wfro Exp $
7
// Generated by: openMDX JMI Mapper
8
// Date: Mon Apr 03 11:38:58 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.base.cci;
14
15 public class TemplateEnabledImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements TemplateEnabled {
18
19   public TemplateEnabledImpl(
20     org.openmdx.base.accessor.generic.cci.Object_1_0 object,
21     javax.jmi.reflect.RefClass refClass
22   ) {
23     super(object, refClass);
24   }
25
26 // ----------------------------------------------------------------------------
27
// Instance/ImplOperation
28
// ----------------------------------------------------------------------------
29
public org.opencrx.kernel.base.cci.TemplateApplyReplacementsResult applyReplacements(
30       org.openmdx.base.cci.Void params
31   ) throws javax.jmi.reflect.RefException {
32     java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
33     args.add(params);
34     return (org.opencrx.kernel.base.cci.TemplateApplyReplacementsResult)refInvokeOperation(
35       "org:opencrx:kernel:base:TemplateEnabled:applyReplacements",
36       args
37     );
38   }
39
40   public org.opencrx.kernel.base.cci.TemplateApplyReplacementsResult applyReplacements(
41   ) throws javax.jmi.reflect.RefException {
42     return applyReplacements(
43       ((org.openmdx.base.cci.basePackage)refOutermostPackage().refPackage("org:openmdx:base")).createVoid(
44               )
45     );
46   }
47
48 // ----------------------------------------------------------------------------
49
// Instance/ImplOperation
50
// ----------------------------------------------------------------------------
51
public org.opencrx.kernel.base.cci.TemplateCreateObjectResult createObject(
52       org.opencrx.kernel.base.cci.TemplateCreateObjectParams params
53   ) throws javax.jmi.reflect.RefException {
54     java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
55     args.add(params);
56     return (org.opencrx.kernel.base.cci.TemplateCreateObjectResult)refInvokeOperation(
57       "org:opencrx:kernel:base:TemplateEnabled:createObject",
58       args
59     );
60   }
61
62   public org.opencrx.kernel.base.cci.TemplateCreateObjectResult createObject(
63       String JavaDoc name
64   ) throws javax.jmi.reflect.RefException {
65     return createObject(
66       ((org.opencrx.kernel.base.cci.basePackage)refOutermostPackage().refPackage("org:opencrx:kernel:base")).createTemplateCreateObjectParams(
67         name
68       )
69     );
70   }
71
72 // ----------------------------------------------------------------------------
73
// Instance/ImplOperation
74
// ----------------------------------------------------------------------------
75
public org.openmdx.base.cci.Void deleteObject(
76       org.openmdx.base.cci.Void params
77   ) throws javax.jmi.reflect.RefException {
78     java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
79     args.add(params);
80     return (org.openmdx.base.cci.Void)refInvokeOperation(
81       "org:opencrx:kernel:base:TemplateEnabled:deleteObject",
82       args
83     );
84   }
85
86   public org.openmdx.base.cci.Void deleteObject(
87   ) throws javax.jmi.reflect.RefException {
88     return deleteObject(
89       ((org.openmdx.base.cci.basePackage)refOutermostPackage().refPackage("org:openmdx:base")).createVoid(
90               )
91     );
92   }
93
94 // ----------------------------------------------------------------------------
95
// Instance/ImplAttributeGet0_1
96
// ----------------------------------------------------------------------------
97
public Boolean JavaDoc isTemplate (
98   ) {
99     return (Boolean JavaDoc)this.refGetValue("isTemplate", 0);
100   }
101 // ----------------------------------------------------------------------------
102
// Instance/ImplAttributeSet0_1
103
// ----------------------------------------------------------------------------
104
public void setTemplate(
105     Boolean JavaDoc newValue
106   ) {
107     refSetValue("org:opencrx:kernel:base:TemplateEnabled:isTemplate", 0, newValue);
108   }
109
110 // ----------------------------------------------------------------------------
111
// Instance/ImplReferenceSetWithQualifier
112
// ----------------------------------------------------------------------------
113
public void setReplacement(
114     java.util.List JavaDoc newValue
115   ) {
116     refSetValue("org:opencrx:kernel:base:TemplateEnabled:replacement", newValue);
117   }
118
119   public void setReplacement(
120     org.opencrx.kernel.base.cci.TemplateReplacement[] newValue
121   ) {
122     refSetValue("org:opencrx:kernel:base:TemplateEnabled:replacement", newValue);
123   }
124
125 // ----------------------------------------------------------------------------
126
// Instance/ImplReferenceGet0_1WithQualifier
127
// ----------------------------------------------------------------------------
128
public org.opencrx.kernel.base.cci.TemplateReplacement getReplacement(
129     String JavaDoc id
130   ) {
131     return (org.opencrx.kernel.base.cci.TemplateReplacement)refGetValue(
132       "org:opencrx:kernel:base:TemplateEnabled:replacement",
133       id
134     );
135   }
136
137 // ----------------------------------------------------------------------------
138
// Instance/ImplReferenceGet0_nWithFilter
139
// ----------------------------------------------------------------------------
140
public java.util.Collection JavaDoc getReplacement(
141   ) {
142     return (java.util.Collection JavaDoc)refGetValue(
143       "org:opencrx:kernel:base:TemplateEnabled:replacement"
144     );
145   }
146
147   public java.util.List JavaDoc getReplacement(
148     org.opencrx.kernel.base.cci.TemplateReplacementFilter filter
149   ) {
150     return ((org.openmdx.compatibility.base.collection.Container)refGetValue(
151       "org:opencrx:kernel:base:TemplateEnabled:replacement"
152     )).toList(filter);
153   }
154
155 // ----------------------------------------------------------------------------
156
// Instance/ImplReferenceAddWithQualifier
157
// ----------------------------------------------------------------------------
158
public void addReplacement (
159     String JavaDoc id,
160     org.opencrx.kernel.base.cci.TemplateReplacement newValue
161   ) {
162     refAddValue(
163       "org:opencrx:kernel:base:TemplateEnabled:replacement",
164       id,
165       newValue
166     );
167   }
168
169 // ----------------------------------------------------------------------------
170
// Instance/ImplReferenceAddWithoutQualifier
171
// ----------------------------------------------------------------------------
172
public void addReplacement (
173     org.opencrx.kernel.base.cci.TemplateReplacement newValue
174   ) {
175     refAddValue(
176       "org:opencrx:kernel:base:TemplateEnabled:replacement",
177       newValue
178     );
179   }
180
181 // ----------------------------------------------------------------------------
182
// Instance/ImplReferenceRemoveWithQualifier
183
// ----------------------------------------------------------------------------
184
public void removeReplacement (
185     String JavaDoc id
186   ) {
187     refRemoveValue(
188       "org:opencrx:kernel:base:TemplateEnabled:replacement",
189       id
190     );
191   }
192
193 // ----------------------------------------------------------------------------
194
// Instance/ImplAttributeGet1_1
195
// ----------------------------------------------------------------------------
196
public String JavaDoc getTemplateReferenceFilter(
197   ) {
198     return getTemplateReferenceFilter(0);
199   }
200
201   protected String JavaDoc getTemplateReferenceFilter(
202     int index
203   ) {
204     return (String JavaDoc)this.refGetValue("org:opencrx:kernel:base:TemplateEnabled:templateReferenceFilter", index);
205   }
206
207 // ----------------------------------------------------------------------------
208
// Instance/ImplAttributeSet1_1
209
// ----------------------------------------------------------------------------
210
public void setTemplateReferenceFilter(
211     String JavaDoc newValue
212   ) {
213     setTemplateReferenceFilter(0, newValue);
214   }
215
216   protected void setTemplateReferenceFilter(
217     int index,
218     String JavaDoc newValue
219   ) {
220     refSetValue("org:opencrx:kernel:base:TemplateEnabled:templateReferenceFilter", index, newValue);
221   }
222 // ----------------------------------------------------------------------------
223
// Instance/ImplEnd
224
// ----------------------------------------------------------------------------
225
}
226
Popular Tags