View Javadoc

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