01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package org.terracotta.dso.views;
06:
07: import com.terracottatech.config.LockLevel;
08:
09: public abstract class LockWrapper {
10: protected LocksWrapper m_parent;
11: protected int m_index;
12:
13: public LockWrapper(LocksWrapper parent, int index) {
14: m_parent = parent;
15: m_index = index;
16: }
17:
18: LocksWrapper getParent() {
19: return m_parent;
20: }
21:
22: int getIndex() {
23: return m_index;
24: }
25:
26: abstract String getMethodExpression();
27:
28: abstract void setMethodExpression(String methodExpr);
29:
30: abstract void remove();
31:
32: abstract LockLevel getLevel();
33:
34: abstract void setLevel(LockLevel.Enum enumValue);
35:
36: public String toString() {
37: return getMethodExpression();
38: }
39: }
|