01: /**
02: * <copyright>
03: * </copyright>
04: *
05: * $Id$
06: */package newprocess.impl;
07:
08: import newprocess.ConditionTerm;
09: import newprocess.Expression;
10: import newprocess.NewprocessPackage;
11: import newprocess.Term;
12:
13: import org.eclipse.emf.ecore.EClass;
14: import org.eclipse.emf.ecore.impl.EObjectImpl;
15:
16: /**
17: * <!-- begin-user-doc -->
18: * An implementation of the model object '<em><b>Term</b></em>'.
19: * <!-- end-user-doc -->
20: * <p>
21: * </p>
22: *
23: * @generated
24: */
25: public class TermImpl extends EObjectImpl implements Term {
26: /**
27: * <!-- begin-user-doc -->
28: * <!-- end-user-doc -->
29: * @generated
30: */
31: protected TermImpl() {
32: super ();
33: }
34:
35: /**
36: * <!-- begin-user-doc -->
37: * <!-- end-user-doc -->
38: * @generated
39: */
40: @Override
41: protected EClass eStaticClass() {
42: return NewprocessPackage.Literals.TERM;
43: }
44:
45: /**
46: * <!-- begin-user-doc -->
47: * overritten by specialisations
48: * <!-- end-user-doc -->
49: * @generated NOT
50: * @author sh
51: */
52: public String getExpression() {
53: // invoke this to return the Proxy name if
54: // we have the direct link Root/Port
55: if (((Expression) eContainer).getHasRoot().getTerm() instanceof ConditionTerm) {
56: if (this instanceof ConditionTerm) {
57: if (((ConditionTerm) this ).getConditionProxy() != null)
58: return ((ConditionTerm) this ).getConditionProxy()
59: .getProxyName();
60: }
61: }
62: return null;
63: }
64:
65: /**
66: * <!-- begin-user-doc -->
67: * say to expression to do an expression update
68: * <!-- end-user-doc -->
69: * @generated NOT
70: * @author sh
71: */
72: public void performUpdate() {
73: if (eContainer() != null)
74: ((Expression) eContainer()).updateExpression();
75: }
76:
77: /**
78: * <!-- begin-user-doc -->
79: * <!-- end-user-doc -->
80: * @generated NOT
81: * @author sh
82: */
83: public int decorateLink() {
84: return ((Expression) eContainer()).decorateLink();
85: }
86:
87: } //TermImpl
|