📄 nodeelementimpl.java
字号:
return size;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSize(Size newSize, NotificationChain msgs) {
Size oldSize = size;
size = newSize;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CorePackage.NODE_ELEMENT__SIZE, oldSize, newSize);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSize(Size newSize) {
if (newSize != size) {
NotificationChain msgs = null;
if (size != null)
msgs = ((InternalEObject)size).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CorePackage.NODE_ELEMENT__SIZE, null, msgs);
if (newSize != null)
msgs = ((InternalEObject)newSize).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CorePackage.NODE_ELEMENT__SIZE, null, msgs);
msgs = basicSetSize(newSize, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.NODE_ELEMENT__SIZE, newSize, newSize));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isCollapsed() {
return collapsed;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCollapsed(boolean newCollapsed) {
boolean oldCollapsed = collapsed;
collapsed = newCollapsed;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.NODE_ELEMENT__COLLAPSED, oldCollapsed, collapsed));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TNodeType getNodeType() {
return nodeType;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNodeType(TNodeType newNodeType) {
TNodeType oldNodeType = nodeType;
nodeType = newNodeType == null ? NODE_TYPE_EDEFAULT : newNodeType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.NODE_ELEMENT__NODE_TYPE, oldNodeType, nodeType));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isGrouped() {
return grouped;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setGrouped(boolean newGrouped) {
boolean oldGrouped = grouped;
grouped = newGrouped;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.NODE_ELEMENT__GROUPED, oldGrouped, grouped));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NodeElementLabel getNodeLabel() {
if (nodeLabel != null && nodeLabel.eIsProxy()) {
InternalEObject oldNodeLabel = (InternalEObject)nodeLabel;
nodeLabel = (NodeElementLabel)eResolveProxy(oldNodeLabel);
if (nodeLabel != oldNodeLabel) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, CorePackage.NODE_ELEMENT__NODE_LABEL, oldNodeLabel, nodeLabel));
}
}
return nodeLabel;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NodeElementLabel basicGetNodeLabel() {
return nodeLabel;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNodeLabel(NodeElementLabel newNodeLabel) {
NodeElementLabel oldNodeLabel = nodeLabel;
nodeLabel = newNodeLabel;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.NODE_ELEMENT__NODE_LABEL, oldNodeLabel, nodeLabel));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case CorePackage.NODE_ELEMENT__PARENT:
return basicSetParent(null, msgs);
case CorePackage.NODE_ELEMENT__SOURCE_CONNECTIONS:
return ((InternalEList)getSourceConnections()).basicRemove(otherEnd, msgs);
case CorePackage.NODE_ELEMENT__LOCATION:
return basicSetLocation(null, msgs);
case CorePackage.NODE_ELEMENT__SIZE:
return basicSetSize(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case CorePackage.NODE_ELEMENT__PARENT:
return getParent();
case CorePackage.NODE_ELEMENT__TARGET_CONNECTIONS:
return getTargetConnections();
case CorePackage.NODE_ELEMENT__SOURCE_CONNECTIONS:
return getSourceConnections();
case CorePackage.NODE_ELEMENT__LOCATION:
return getLocation();
case CorePackage.NODE_ELEMENT__SIZE:
return getSize();
case CorePackage.NODE_ELEMENT__COLLAPSED:
return isCollapsed() ? Boolean.TRUE : Boolean.FALSE;
case CorePackage.NODE_ELEMENT__NODE_TYPE:
return getNodeType();
case CorePackage.NODE_ELEMENT__GROUPED:
return isGrouped() ? Boolean.TRUE : Boolean.FALSE;
case CorePackage.NODE_ELEMENT__NODE_LABEL:
if (resolve) return getNodeLabel();
return basicGetNodeLabel();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case CorePackage.NODE_ELEMENT__PARENT:
setParent((NodeElement)newValue);
return;
case CorePackage.NODE_ELEMENT__TARGET_CONNECTIONS:
getTargetConnections().clear();
getTargetConnections().addAll((Collection)newValue);
return;
case CorePackage.NODE_ELEMENT__SOURCE_CONNECTIONS:
getSourceConnections().clear();
getSourceConnections().addAll((Collection)newValue);
return;
case CorePackage.NODE_ELEMENT__LOCATION:
setLocation((Location)newValue);
return;
case CorePackage.NODE_ELEMENT__SIZE:
setSize((Size)newValue);
return;
case CorePackage.NODE_ELEMENT__COLLAPSED:
setCollapsed(((Boolean)newValue).booleanValue());
return;
case CorePackage.NODE_ELEMENT__NODE_TYPE:
setNodeType((TNodeType)newValue);
return;
case CorePackage.NODE_ELEMENT__GROUPED:
setGrouped(((Boolean)newValue).booleanValue());
return;
case CorePackage.NODE_ELEMENT__NODE_LABEL:
setNodeLabel((NodeElementLabel)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case CorePackage.NODE_ELEMENT__PARENT:
setParent((NodeElement)null);
return;
case CorePackage.NODE_ELEMENT__TARGET_CONNECTIONS:
getTargetConnections().clear();
return;
case CorePackage.NODE_ELEMENT__SOURCE_CONNECTIONS:
getSourceConnections().clear();
return;
case CorePackage.NODE_ELEMENT__LOCATION:
setLocation((Location)null);
return;
case CorePackage.NODE_ELEMENT__SIZE:
setSize((Size)null);
return;
case CorePackage.NODE_ELEMENT__COLLAPSED:
setCollapsed(COLLAPSED_EDEFAULT);
return;
case CorePackage.NODE_ELEMENT__NODE_TYPE:
setNodeType(NODE_TYPE_EDEFAULT);
return;
case CorePackage.NODE_ELEMENT__GROUPED:
setGrouped(GROUPED_EDEFAULT);
return;
case CorePackage.NODE_ELEMENT__NODE_LABEL:
setNodeLabel((NodeElementLabel)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case CorePackage.NODE_ELEMENT__PARENT:
return parent != null;
case CorePackage.NODE_ELEMENT__TARGET_CONNECTIONS:
return targetConnections != null && !targetConnections.isEmpty();
case CorePackage.NODE_ELEMENT__SOURCE_CONNECTIONS:
return sourceConnections != null && !sourceConnections.isEmpty();
case CorePackage.NODE_ELEMENT__LOCATION:
return location != null;
case CorePackage.NODE_ELEMENT__SIZE:
return size != null;
case CorePackage.NODE_ELEMENT__COLLAPSED:
return collapsed != COLLAPSED_EDEFAULT;
case CorePackage.NODE_ELEMENT__NODE_TYPE:
return nodeType != NODE_TYPE_EDEFAULT;
case CorePackage.NODE_ELEMENT__GROUPED:
return grouped != GROUPED_EDEFAULT;
case CorePackage.NODE_ELEMENT__NODE_LABEL:
return nodeLabel != null;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (collapsed: ");
result.append(collapsed);
result.append(", nodeType: ");
result.append(nodeType);
result.append(", grouped: ");
result.append(grouped);
result.append(')');
return result.toString();
}
} //NodeElementImpl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -