View Javadoc

1   /*
2    * Copyright 2005 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at 
7    * 
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software 
11   * distributed under the License is distributed on an "AS IS" BASIS, 
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
13   * See the License for the specific language governing permissions and 
14   * limitations under the License.
15   */
16  
17  package org.apache.jdo.impl.model.jdo;
18  
19  import org.apache.jdo.model.jdo.JDOExtension;
20  
21  /***
22   * An instance of this class represents a JDO vendor specific extension.
23   * 
24   * @author Michael Bouschen
25   */
26  public class JDOExtensionImpl
27      implements JDOExtension
28  {
29      /*** Property vendorName. No default. */
30      private String vendorName;
31  
32      /*** Property key. No default. */
33      private String key;
34  
35      /*** Property value. No default. */
36      private Object value;
37  
38      /***
39       * Returns the vendor name of this vendor extension.
40       */
41      public String getVendorName()
42      {
43          return vendorName;
44      }
45  
46      /***
47       * Sets the vendor name for this vendor extension.
48       */
49      public void setVendorName(String vendorName)
50      {
51          this.vendorName = vendorName;
52      }
53      
54      /***
55       * Returns the key of this vendor extension.
56       */
57      public String getKey()
58      {
59          return key;
60      }
61  
62      /***
63       * Sets the key for this vendor extension.
64       */
65      public void setKey(String key)
66      {
67          this.key = key;
68      }
69      
70      /***
71       * Returns the value of this vendor extension.
72       */
73      public Object getValue()
74      {
75          return value;
76      }
77  
78      /***
79       * Sets the value for this vendor extension.
80       */
81      public void setValue(Object value)
82      {
83          this.value = value;
84      }
85      
86  }