KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > core > ExtensionSupport


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.jpivot.core;
14
15 /**
16  * Default implementation of an Extension
17  * @author av
18  */

19
20 public class ExtensionSupport implements Extension {
21
22   private String JavaDoc id;
23   private Model model;
24
25   /**
26    * Returns the id.
27    * @return String
28    */

29   public String JavaDoc getId() {
30     return id;
31   }
32
33   /**
34    * Returns the model.
35    * @return ModelSupport
36    */

37   public Model getModel() {
38     return model;
39   }
40
41   /**
42    * Sets the id.
43    * @param id The id to set
44    */

45   public void setId(String JavaDoc id) {
46     this.id = id;
47   }
48
49   /**
50    * Sets the model. Used by ModelFactory.
51    * @param model The model to set
52    */

53   public void setModel(Model model) {
54     this.model = model;
55   }
56
57   /**
58    * does not decorate, returns the parameter
59    */

60   public Model decorate(Model decoratedModel) {
61     return decoratedModel;
62   }
63
64   /**
65     * Notification after model initialization is complete
66     */

67   public void modelInitialized(){
68     // default: no action
69
}
70
71 }
72
Popular Tags