blob: a0c9c8a410b398a983d9fa748726a6011abe9be7 [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2004, 2010 IBM Corporation and others.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
****************************************************************************/
package org.eclipse.gmf.runtime.notation.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.gmf.runtime.notation.JumpLinkStatus;
import org.eclipse.gmf.runtime.notation.JumpLinkType;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.Routing;
import org.eclipse.gmf.runtime.notation.RoutingStyle;
import org.eclipse.gmf.runtime.notation.Smoothness;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>Routing
* Style</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.gmf.runtime.notation.impl.RoutingStyleImpl#getRouting
* <em>Routing</em>}</li>
* <li>{@link org.eclipse.gmf.runtime.notation.impl.RoutingStyleImpl#getSmoothness
* <em>Smoothness</em>}</li>
* <li>{@link org.eclipse.gmf.runtime.notation.impl.RoutingStyleImpl#isAvoidObstructions
* <em>Avoid Obstructions</em>}</li>
* <li>{@link org.eclipse.gmf.runtime.notation.impl.RoutingStyleImpl#isClosestDistance
* <em>Closest Distance</em>}</li>
* <li>{@link org.eclipse.gmf.runtime.notation.impl.RoutingStyleImpl#getJumpLinkStatus
* <em>Jump Link Status</em>}</li>
* <li>{@link org.eclipse.gmf.runtime.notation.impl.RoutingStyleImpl#getJumpLinkType
* <em>Jump Link Type</em>}</li>
* <li>{@link org.eclipse.gmf.runtime.notation.impl.RoutingStyleImpl#isJumpLinksReverse
* <em>Jump Links Reverse</em>}</li>
* </ul>
*
* @generated
*/
/*
* @canBeSeenBy org.eclipse.gmf.runtime.notation.*
*/
public class RoutingStyleImpl extends RoundedCornersStyleImpl implements RoutingStyle {
/**
* int field to store booleans and enums
*
* @since 1.2
*/
protected int eFlags = 0;
/**
* The default value of the '{@link #getRouting() <em>Routing</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #getRouting()
* @generated
* @ordered
*/
protected static final Routing ROUTING_EDEFAULT = Routing.MANUAL_LITERAL;
/**
* The offset of the flags representing the value of the '{@link #getRouting()
* <em>Routing</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
* @ordered
*/
protected static final int ROUTING_EFLAG_OFFSET = 8;
/**
* The flags representing the default value of the '{@link #getRouting()
* <em>Routing</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
* @ordered
*/
protected static final int ROUTING_EFLAG_DEFAULT = Routing.VALUES.indexOf(ROUTING_EDEFAULT) << ROUTING_EFLAG_OFFSET;
/**
* The array of enumeration values for '{@link Routing Routing}' <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
* @ordered
*/
private static final Routing[] ROUTING_EFLAG_VALUES = (Routing[]) Routing.VALUES
.toArray(new Routing[Routing.VALUES.size()]);
/**
* The flags representing the value of the '{@link #getRouting()
* <em>Routing</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #getRouting()
* @generated
* @ordered
*/
protected static final int ROUTING_EFLAG = 0x3 << ROUTING_EFLAG_OFFSET;
/**
* The default value of the '{@link #getSmoothness() <em>Smoothness</em>}'
* attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #getSmoothness()
* @generated
* @ordered
*/
protected static final Smoothness SMOOTHNESS_EDEFAULT = Smoothness.NONE_LITERAL;
/**
* The offset of the flags representing the value of the
* '{@link #getSmoothness() <em>Smoothness</em>}' attribute. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
* @ordered
*/
protected static final int SMOOTHNESS_EFLAG_OFFSET = 10;
/**
* The flags representing the default value of the '{@link #getSmoothness()
* <em>Smoothness</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
* -->
*
* @generated
* @ordered
*/
protected static final int SMOOTHNESS_EFLAG_DEFAULT = Smoothness.VALUES
.indexOf(SMOOTHNESS_EDEFAULT) << SMOOTHNESS_EFLAG_OFFSET;
/**
* The array of enumeration values for '{@link Smoothness Smoothness}' <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
* @ordered
*/
private static final Smoothness[] SMOOTHNESS_EFLAG_VALUES = (Smoothness[]) Smoothness.VALUES
.toArray(new Smoothness[Smoothness.VALUES.size()]);
/**
* The flags representing the value of the '{@link #getSmoothness()
* <em>Smoothness</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
* -->
*
* @see #getSmoothness()
* @generated
* @ordered
*/
protected static final int SMOOTHNESS_EFLAG = 0x3 << SMOOTHNESS_EFLAG_OFFSET;
/**
* The default value of the '{@link #isAvoidObstructions() <em>Avoid
* Obstructions</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #isAvoidObstructions()
* @generated
* @ordered
*/
protected static final boolean AVOID_OBSTRUCTIONS_EDEFAULT = false;
/**
* The flag representing the value of the '{@link #isAvoidObstructions()
* <em>Avoid Obstructions</em>}' attribute. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @see #isAvoidObstructions()
* @generated
* @ordered
*/
protected static final int AVOID_OBSTRUCTIONS_EFLAG = 1 << 12;
/**
* The default value of the '{@link #isClosestDistance() <em>Closest
* Distance</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #isClosestDistance()
* @generated
* @ordered
*/
protected static final boolean CLOSEST_DISTANCE_EDEFAULT = false;
/**
* The flag representing the value of the '{@link #isClosestDistance()
* <em>Closest Distance</em>}' attribute. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @see #isClosestDistance()
* @generated
* @ordered
*/
protected static final int CLOSEST_DISTANCE_EFLAG = 1 << 13;
/**
* The default value of the '{@link #getJumpLinkStatus() <em>Jump Link
* Status</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #getJumpLinkStatus()
* @generated
* @ordered
*/
protected static final JumpLinkStatus JUMP_LINK_STATUS_EDEFAULT = JumpLinkStatus.NONE_LITERAL;
/**
* The offset of the flags representing the value of the
* '{@link #getJumpLinkStatus() <em>Jump Link Status</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
* @ordered
*/
protected static final int JUMP_LINK_STATUS_EFLAG_OFFSET = 14;
/**
* The flags representing the default value of the '{@link #getJumpLinkStatus()
* <em>Jump Link Status</em>}' attribute. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
* @ordered
*/
protected static final int JUMP_LINK_STATUS_EFLAG_DEFAULT = JumpLinkStatus.VALUES
.indexOf(JUMP_LINK_STATUS_EDEFAULT) << JUMP_LINK_STATUS_EFLAG_OFFSET;
/**
* The array of enumeration values for '{@link JumpLinkStatus Jump Link Status}'
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
* @ordered
*/
private static final JumpLinkStatus[] JUMP_LINK_STATUS_EFLAG_VALUES = (JumpLinkStatus[]) JumpLinkStatus.VALUES
.toArray(new JumpLinkStatus[JumpLinkStatus.VALUES.size()]);
/**
* The flags representing the value of the '{@link #getJumpLinkStatus() <em>Jump
* Link Status</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #getJumpLinkStatus()
* @generated
* @ordered
*/
protected static final int JUMP_LINK_STATUS_EFLAG = 0x3 << JUMP_LINK_STATUS_EFLAG_OFFSET;
/**
* The default value of the '{@link #getJumpLinkType() <em>Jump Link Type</em>}'
* attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #getJumpLinkType()
* @generated
* @ordered
*/
protected static final JumpLinkType JUMP_LINK_TYPE_EDEFAULT = JumpLinkType.SEMICIRCLE_LITERAL;
/**
* The offset of the flags representing the value of the
* '{@link #getJumpLinkType() <em>Jump Link Type</em>}' attribute. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
* @ordered
*/
protected static final int JUMP_LINK_TYPE_EFLAG_OFFSET = 16;
/**
* The flags representing the default value of the '{@link #getJumpLinkType()
* <em>Jump Link Type</em>}' attribute. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
* @ordered
*/
protected static final int JUMP_LINK_TYPE_EFLAG_DEFAULT = JumpLinkType.VALUES
.indexOf(JUMP_LINK_TYPE_EDEFAULT) << JUMP_LINK_TYPE_EFLAG_OFFSET;
/**
* The array of enumeration values for '{@link JumpLinkType Jump Link Type}'
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
* @ordered
*/
private static final JumpLinkType[] JUMP_LINK_TYPE_EFLAG_VALUES = (JumpLinkType[]) JumpLinkType.VALUES
.toArray(new JumpLinkType[JumpLinkType.VALUES.size()]);
/**
* The flags representing the value of the '{@link #getJumpLinkType() <em>Jump
* Link Type</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #getJumpLinkType()
* @generated
* @ordered
*/
protected static final int JUMP_LINK_TYPE_EFLAG = 0x3 << JUMP_LINK_TYPE_EFLAG_OFFSET;
/**
* The default value of the '{@link #isJumpLinksReverse() <em>Jump Links
* Reverse</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #isJumpLinksReverse()
* @generated
* @ordered
*/
protected static final boolean JUMP_LINKS_REVERSE_EDEFAULT = false;
/**
* The flag representing the value of the '{@link #isJumpLinksReverse() <em>Jump
* Links Reverse</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #isJumpLinksReverse()
* @generated
* @ordered
*/
protected static final int JUMP_LINKS_REVERSE_EFLAG = 1 << 18;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
protected RoutingStyleImpl() {
super();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
protected EClass eStaticClass() {
return NotationPackage.Literals.ROUTING_STYLE;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public Routing getRouting() {
return ROUTING_EFLAG_VALUES[(eFlags & ROUTING_EFLAG) >>> ROUTING_EFLAG_OFFSET];
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void setRouting(Routing newRouting) {
Routing oldRouting = ROUTING_EFLAG_VALUES[(eFlags & ROUTING_EFLAG) >>> ROUTING_EFLAG_OFFSET];
if (newRouting == null)
newRouting = ROUTING_EDEFAULT;
eFlags = eFlags & ~ROUTING_EFLAG | Routing.VALUES.indexOf(newRouting) << ROUTING_EFLAG_OFFSET;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.ROUTING_STYLE__ROUTING, oldRouting,
newRouting));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public Smoothness getSmoothness() {
return SMOOTHNESS_EFLAG_VALUES[(eFlags & SMOOTHNESS_EFLAG) >>> SMOOTHNESS_EFLAG_OFFSET];
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void setSmoothness(Smoothness newSmoothness) {
Smoothness oldSmoothness = SMOOTHNESS_EFLAG_VALUES[(eFlags & SMOOTHNESS_EFLAG) >>> SMOOTHNESS_EFLAG_OFFSET];
if (newSmoothness == null)
newSmoothness = SMOOTHNESS_EDEFAULT;
eFlags = eFlags & ~SMOOTHNESS_EFLAG | Smoothness.VALUES.indexOf(newSmoothness) << SMOOTHNESS_EFLAG_OFFSET;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.ROUTING_STYLE__SMOOTHNESS,
oldSmoothness, newSmoothness));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public boolean isAvoidObstructions() {
return (eFlags & AVOID_OBSTRUCTIONS_EFLAG) != 0;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void setAvoidObstructions(boolean newAvoidObstructions) {
boolean oldAvoidObstructions = (eFlags & AVOID_OBSTRUCTIONS_EFLAG) != 0;
if (newAvoidObstructions)
eFlags |= AVOID_OBSTRUCTIONS_EFLAG;
else
eFlags &= ~AVOID_OBSTRUCTIONS_EFLAG;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.ROUTING_STYLE__AVOID_OBSTRUCTIONS,
oldAvoidObstructions, newAvoidObstructions));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public boolean isClosestDistance() {
return (eFlags & CLOSEST_DISTANCE_EFLAG) != 0;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void setClosestDistance(boolean newClosestDistance) {
boolean oldClosestDistance = (eFlags & CLOSEST_DISTANCE_EFLAG) != 0;
if (newClosestDistance)
eFlags |= CLOSEST_DISTANCE_EFLAG;
else
eFlags &= ~CLOSEST_DISTANCE_EFLAG;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.ROUTING_STYLE__CLOSEST_DISTANCE,
oldClosestDistance, newClosestDistance));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public JumpLinkStatus getJumpLinkStatus() {
return JUMP_LINK_STATUS_EFLAG_VALUES[(eFlags & JUMP_LINK_STATUS_EFLAG) >>> JUMP_LINK_STATUS_EFLAG_OFFSET];
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void setJumpLinkStatus(JumpLinkStatus newJumpLinkStatus) {
JumpLinkStatus oldJumpLinkStatus = JUMP_LINK_STATUS_EFLAG_VALUES[(eFlags
& JUMP_LINK_STATUS_EFLAG) >>> JUMP_LINK_STATUS_EFLAG_OFFSET];
if (newJumpLinkStatus == null)
newJumpLinkStatus = JUMP_LINK_STATUS_EDEFAULT;
eFlags = eFlags & ~JUMP_LINK_STATUS_EFLAG
| JumpLinkStatus.VALUES.indexOf(newJumpLinkStatus) << JUMP_LINK_STATUS_EFLAG_OFFSET;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.ROUTING_STYLE__JUMP_LINK_STATUS,
oldJumpLinkStatus, newJumpLinkStatus));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public JumpLinkType getJumpLinkType() {
return JUMP_LINK_TYPE_EFLAG_VALUES[(eFlags & JUMP_LINK_TYPE_EFLAG) >>> JUMP_LINK_TYPE_EFLAG_OFFSET];
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void setJumpLinkType(JumpLinkType newJumpLinkType) {
JumpLinkType oldJumpLinkType = JUMP_LINK_TYPE_EFLAG_VALUES[(eFlags
& JUMP_LINK_TYPE_EFLAG) >>> JUMP_LINK_TYPE_EFLAG_OFFSET];
if (newJumpLinkType == null)
newJumpLinkType = JUMP_LINK_TYPE_EDEFAULT;
eFlags = eFlags & ~JUMP_LINK_TYPE_EFLAG
| JumpLinkType.VALUES.indexOf(newJumpLinkType) << JUMP_LINK_TYPE_EFLAG_OFFSET;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.ROUTING_STYLE__JUMP_LINK_TYPE,
oldJumpLinkType, newJumpLinkType));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public boolean isJumpLinksReverse() {
return (eFlags & JUMP_LINKS_REVERSE_EFLAG) != 0;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void setJumpLinksReverse(boolean newJumpLinksReverse) {
boolean oldJumpLinksReverse = (eFlags & JUMP_LINKS_REVERSE_EFLAG) != 0;
if (newJumpLinksReverse)
eFlags |= JUMP_LINKS_REVERSE_EFLAG;
else
eFlags &= ~JUMP_LINKS_REVERSE_EFLAG;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.ROUTING_STYLE__JUMP_LINKS_REVERSE,
oldJumpLinksReverse, newJumpLinksReverse));
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case NotationPackage.ROUTING_STYLE__ROUNDED_BENDPOINTS_RADIUS:
return new Integer(getRoundedBendpointsRadius());
case NotationPackage.ROUTING_STYLE__ROUTING:
return getRouting();
case NotationPackage.ROUTING_STYLE__SMOOTHNESS:
return getSmoothness();
case NotationPackage.ROUTING_STYLE__AVOID_OBSTRUCTIONS:
return isAvoidObstructions() ? Boolean.TRUE : Boolean.FALSE;
case NotationPackage.ROUTING_STYLE__CLOSEST_DISTANCE:
return isClosestDistance() ? Boolean.TRUE : Boolean.FALSE;
case NotationPackage.ROUTING_STYLE__JUMP_LINK_STATUS:
return getJumpLinkStatus();
case NotationPackage.ROUTING_STYLE__JUMP_LINK_TYPE:
return getJumpLinkType();
case NotationPackage.ROUTING_STYLE__JUMP_LINKS_REVERSE:
return isJumpLinksReverse() ? Boolean.TRUE : Boolean.FALSE;
}
return eDynamicGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case NotationPackage.ROUTING_STYLE__ROUNDED_BENDPOINTS_RADIUS:
setRoundedBendpointsRadius(((Integer) newValue).intValue());
return;
case NotationPackage.ROUTING_STYLE__ROUTING:
setRouting((Routing) newValue);
return;
case NotationPackage.ROUTING_STYLE__SMOOTHNESS:
setSmoothness((Smoothness) newValue);
return;
case NotationPackage.ROUTING_STYLE__AVOID_OBSTRUCTIONS:
setAvoidObstructions(((Boolean) newValue).booleanValue());
return;
case NotationPackage.ROUTING_STYLE__CLOSEST_DISTANCE:
setClosestDistance(((Boolean) newValue).booleanValue());
return;
case NotationPackage.ROUTING_STYLE__JUMP_LINK_STATUS:
setJumpLinkStatus((JumpLinkStatus) newValue);
return;
case NotationPackage.ROUTING_STYLE__JUMP_LINK_TYPE:
setJumpLinkType((JumpLinkType) newValue);
return;
case NotationPackage.ROUTING_STYLE__JUMP_LINKS_REVERSE:
setJumpLinksReverse(((Boolean) newValue).booleanValue());
return;
}
eDynamicSet(featureID, newValue);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case NotationPackage.ROUTING_STYLE__ROUNDED_BENDPOINTS_RADIUS:
setRoundedBendpointsRadius(ROUNDED_BENDPOINTS_RADIUS_EDEFAULT);
return;
case NotationPackage.ROUTING_STYLE__ROUTING:
setRouting(ROUTING_EDEFAULT);
return;
case NotationPackage.ROUTING_STYLE__SMOOTHNESS:
setSmoothness(SMOOTHNESS_EDEFAULT);
return;
case NotationPackage.ROUTING_STYLE__AVOID_OBSTRUCTIONS:
setAvoidObstructions(AVOID_OBSTRUCTIONS_EDEFAULT);
return;
case NotationPackage.ROUTING_STYLE__CLOSEST_DISTANCE:
setClosestDistance(CLOSEST_DISTANCE_EDEFAULT);
return;
case NotationPackage.ROUTING_STYLE__JUMP_LINK_STATUS:
setJumpLinkStatus(JUMP_LINK_STATUS_EDEFAULT);
return;
case NotationPackage.ROUTING_STYLE__JUMP_LINK_TYPE:
setJumpLinkType(JUMP_LINK_TYPE_EDEFAULT);
return;
case NotationPackage.ROUTING_STYLE__JUMP_LINKS_REVERSE:
setJumpLinksReverse(JUMP_LINKS_REVERSE_EDEFAULT);
return;
}
eDynamicUnset(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case NotationPackage.ROUTING_STYLE__ROUNDED_BENDPOINTS_RADIUS:
return roundedBendpointsRadius != ROUNDED_BENDPOINTS_RADIUS_EDEFAULT;
case NotationPackage.ROUTING_STYLE__ROUTING:
return (eFlags & ROUTING_EFLAG) != ROUTING_EFLAG_DEFAULT;
case NotationPackage.ROUTING_STYLE__SMOOTHNESS:
return (eFlags & SMOOTHNESS_EFLAG) != SMOOTHNESS_EFLAG_DEFAULT;
case NotationPackage.ROUTING_STYLE__AVOID_OBSTRUCTIONS:
return ((eFlags & AVOID_OBSTRUCTIONS_EFLAG) != 0) != AVOID_OBSTRUCTIONS_EDEFAULT;
case NotationPackage.ROUTING_STYLE__CLOSEST_DISTANCE:
return ((eFlags & CLOSEST_DISTANCE_EFLAG) != 0) != CLOSEST_DISTANCE_EDEFAULT;
case NotationPackage.ROUTING_STYLE__JUMP_LINK_STATUS:
return (eFlags & JUMP_LINK_STATUS_EFLAG) != JUMP_LINK_STATUS_EFLAG_DEFAULT;
case NotationPackage.ROUTING_STYLE__JUMP_LINK_TYPE:
return (eFlags & JUMP_LINK_TYPE_EFLAG) != JUMP_LINK_TYPE_EFLAG_DEFAULT;
case NotationPackage.ROUTING_STYLE__JUMP_LINKS_REVERSE:
return ((eFlags & JUMP_LINKS_REVERSE_EFLAG) != 0) != JUMP_LINKS_REVERSE_EDEFAULT;
}
return eDynamicIsSet(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public String toString() {
if (eIsProxy())
return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (routing: "); //$NON-NLS-1$
result.append(ROUTING_EFLAG_VALUES[(eFlags & ROUTING_EFLAG) >>> ROUTING_EFLAG_OFFSET]);
result.append(", smoothness: "); //$NON-NLS-1$
result.append(SMOOTHNESS_EFLAG_VALUES[(eFlags & SMOOTHNESS_EFLAG) >>> SMOOTHNESS_EFLAG_OFFSET]);
result.append(", avoidObstructions: "); //$NON-NLS-1$
result.append((eFlags & AVOID_OBSTRUCTIONS_EFLAG) != 0);
result.append(", closestDistance: "); //$NON-NLS-1$
result.append((eFlags & CLOSEST_DISTANCE_EFLAG) != 0);
result.append(", jumpLinkStatus: "); //$NON-NLS-1$
result.append(
JUMP_LINK_STATUS_EFLAG_VALUES[(eFlags & JUMP_LINK_STATUS_EFLAG) >>> JUMP_LINK_STATUS_EFLAG_OFFSET]);
result.append(", jumpLinkType: "); //$NON-NLS-1$
result.append(JUMP_LINK_TYPE_EFLAG_VALUES[(eFlags & JUMP_LINK_TYPE_EFLAG) >>> JUMP_LINK_TYPE_EFLAG_OFFSET]);
result.append(", jumpLinksReverse: "); //$NON-NLS-1$
result.append((eFlags & JUMP_LINKS_REVERSE_EFLAG) != 0);
result.append(')');
return result.toString();
}
} // RoutingStyleImpl