01: package org.sakaibrary.osid.repository.xserver;
02:
03: import org.osid.shared.SharedException;
04:
05: public class SearchStatusProperties implements
06: org.osid.shared.Properties {
07:
08: private static final long serialVersionUID = 1L;
09:
10: private Type type = new Type("sakaibrary", "properties",
11: "metasearchStatus");
12: private java.util.Properties properties;
13: private java.util.Vector keys;
14:
15: public SearchStatusProperties(java.util.Properties properties) {
16: this .keys = new java.util.Vector();
17: this .properties = properties;
18:
19: java.util.Enumeration keyNames = properties.keys();
20: while (keyNames.hasMoreElements()) {
21: this .keys
22: .add((java.io.Serializable) keyNames.nextElement());
23: }
24: }
25:
26: public org.osid.shared.ObjectIterator getKeys()
27: throws SharedException {
28: return new ObjectIterator(keys);
29: }
30:
31: public java.io.Serializable getProperty(java.io.Serializable key)
32: throws SharedException {
33: return (java.io.Serializable) properties.get(key);
34: }
35:
36: public org.osid.shared.Type getType() throws SharedException {
37: return type;
38: }
39: }
|