KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > core > storage > PropertyInfo


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Core License version 1 published by ozone-db.org.
3
//
4
// Copyright (C) 2003-@year@, Leo Mekenkamp. All rights reserved.
5
//
6
// $Id$
7

8 package org.ozoneDB.core.storage;
9
10 /**
11  * @author <a HREF="mailto:leoATmekenkampD0Tcom">Leo Mekenkamp (mind the anti sp@m)</a>
12  * @version $Id$
13  */

14 public class PropertyInfo {
15     
16     private String JavaDoc key;
17     
18     private String JavaDoc valueType;
19     
20     private String JavaDoc description;
21     
22     private String JavaDoc defaultValue;
23     
24     private String JavaDoc[] exampleValues;
25     
26     /**
27      * @param defaultValue if <code>null</code> this property _must_ be specified
28      */

29     public PropertyInfo(String JavaDoc key, String JavaDoc valueType, String JavaDoc defaultValue, String JavaDoc description, String JavaDoc[] exampleValues) {
30         setKey(key);
31         setValueType(valueType);
32         setDefaultValue(defaultValue);
33         setDescription(description);
34         setExampleValues(exampleValues);
35     }
36     
37     public String JavaDoc getKey() {
38         return key;
39     }
40     
41     public void setKey(String JavaDoc key) {
42         this.key = key;
43     }
44     
45     public String JavaDoc getValueType() {
46         return valueType;
47     }
48     
49     public void setValueType(String JavaDoc valueType) {
50         this.valueType = valueType;
51     }
52     
53     public String JavaDoc getDescription() {
54         return description;
55     }
56     
57     public void setDescription(String JavaDoc description) {
58         this.description = description;
59     }
60     
61     public String JavaDoc getDefaultValue() {
62         return defaultValue;
63     }
64     
65     public void setDefaultValue(String JavaDoc defaultValue) {
66         this.defaultValue = defaultValue;
67     }
68     
69     public String JavaDoc[] getExampleValues() {
70         return exampleValues;
71     }
72     
73     public void setExampleValues(String JavaDoc[] exampleValues) {
74         this.exampleValues = exampleValues;
75     }
76     
77 }
78
Popular Tags