1 package org.opensrf.util;
3 import java.util.HashMap;
7 * Generic OpenSRF network-serializable object. This allows
8 * access to object fields.
10 public class OSRFObject extends HashMap<String, Object> implements OSRFSerializable {
12 /** This objects registry */
13 private OSRFRegistry registry;
19 * Creates a new object with the provided registry
21 public OSRFObject(OSRFRegistry reg) {
28 * @return This object's registry
30 public OSRFRegistry getRegistry() {
36 * Gets the object at the given fields. We override this here
37 * as part of the contract with OSRFSerializable
38 * @param field the field name to get.
39 * @return The object contained at the given field.
41 public Object get(String field) {
42 return super.get(field);