01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.objectserver.mgmt;
05:
06: import com.tc.object.ObjectID;
07:
08: import java.io.Serializable;
09:
10: /**
11: * Management handle to a managed object in L2 (currently used by the admin GUI)
12: */
13: public interface ManagedObjectFacade extends Serializable {
14:
15: public String getClassName();
16:
17: public String[] getFields();
18:
19: public Object getFieldValue(String fieldName);
20:
21: public String getFieldType(String fieldName);
22:
23: public boolean isPrimitive(String fieldName);
24:
25: public ObjectID getObjectId();
26:
27: public boolean isInnerClass();
28:
29: public ObjectID getParentObjectId();
30:
31: // Methods for array type instances
32: public boolean isArray();
33:
34: public int getArrayLength();
35:
36: // Methods for logically managed objects (ie. java collections like List, Map, Set, etc)
37: public boolean isList();
38:
39: public boolean isSet();
40:
41: public boolean isMap();
42:
43: public int getFacadeSize(); // The current size (possibly truncated) of this collection facade
44:
45: public int getTrueObjectSize(); // The non-truncated total size of this collection
46:
47: }
|