/******************************************************************************* * Copyright (c) 2004, 2005 Sybase, Inc. and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Sybase, Inc. - initial API and implementation *******************************************************************************/ package org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl; import java.util.Collection; import java.util.Vector; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EStructuralFeature; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; import org.eclipse.emf.ecore.util.EcoreUtil; import org.eclipse.emf.ecore.util.InternalEList; import org.eclipse.jst.jsf.facesconfig.ui.pageflow.PageflowMessages; import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.Pageflow; import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.PageflowLink; import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.PageflowLinkBendpoint; import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.PageflowNode; import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.PageflowPackage; import org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.PageflowPage; import org.eclipse.osgi.util.NLS; /** * <!-- begin-user-doc --> An implementation of the model object '<em><b>PF Link</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowLinkImpl#getPageflow <em>Pageflow</em>}</li> * <li>{@link org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowLinkImpl#getTarget <em>Target</em>}</li> * <li>{@link org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowLinkImpl#getSource <em>Source</em>}</li> * <li>{@link org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowLinkImpl#getOutcome <em>Outcome</em>}</li> * <li>{@link org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowLinkImpl#isRedirect <em>Redirect</em>}</li> * <li>{@link org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowLinkImpl#getBendPoints <em>Bend Points</em>}</li> * <li>{@link org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowLinkImpl#getSmallicon <em>Smallicon</em>}</li> * <li>{@link org.eclipse.jst.jsf.facesconfig.ui.pageflow.model.impl.PageflowLinkImpl#getLargeicon <em>Largeicon</em>}</li> * </ul> * </p> * * @generated * */ public class PageflowLinkImpl extends PageflowElementImpl implements PageflowLink { /** * The cached value of the '{@link #getTarget() <em>Target</em>}' * reference. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #getTarget() * @generated * @ordered */ protected PageflowNode target = null; /** * The cached value of the '{@link #getSource() <em>Source</em>}' * reference. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #getSource() * @generated * @ordered */ protected PageflowNode source = null; /** * The default value of the '{@link #getOutcome() <em>Outcome</em>}' * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #getOutcome() * @generated * @ordered */ protected static final String OUTCOME_EDEFAULT = null; /** * The default value of the '{@link #isRedirect() <em>Redirect</em>}' * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #isRedirect() * @generated * @ordered */ protected static final boolean REDIRECT_EDEFAULT = false; /** * The cached value of the '{@link #getBendPoints() <em>Bend Points</em>}' * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #getBendPoints() * @generated * @ordered */ protected EList bendPoints = null; /** * The default value of the '{@link #getSmallicon() <em>Smallicon</em>}' * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #getSmallicon() * @generated * @ordered */ protected static final String SMALLICON_EDEFAULT = null; /** * The default value of the '{@link #getLargeicon() <em>Largeicon</em>}' * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #getLargeicon() * @generated * @ordered */ protected static final String LARGEICON_EDEFAULT = null; /** * The default value of the '{@link #getFromaction() <em>Fromaction</em>}' * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> * * @see #getFromaction() * @generated * @ordered */ protected static final String FROMACTION_EDEFAULT = null; /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ protected PageflowLinkImpl() { super(); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ protected EClass eStaticClass() { return PageflowPackage.eINSTANCE.getPFLink(); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public Pageflow getPageflow() { if (eContainerFeatureID != PageflowPackage.PF_LINK__PAGEFLOW) return null; return (Pageflow) eContainer; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void setPageflow(Pageflow newPageflow) { if (newPageflow != eContainer || (eContainerFeatureID != PageflowPackage.PF_LINK__PAGEFLOW && newPageflow != null)) { if (EcoreUtil.isAncestor(this, newPageflow)) throw new IllegalArgumentException( NLS.bind(PageflowMessages.PageflowNode_NoRecursiveContainment,toString())); NotificationChain msgs = null; if (eContainer != null) msgs = eBasicRemoveFromContainer(msgs); if (newPageflow != null) msgs = ((InternalEObject) newPageflow).eInverseAdd(this, PageflowPackage.PAGEFLOW__LINKS, Pageflow.class, msgs); msgs = eBasicSetContainer((InternalEObject) newPageflow, PageflowPackage.PF_LINK__PAGEFLOW, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__PAGEFLOW, newPageflow, newPageflow)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public PageflowNode getTarget() { if (target != null && target.eIsProxy()) { PageflowNode oldTarget = target; target = (PageflowNode) eResolveProxy((InternalEObject) target); if (target != oldTarget) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, PageflowPackage.PF_LINK__TARGET, oldTarget, target)); } } return target; } public void setSourcePath(String path) { if (getSource() != null && path.equals(((PageflowPage) getSource()).getPath())) { return; } if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__SOURCE, getSource(), path)); } public void setTargetPath(String path) { if (getTarget() != null && path.equals(((PageflowPage) getTarget()).getPath())) { return; } if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__TARGET, getTarget(), path)); } /** * <!-- begin-user-doc --> * @return the target * <!-- end-user-doc --> * * * @generated */ public PageflowNode basicGetTarget() { return target; } /** * <!-- begin-user-doc --> * @param newTarget * @param msgs * @return the notification chain * <!-- end-user-doc --> * * @generated */ public NotificationChain basicSetTarget(PageflowNode newTarget, NotificationChain msgs) { PageflowNode oldTarget = target; target = newTarget; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__TARGET, oldTarget, newTarget); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void setTarget(PageflowNode newTarget) { if (newTarget != target) { NotificationChain msgs = null; if (target != null) msgs = ((InternalEObject) target).eInverseRemove(this, PageflowPackage.PAGEFLOW_NODE__INLINKS, PageflowNode.class, msgs); if (newTarget != null) msgs = ((InternalEObject) newTarget).eInverseAdd(this, PageflowPackage.PAGEFLOW_NODE__INLINKS, PageflowNode.class, msgs); msgs = basicSetTarget(newTarget, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__TARGET, newTarget, newTarget)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public PageflowNode getSource() { if (source != null && source.eIsProxy()) { PageflowNode oldSource = source; source = (PageflowNode) eResolveProxy((InternalEObject) source); if (source != oldSource) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, PageflowPackage.PF_LINK__SOURCE, oldSource, source)); } } return source; } /** * <!-- begin-user-doc --> * @return the pageflow node * <!-- end-user-doc --> * * @generated */ public PageflowNode basicGetSource() { return source; } /** * <!-- begin-user-doc --> * @param newSource * @param msgs * @return the notification chain * <!-- end-user-doc --> * * @generated */ public NotificationChain basicSetSource(PageflowNode newSource, NotificationChain msgs) { // Assert.isTrue(newSource != null); PageflowNode oldSource = source; source = newSource; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__SOURCE, oldSource, newSource); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void setSource(PageflowNode newSource) { // Assert.isTrue(newSource != null); if (newSource != source) { NotificationChain msgs = null; if (source != null) msgs = ((InternalEObject) source).eInverseRemove(this, PageflowPackage.PAGEFLOW_NODE__OUTLINKS, PageflowNode.class, msgs); if (newSource != null) msgs = ((InternalEObject) newSource).eInverseAdd(this, PageflowPackage.PAGEFLOW_NODE__OUTLINKS, PageflowNode.class, msgs); msgs = basicSetSource(newSource, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__SOURCE, newSource, newSource)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public EList getBendPoints() { if (bendPoints == null) { bendPoints = new EObjectContainmentWithInverseEList( PageflowLinkBendpoint.class, this, PageflowPackage.PF_LINK__BEND_POINTS, PageflowPackage.PF_LINK_BENDPOINT__LINK); } return bendPoints; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { if (featureID >= 0) { switch (eDerivedStructuralFeatureID(featureID, baseClass)) { case PageflowPackage.PF_LINK__PAGEFLOW: if (eContainer != null) msgs = eBasicRemoveFromContainer(msgs); return eBasicSetContainer(otherEnd, PageflowPackage.PF_LINK__PAGEFLOW, msgs); case PageflowPackage.PF_LINK__TARGET: if (target != null) msgs = ((InternalEObject) target).eInverseRemove(this, PageflowPackage.PAGEFLOW_NODE__INLINKS, PageflowNode.class, msgs); return basicSetTarget((PageflowNode) otherEnd, msgs); case PageflowPackage.PF_LINK__SOURCE: if (source != null) msgs = ((InternalEObject) source).eInverseRemove(this, PageflowPackage.PAGEFLOW_NODE__OUTLINKS, PageflowNode.class, msgs); return basicSetSource((PageflowNode) otherEnd, msgs); case PageflowPackage.PF_LINK__BEND_POINTS: return ((InternalEList) getBendPoints()).basicAdd(otherEnd, msgs); default: return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs); } } if (eContainer != null) msgs = eBasicRemoveFromContainer(msgs); return eBasicSetContainer(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { if (featureID >= 0) { switch (eDerivedStructuralFeatureID(featureID, baseClass)) { case PageflowPackage.PF_LINK__PAGEFLOW: return eBasicSetContainer(null, PageflowPackage.PF_LINK__PAGEFLOW, msgs); case PageflowPackage.PF_LINK__TARGET: return basicSetTarget(null, msgs); case PageflowPackage.PF_LINK__SOURCE: return basicSetSource(null, msgs); case PageflowPackage.PF_LINK__BEND_POINTS: return ((InternalEList) getBendPoints()).basicRemove(otherEnd, msgs); default: return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); } } return eBasicSetContainer(null, featureID, msgs); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) { if (eContainerFeatureID >= 0) { switch (eContainerFeatureID) { case PageflowPackage.PF_LINK__PAGEFLOW: return eContainer.eInverseRemove(this, PageflowPackage.PAGEFLOW__LINKS, Pageflow.class, msgs); default: return eDynamicBasicRemoveFromContainer(msgs); } } return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public Object eGet(EStructuralFeature eFeature, boolean resolve) { switch (eDerivedStructuralFeatureID(eFeature)) { case PageflowPackage.PF_LINK__NAME: return getName(); case PageflowPackage.PF_LINK__COMMENT: return getComment(); case PageflowPackage.PF_LINK__X: return new Integer(getX()); case PageflowPackage.PF_LINK__Y: return new Integer(getY()); case PageflowPackage.PF_LINK__WIDTH: return new Integer(getWidth()); case PageflowPackage.PF_LINK__HEIGHT: return new Integer(getHeight()); case PageflowPackage.PF_LINK__ID: return getId(); case PageflowPackage.PF_LINK__PAGEFLOW: return getPageflow(); case PageflowPackage.PF_LINK__TARGET: if (resolve) return getTarget(); return basicGetTarget(); case PageflowPackage.PF_LINK__SOURCE: if (resolve) return getSource(); return basicGetSource(); case PageflowPackage.PF_LINK__OUTCOME: return getOutcome(); case PageflowPackage.PF_LINK__REDIRECT: return isRedirect() ? Boolean.TRUE : Boolean.FALSE; case PageflowPackage.PF_LINK__BEND_POINTS: return getBendPoints(); case PageflowPackage.PF_LINK__SMALLICON: return getSmallicon(); case PageflowPackage.PF_LINK__LARGEICON: return getLargeicon(); case PageflowPackage.PF_LINK__FROMACTION: return getFromaction(); } return super.eGet(eFeature, resolve); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case PageflowPackage.PF_LINK__NAME: setName((String) newValue); return; case PageflowPackage.PF_LINK__COMMENT: setComment((String) newValue); return; case PageflowPackage.PF_LINK__X: setX(((Integer) newValue).intValue()); return; case PageflowPackage.PF_LINK__Y: setY(((Integer) newValue).intValue()); return; case PageflowPackage.PF_LINK__WIDTH: setWidth(((Integer) newValue).intValue()); return; case PageflowPackage.PF_LINK__HEIGHT: setHeight(((Integer) newValue).intValue()); return; case PageflowPackage.PF_LINK__ID: setId((String) newValue); return; case PageflowPackage.PF_LINK__PAGEFLOW: setPageflow((Pageflow) newValue); return; case PageflowPackage.PF_LINK__TARGET: setTarget((PageflowNode) newValue); return; case PageflowPackage.PF_LINK__SOURCE: setSource((PageflowNode) newValue); return; case PageflowPackage.PF_LINK__OUTCOME: setOutcome((String) newValue); return; case PageflowPackage.PF_LINK__REDIRECT: setRedirect(((Boolean) newValue).booleanValue()); return; case PageflowPackage.PF_LINK__BEND_POINTS: getBendPoints().clear(); getBendPoints().addAll((Collection) newValue); return; case PageflowPackage.PF_LINK__SMALLICON: setSmallicon((String) newValue); return; case PageflowPackage.PF_LINK__LARGEICON: setLargeicon((String) newValue); return; case PageflowPackage.PF_LINK__FROMACTION: setFromaction((String) newValue); return; } super.eSet(eFeature, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void eUnset(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case PageflowPackage.PF_LINK__NAME: setName(NAME_EDEFAULT); return; case PageflowPackage.PF_LINK__COMMENT: setComment(COMMENT_EDEFAULT); return; case PageflowPackage.PF_LINK__X: setX(X_EDEFAULT); return; case PageflowPackage.PF_LINK__Y: setY(Y_EDEFAULT); return; case PageflowPackage.PF_LINK__WIDTH: setWidth(WIDTH_EDEFAULT); return; case PageflowPackage.PF_LINK__HEIGHT: setHeight(HEIGHT_EDEFAULT); return; case PageflowPackage.PF_LINK__ID: setId(ID_EDEFAULT); return; case PageflowPackage.PF_LINK__PAGEFLOW: setPageflow((Pageflow) null); return; case PageflowPackage.PF_LINK__TARGET: setTarget((PageflowNode) null); return; case PageflowPackage.PF_LINK__SOURCE: setSource((PageflowNode) null); return; case PageflowPackage.PF_LINK__OUTCOME: setOutcome(OUTCOME_EDEFAULT); return; case PageflowPackage.PF_LINK__REDIRECT: setRedirect(REDIRECT_EDEFAULT); return; case PageflowPackage.PF_LINK__BEND_POINTS: getBendPoints().clear(); return; case PageflowPackage.PF_LINK__SMALLICON: setSmallicon(SMALLICON_EDEFAULT); return; case PageflowPackage.PF_LINK__LARGEICON: setLargeicon(LARGEICON_EDEFAULT); return; case PageflowPackage.PF_LINK__FROMACTION: setFromaction(FROMACTION_EDEFAULT); return; } super.eUnset(eFeature); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public boolean eIsSet(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case PageflowPackage.PF_LINK__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT .equals(name); case PageflowPackage.PF_LINK__COMMENT: return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment); case PageflowPackage.PF_LINK__X: return x != X_EDEFAULT; case PageflowPackage.PF_LINK__Y: return y != Y_EDEFAULT; case PageflowPackage.PF_LINK__WIDTH: return width != WIDTH_EDEFAULT; case PageflowPackage.PF_LINK__HEIGHT: return height != HEIGHT_EDEFAULT; case PageflowPackage.PF_LINK__ID: return ID_EDEFAULT == null ? getId() != null : !ID_EDEFAULT .equals(getId()); case PageflowPackage.PF_LINK__PAGEFLOW: return getPageflow() != null; case PageflowPackage.PF_LINK__TARGET: return target != null; case PageflowPackage.PF_LINK__SOURCE: return source != null; case PageflowPackage.PF_LINK__OUTCOME: return OUTCOME_EDEFAULT == null ? getOutcome() != null : !OUTCOME_EDEFAULT.equals(getOutcome()); case PageflowPackage.PF_LINK__REDIRECT: return isRedirect() != REDIRECT_EDEFAULT; case PageflowPackage.PF_LINK__BEND_POINTS: return bendPoints != null && !bendPoints.isEmpty(); case PageflowPackage.PF_LINK__SMALLICON: return SMALLICON_EDEFAULT == null ? getSmallicon() != null : !SMALLICON_EDEFAULT.equals(getSmallicon()); case PageflowPackage.PF_LINK__LARGEICON: return LARGEICON_EDEFAULT == null ? getLargeicon() != null : !LARGEICON_EDEFAULT.equals(getLargeicon()); case PageflowPackage.PF_LINK__FROMACTION: return FROMACTION_EDEFAULT == null ? getFromaction() != null : !FROMACTION_EDEFAULT.equals(getFromaction()); } return super.eIsSet(eFeature); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (smallicon: "); //$NON-NLS-1$ result.append(getSmallicon()); result.append(", largeicon: "); //$NON-NLS-1$ result.append(getLargeicon()); result.append(", fromaction: "); //$NON-NLS-1$ result.append(getFromaction()); result.append(", outcome: "); //$NON-NLS-1$ result.append(getOutcome()); result.append(", redirect: "); //$NON-NLS-1$ result.append(isRedirect()); result.append(')'); return result.toString(); } /** * <!-- begin-user-doc --> insert a new bendpoint to the link <!-- * end-user-doc --> * * @generated NOT */ public void insertBendpoint(int index, PageflowLinkBendpoint point) { getBendPoints().add(index, point); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.ADD, PageflowPackage.PF_LINK__BEND_POINTS, null, point)); } /** * <!-- begin-user-doc --> remove the current bendpoint <!-- end-user-doc * --> * * @generated NOT */ public void removeBendpoint(int index) { getBendPoints().remove(index); } /** * <!-- begin-user-doc --> Set the current bendpoint <!-- end-user-doc --> * * @generated NOT */ public void setBendpoint(int index, PageflowLinkBendpoint point) { getBendPoints().set(index, point); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__BEND_POINTS, null, point)); } /** * <!-- begin-user-doc --> Set a group of bendpoints to reconstruct the link * <!-- end-user-doc --> * * @generated NOT */ public void setBendpoints(Vector points) { bendPoints = (EList) points; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.ADD_MANY, PageflowPackage.PF_LINK__BEND_POINTS, null, points)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public boolean isRedirect() { Boolean result = (Boolean) getFCElements().get( PageflowPackage.PF_LINK__REDIRECT); return result.booleanValue(); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public void setRedirect(boolean newRedirect) { Boolean oldRedirect = new Boolean(isRedirect()); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__REDIRECT, oldRedirect, new Boolean(newRedirect))); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public String getOutcome() { String result = (String) getFCElements().get( PageflowPackage.PF_LINK__OUTCOME); return result; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public void setOutcome(String newValue) { String oldOutcome = getOutcome(); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__OUTCOME, oldOutcome, newValue)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public String getSmallicon() { String result = (String) getFCElements().get( PageflowPackage.PF_LINK__SMALLICON); return result; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public void setSmallicon(String newValue) { String oldSmallicon = getSmallicon(); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__SMALLICON, oldSmallicon, newValue)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public String getLargeicon() { String result = (String) getFCElements().get( PageflowPackage.PF_LINK__LARGEICON); return result; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public void setLargeicon(String newValue) { String oldLargeIcon = getLargeicon(); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__LARGEICON, oldLargeIcon, newValue)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public String getFromaction() { String result = (String) getFCElements().get( PageflowPackage.PF_LINK__FROMACTION); return result; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */ public void setFromaction(String newFromaction) { String oldFromActionType = getFromaction(); if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PageflowPackage.PF_LINK__FROMACTION, oldFromActionType, newFromaction)); } /** * @generated NOT */ public ReferenceElement getFCElements() { if (refElement == null) { refElement = new LinkReferenceElement(this); } return refElement; } } // PFLinkImpl