001: // @@
002: // @@
003: /*
004: * Wi.Ser Framework
005: *
006: * Version: 1.8.1, 20-September-2007
007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library located in LGPL.txt in the
021: * license directory; if not, write to the
022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023: * Boston, MA 02111-1307, USA.
024: *
025: * If this agreement does not cover your requirements, please contact us
026: * via email to get detailed information about the commercial license
027: * or our service offerings!
028: *
029: */
030: // @@
031: package de.ug2t.model.values;
032:
033: import java.util.*;
034:
035: import de.ug2t.kernel.*;
036: import de.ug2t.model.*;
037: import de.ug2t.model.persistence.*;
038: import de.ug2t.unifiedGui.*;
039: import de.ug2t.unifiedGui.transformer.*;
040: import de.ug2t.unifiedGui.validator.*;
041:
042: public abstract class MoLwValue implements IMoValue {
043: protected UnComponent pdm_uiMap = null;
044: protected String pdm_myTemplate = null;
045: protected IMoValue pdm_myTemplateObj = null;
046: protected Object pdm_addInfo = null;
047:
048: /**
049: *
050: */
051: protected MoLwValue() {
052: super ();
053: }
054:
055: /**
056: *
057: */
058: protected MoLwValue(IUnValidator xVal, IUnTransformer xTr,
059: Vector xObs, UnComponent xUiMap,
060: IMoMappingErrorHandler xUiErr) {
061: this .pdm_uiMap = xUiMap;
062: this .pdm_myTemplate = null;
063: this .pdm_myTemplateObj = this ;
064:
065: return;
066: }
067:
068: /**
069: * <p>
070: * ...
071: * </p>
072: * <p>
073: *
074: * </p>
075: */
076: protected void pemf_callObservers() {
077: }
078:
079: /**
080: * <p>
081: * Does...
082: * </p>
083: * <p>
084: *
085: * @return a Type with
086: * </p>
087: * <p>
088: * @param
089: * </p>
090: */
091: public IUnValidator pcmf_setValidator(IUnValidator xValidator) {
092: KeLog.pcmf_logNotSupportedFatal();
093: return (null);
094: }
095:
096: /**
097: * <p>
098: * Does...
099: * </p>
100: * <p>
101: *
102: * @return a Type with
103: * </p>
104: * <p>
105: * @param
106: * </p>
107: */
108: public UnComponent pcmf_setUiMap(UnComponent xMap) {
109: UnComponent l_ui = this .pdm_uiMap;
110: this .pdm_uiMap = xMap;
111:
112: return (l_ui);
113: }
114:
115: /**
116: * <p>
117: * Does...
118: * </p>
119: * <p>
120: *
121: * @return a Type with
122: * </p>
123: * <p>
124: * @param
125: * </p>
126: */
127: public IUnTransformer pcmf_setTransformer(IUnTransformer xTr) {
128: KeLog.pcmf_logNotSupportedFatal();
129: return (null);
130: }
131:
132: /**
133: * <p>
134: * Does...
135: * </p>
136: * <p>
137: *
138: * @return a Type with
139: * </p>
140: * <p>
141: * @param
142: * </p>
143: */
144: public IMoObserver pcmf_addObserver(IMoObserver xObserv) {
145: KeLog.pcmf_logNotSupportedFatal();
146: return (null);
147: }
148:
149: /**
150: * <p>
151: * Does...
152: * </p>
153: * <p>
154: *
155: * @return a Type with
156: * </p>
157: * <p>
158: * @param
159: * </p>
160: */
161: public IMoObserver pcmf_removeObserver(IMoObserver xObs) {
162: KeLog.pcmf_logNotSupportedFatal();
163: return (null);
164: }
165:
166: /**
167: * <p>
168: * Does...
169: * </p>
170: * <p>
171: *
172: * @return a Type with
173: * </p>
174: * <p>
175: * @param
176: * </p>
177: */
178: public IMoReader pcmf_setReader(IMoReader xReader) {
179: KeLog.pcmf_logNotSupportedFatal();
180: return (null);
181: }
182:
183: /**
184: * <p>
185: * Does...
186: * </p>
187: * <p>
188: *
189: * @return a Type with
190: * </p>
191: * <p>
192: * @param
193: * </p>
194: */
195: public IMoWriter pcmf_setWriter(IMoWriter xWriter) {
196: KeLog.pcmf_logNotSupportedFatal();
197: return (null);
198: }
199:
200: /**
201: * <p>
202: * Does...
203: * </p>
204: * <p>
205: *
206: * @return a Type with
207: * </p>
208: * <p>
209: * @param
210: * </p>
211: */
212: public boolean pcmf_read(IMoValue xTpl) {
213: KeLog.pcmf_logNotSupportedFatal();
214: return (false);
215: }
216:
217: /**
218: * <p>
219: * Does...
220: * </p>
221: * <p>
222: *
223: * @return a Type with
224: * </p>
225: * <p>
226: * @param
227: * </p>
228: */
229: public boolean pcmf_write() {
230: KeLog.pcmf_logNotSupportedFatal();
231: return (false);
232: }
233:
234: /**
235: * <p>
236: * Does...
237: * </p>
238: * <p>
239: *
240: * @return a Type with
241: * </p>
242: * <p>
243: * @param
244: * </p>
245: */
246: public IMoMappingErrorHandler pcmf_setUiErrorGW(
247: IMoMappingErrorHandler xGw) {
248: KeLog.pcmf_logNotSupportedFatal();
249: return (null);
250: }
251:
252: /**
253: * <p>
254: * Does...
255: * </p>
256: * <p>
257: *
258: * @return a Type with
259: * </p>
260: * <p>
261: * @param
262: * </p>
263: */
264: public IMoReader pcmf_getReader() {
265: return (null);
266: }
267:
268: /**
269: * <p>
270: * Does ...
271: * </p>
272: * <p>
273: *
274: *
275: *
276: * @return a IUnTransformer with ...
277: * </p>
278: * <p>
279: * @param xTr
280: * ...
281: * </p>
282: */
283: public IUnTransformer pcmf_getTransformer() {
284: return (null);
285: }
286:
287: /**
288: * <p>
289: * Does ...
290: * </p>
291: * <p>
292: *
293: *
294: *
295: * @return a Type with ...
296: * </p>
297: * <p>
298: * @param ...
299: * </p>
300: */
301: public IMoMappingErrorHandler pcmf_getUiErrorGW() {
302: return (null);
303: }
304:
305: /**
306: * <p>
307: * Does ...
308: * </p>
309: * <p>
310: *
311: *
312: *
313: * @return a UnComponent with ...
314: * </p>
315: * <p>
316: * @param xMap
317: * ...
318: * </p>
319: */
320: public UnComponent pcmf_getUiMap() {
321: return (this .pdm_uiMap);
322: }
323:
324: /**
325: * <p>
326: * Does ...
327: * </p>
328: * <p>
329: *
330: *
331: *
332: * @return a UnComponent with ...
333: * </p>
334: * <p>
335: * @param xMap
336: * ...
337: * </p>
338: */
339: public Vector pcmf_getObservers() {
340: return (null);
341: }
342:
343: /**
344: * <p>
345: * Does...
346: * </p>
347: * <p>
348: *
349: * @return a Type with
350: * </p>
351: * <p>
352: * @param
353: * </p>
354: */
355: public IMoWriter pcmf_getWriter() {
356: return (null);
357: }
358:
359: /**
360: * <p>
361: * Does...
362: * </p>
363: * <p>
364: *
365: * @return a Type with
366: * </p>
367: * <p>
368: * @param
369: * </p>
370: */
371: public String pcmf_getMyTemplate() {
372: return (this .pdm_myTemplate);
373: }
374:
375: /**
376: * <p>
377: * Does...
378: * </p>
379: * <p>
380: *
381: * @return a Type with
382: * </p>
383: * <p>
384: * @param
385: * </p>
386: */
387: public String pcmf_setMyTemplate(String xTpl) {
388: String l_old = this .pdm_myTemplate;
389: this .pdm_myTemplate = xTpl;
390:
391: return (l_old);
392: }
393:
394: /**
395: * <p>
396: * Does...
397: * </p>
398: * <p>
399: *
400: * @return a Type with
401: * </p>
402: * <p>
403: * @param
404: * </p>
405: */
406: public IMoValue pcmf_cloneModelValue(boolean xChilds) {
407: return (pcmf_cloneModelValue(true, true));
408: }
409:
410: public IMoValue pcmf_cloneModelValue(boolean xChilds, boolean xFull) {
411: try {
412: MoValue l_ret = (MoValue) this .clone();
413: return (l_ret);
414: } catch (Exception e) {
415: KeLog.pcmf_logException("ug2t", this , e);
416: return (null);
417: }
418: }
419:
420: /**
421: * <p>
422: * Does...
423: * </p>
424: * <p>
425: *
426: * @return a Type with
427: * </p>
428: * <p>
429: * @param
430: * </p>
431: */
432: public boolean pcmf_model2UI() {
433: throw (new UnsupportedOperationException());
434: }
435:
436: /**
437: * <p>
438: * Does...
439: * </p>
440: * <p>
441: *
442: * @return a Type with
443: * </p>
444: * <p>
445: * @param
446: * </p>
447: */
448: public boolean pcmf_UI2Model() {
449: throw (new UnsupportedOperationException());
450: }
451:
452: /**
453: * <p>
454: * Does...
455: * </p>
456: * <p>
457: *
458: * @return a Type with
459: * </p>
460: * <p>
461: * @param
462: * </p>
463: */
464: public boolean pcmf_validate() {
465: throw (new UnsupportedOperationException());
466: }
467:
468: public IMoValue pcmf_getMyTemplateObj() {
469: return (this .pdm_myTemplateObj);
470: }
471:
472: public IMoValue pcmf_setMyTemplateObj(IMoValue xTpl) {
473: IMoValue l_old = this .pdm_myTemplateObj;
474: this .pdm_myTemplateObj = xTpl;
475:
476: return (l_old);
477: }
478:
479: public Object pcmf_getAdditionalnfo() {
480: return (this .pdm_addInfo);
481: }
482:
483: public void pcmf_setAdditionalInfo(Object xInfo) {
484: this .pdm_addInfo = xInfo;
485: }
486:
487: public IMoValueContainer pcmf_getParent() {
488: KeLog
489: .pcmf_logNotSupportedFatal("IMoValueContainer pcmf_getParent()");
490: return (null);
491: }
492:
493: public Object pcmf_getValue() {
494: KeLog
495: .pcmf_logNotSupportedFatal("IMoValueContainer pcmf_getParent()");
496: return (null);
497: }
498:
499: public void pcmf_setValue(Object xValue) {
500: KeLog
501: .pcmf_logNotSupportedFatal("IMoValueContainer pcmf_getParent()");
502: }
503: }
|