Revision 21064 trunk/libraries/libMetadata/src/org/gvsig/metadata/Metadata.java
Metadata.java | ||
---|---|---|
37 | 37 |
//public Metadata(); |
38 | 38 |
|
39 | 39 |
/** |
40 |
* Retrieves an object from the Metadata HashMap
|
|
40 |
* Retrieves an object from the Metadata Object
|
|
41 | 41 |
* @param name the name which identifies the object to return |
42 |
* @return the object referenced by 'name' in the Metadata HashMap
|
|
42 |
* @return the object referenced by 'name' in the Metadata Object
|
|
43 | 43 |
*/ |
44 | 44 |
public Object get(String name); |
45 | 45 |
|
46 | 46 |
/** |
47 |
* Retrieves a boolean value from the Metadata HashMap
|
|
47 |
* Retrieves a boolean value from the Metadata Object
|
|
48 | 48 |
* @param name the name which identifies the value to return |
49 | 49 |
* @throws ClassCastException thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance |
50 |
* @return the boolean value referenced by 'name' in the Metadata HashMap
|
|
50 |
* @return the boolean value referenced by 'name' in the Metadata Object
|
|
51 | 51 |
*/ |
52 | 52 |
public boolean getBoolean(String name) throws ClassCastException; |
53 | 53 |
|
54 | 54 |
/** |
55 |
* Retrieves a double value from the Metadata HashMap
|
|
55 |
* Retrieves a double value from the Metadata Object
|
|
56 | 56 |
* @param name the name which identifies the value to return |
57 | 57 |
* @throws ClassCastException thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance |
58 |
* @return the double value referenced by 'name' in the Metadata HashMap
|
|
58 |
* @return the double value referenced by 'name' in the Metadata Object
|
|
59 | 59 |
*/ |
60 | 60 |
public double getDouble(String name) throws ClassCastException; |
61 | 61 |
|
62 | 62 |
/** |
63 |
* Retrieves an integer value from the Metadata HashMap
|
|
63 |
* Retrieves an integer value from the Metadata Object
|
|
64 | 64 |
* @param name the name which identifies the value to return |
65 | 65 |
* @throws ClassCastException thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance |
66 |
* @return the integer value referenced by 'name' in the Metadata HashMap
|
|
66 |
* @return the integer value referenced by 'name' in the Metadata Object
|
|
67 | 67 |
*/ |
68 | 68 |
public int getInt(String name) throws ClassCastException; |
69 | 69 |
|
70 | 70 |
/** |
71 |
* Retrieves a String from the Metadata HashMap
|
|
71 |
* Retrieves a String from the Metadata Object
|
|
72 | 72 |
* @param name the name which identifies the object to return |
73 | 73 |
* @throws ClassCastException thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance |
74 |
* @return the String object referenced by 'name' in the Metadata HashMap
|
|
74 |
* @return the String object referenced by 'name' in the Metadata Object
|
|
75 | 75 |
*/ |
76 | 76 |
public String getString(String name) throws ClassCastException; |
77 | 77 |
|
78 | 78 |
/** |
79 |
* Retrieves a Date object from the Metadata HashMap
|
|
79 |
* Retrieves a Date object from the Metadata Object
|
|
80 | 80 |
* @param name the name which identifies the value to return |
81 | 81 |
* @throws ClassCastException thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance |
82 |
* @return the Date object referenced by 'name' in the Metadata HashMap
|
|
82 |
* @return the Date object referenced by 'name' in the Metadata Object
|
|
83 | 83 |
*/ |
84 | 84 |
public Date getDate(String name) throws ClassCastException; |
85 | 85 |
|
86 | 86 |
/** |
87 |
* Puts an object in the Metadata HashMap
|
|
88 |
* @param name the name which identifies the object to put in the Metadata Hashmap
|
|
89 |
* @param value the object to put in the HashMap
|
|
87 |
* Puts an object in the Metadata Object
|
|
88 |
* @param name the name which identifies the object to put in the Metadata Object
|
|
89 |
* @param value the object to put in the Object
|
|
90 | 90 |
* @throws ClassCastException thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance |
91 | 91 |
*/ |
92 | 92 |
public void set(String name, Object value); |
93 | 93 |
|
94 | 94 |
/** |
95 |
* Puts a boolean value in the Metadata HashMap
|
|
96 |
* @param name the name which identifies the value to put in the Metadata Hashmap
|
|
97 |
* @param value the value to put in the HashMap
|
|
95 |
* Puts a boolean value in the Metadata Object
|
|
96 |
* @param name the name which identifies the value to put in the Metadata Object
|
|
97 |
* @param value the value to put in the Object
|
|
98 | 98 |
*/ |
99 | 99 |
public void setBoolean(String name, boolean value); |
100 | 100 |
|
101 | 101 |
/** |
102 |
* Puts a double value in the Metadata HashMap
|
|
103 |
* @param name the name which identifies the value to put in the Metadata Hashmap
|
|
104 |
* @param value the value to put in the HashMap
|
|
102 |
* Puts a double value in the Metadata Object
|
|
103 |
* @param name the name which identifies the value to put in the Metadata Object
|
|
104 |
* @param value the value to put in the Object
|
|
105 | 105 |
*/ |
106 | 106 |
public void setDouble(String name, double value); |
107 | 107 |
|
108 | 108 |
/** |
109 |
* Puts an integer value in the Metadata HashMap
|
|
110 |
* @param name the name which identifies the value to put in the Metadata Hashmap
|
|
111 |
* @param value the value to put in the HashMap
|
|
109 |
* Puts an integer value in the Metadata Object
|
|
110 |
* @param name the name which identifies the value to put in the Metadata Object
|
|
111 |
* @param value the value to put in the Object
|
|
112 | 112 |
*/ |
113 | 113 |
public void setInt(String name, int value); |
114 | 114 |
|
115 | 115 |
/** |
116 |
* Puts a String in the Metadata HashMap
|
|
117 |
* @param name the name which identifies the value to put in the Metadata Hashmap
|
|
118 |
* @param value the value to put in the HashMap
|
|
116 |
* Puts a String in the Metadata Object
|
|
117 |
* @param name the name which identifies the value to put in the Metadata Object
|
|
118 |
* @param value the value to put in the Object
|
|
119 | 119 |
*/ |
120 | 120 |
public void setString(String name, String value); |
121 | 121 |
|
122 | 122 |
/** |
123 |
* Puts a Date object in the Metadata HashMap
|
|
124 |
* @param name the name which identifies the value to put in the Metadata Hashmap
|
|
125 |
* @param value the value to put in the HashMap
|
|
123 |
* Puts a Date object in the Metadata Object
|
|
124 |
* @param name the name which identifies the value to put in the Metadata Object
|
|
125 |
* @param value the value to put in the Object
|
|
126 | 126 |
*/ |
127 | 127 |
public void setDate(String name, Date value); |
128 | 128 |
|
129 | 129 |
/** |
130 |
* Checks if the Metadata HashMap has a specific value
|
|
130 |
* Checks if the Metadata Object has a specific value
|
|
131 | 131 |
* @param name the name which identifies the value to check |
132 |
* @return a boolean value which indicates if there is a value in the HashMap referenced by 'name'
|
|
132 |
* @return a boolean value which indicates if there is a value in the Object referenced by 'name'
|
|
133 | 133 |
*/ |
134 | 134 |
public boolean hasValue(String name); |
135 | 135 |
|
136 | 136 |
/** |
137 |
* Checks if the Metadata HashMap is empty
|
|
138 |
* @return a boolean value which indicates if the HashMap has any value
|
|
137 |
* Checks if the Metadata Object is empty
|
|
138 |
* @return a boolean value which indicates if the Object has any value
|
|
139 | 139 |
*/ |
140 | 140 |
public boolean isEmpty(); |
141 | 141 |
} |
Also available in: Unified diff