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 org.terracotta.dso.views;
05:
06: import com.terracottatech.config.LockLevel;
07:
08: public class NamedLockWrapper extends LockWrapper {
09: NamedLockWrapper(LocksWrapper parent, int index) {
10: super (parent, index);
11: }
12:
13: String getMethodExpression() {
14: return m_parent.getNamedLockArray(m_index)
15: .getMethodExpression();
16: }
17:
18: void setMethodExpression(String methodExpr) {
19: m_parent.getNamedLockArray(m_index).setMethodExpression(
20: methodExpr);
21: }
22:
23: LockLevel getLevel() {
24: return m_parent.getNamedLockArray(m_index).xgetLockLevel();
25: }
26:
27: void setLevel(LockLevel.Enum level) {
28: m_parent.getNamedLockArray(m_index).setLockLevel(level);
29: }
30:
31: protected void remove() {
32: m_parent.removeNamedLock(m_index);
33: }
34: }
|