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