📄 xclusterimpl.java
字号:
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GroupPackage.XCLUSTER__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getNotice() {
return notice;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNotice(String newNotice) {
String oldNotice = notice;
notice = newNotice;
boolean oldNoticeESet = noticeESet;
noticeESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GroupPackage.XCLUSTER__NOTICE, oldNotice, notice, !oldNoticeESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetNotice() {
String oldNotice = notice;
boolean oldNoticeESet = noticeESet;
notice = NOTICE_EDEFAULT;
noticeESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, GroupPackage.XCLUSTER__NOTICE, oldNotice, NOTICE_EDEFAULT, oldNoticeESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetNotice() {
return noticeESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getOldCategory() {
return oldCategory;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOldCategory(int newOldCategory) {
int oldOldCategory = oldCategory;
oldCategory = newOldCategory;
boolean oldOldCategoryESet = oldCategoryESet;
oldCategoryESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GroupPackage.XCLUSTER__OLD_CATEGORY, oldOldCategory, oldCategory, !oldOldCategoryESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetOldCategory() {
int oldOldCategory = oldCategory;
boolean oldOldCategoryESet = oldCategoryESet;
oldCategory = OLD_CATEGORY_EDEFAULT;
oldCategoryESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, GroupPackage.XCLUSTER__OLD_CATEGORY, oldOldCategory, OLD_CATEGORY_EDEFAULT, oldOldCategoryESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetOldCategory() {
return oldCategoryESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getParentClusterId() {
return parentClusterId;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParentClusterId(int newParentClusterId) {
int oldParentClusterId = parentClusterId;
parentClusterId = newParentClusterId;
boolean oldParentClusterIdESet = parentClusterIdESet;
parentClusterIdESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GroupPackage.XCLUSTER__PARENT_CLUSTER_ID, oldParentClusterId, parentClusterId, !oldParentClusterIdESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void unsetParentClusterId() {
int oldParentClusterId = parentClusterId;
boolean oldParentClusterIdESet = parentClusterIdESet;
parentClusterId = PARENT_CLUSTER_ID_EDEFAULT;
parentClusterIdESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, GroupPackage.XCLUSTER__PARENT_CLUSTER_ID, oldParentClusterId, PARENT_CLUSTER_ID_EDEFAULT, oldParentClusterIdESet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isSetParentClusterId() {
return parentClusterIdESet;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getStockholders() {
return stockholders;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStockholders(String newStockholders) {
String oldStockholders = stockholders;
stockholders = newStockholders;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GroupPackage.XCLUSTER__STOCKHOLDERS, oldStockholders, stockholders));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getType() {
return type;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setType(String newType) {
String oldType = type;
type = newType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GroupPackage.XCLUSTER__TYPE, oldType, type));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case GroupPackage.XCLUSTER__USER:
return ((InternalEList)getUser()).basicRemove(otherEnd, msgs);
case GroupPackage.XCLUSTER__ORGANIZATION:
return ((InternalEList)getOrganization()).basicRemove(otherEnd, 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 GroupPackage.XCLUSTER__USER:
return getUser();
case GroupPackage.XCLUSTER__ORGANIZATION:
return getOrganization();
case GroupPackage.XCLUSTER__ADMINS:
return getAdmins();
case GroupPackage.XCLUSTER__AUTH_TYPE:
return new Integer(getAuthType());
case GroupPackage.XCLUSTER__CATEGORY:
return new Integer(getCategory());
case GroupPackage.XCLUSTER__CLUSTER_ID:
return new Integer(getClusterId());
case GroupPackage.XCLUSTER__CREATOR:
return new Integer(getCreator());
case GroupPackage.XCLUSTER__DESCRIPTION:
return getDescription();
case GroupPackage.XCLUSTER__EXTERNAL_ID:
return new Integer(getExternalId());
case GroupPackage.XCLUSTER__HEAD_ID:
return new Integer(getHeadId());
case GroupPackage.XCLUSTER__LAST_MESSAGE_TIME:
return new Long(getLastMessageTime());
case GroupPackage.XCLUSTER__MESSAGE_SETTING:
return getMessageSetting();
case GroupPackage.XCLUSTER__NAME:
return getName();
case GroupPackage.XCLUSTER__NOTICE:
return getNotice();
case GroupPackage.XCLUSTER__OLD_CATEGORY:
return new Integer(getOldCategory());
case GroupPackage.XCLUSTER__PARENT_CLUSTER_ID:
return new Integer(getParentClusterId());
case GroupPackage.XCLUSTER__STOCKHOLDERS:
return getStockholders();
case GroupPackage.XCLUSTER__TYPE:
return getType();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case GroupPackage.XCLUSTER__USER:
getUser().clear();
getUser().addAll((Collection)newValue);
return;
case GroupPackage.XCLUSTER__ORGANIZATION:
getOrganization().clear();
getOrganization().addAll((Collection)newValue);
return;
case GroupPackage.XCLUSTER__ADMINS:
setAdmins((String)newValue);
return;
case GroupPackage.XCLUSTER__AUTH_TYPE:
setAuthType(((Integer)newValue).intValue());
return;
case GroupPackage.XCLUSTER__CATEGORY:
setCategory(((Integer)newValue).intValue());
return;
case GroupPackage.XCLUSTER__CLUSTER_ID:
setClusterId(((Integer)newValue).intValue());
return;
case GroupPackage.XCLUSTER__CREATOR:
setCreator(((Integer)newValue).intValue());
return;
case GroupPackage.XCLUSTER__DESCRIPTION:
setDescription((String)newValue);
return;
case GroupPackage.XCLUSTER__EXTERNAL_ID:
setExternalId(((Integer)newValue).intValue());
return;
case GroupPackage.XCLUSTER__HEAD_ID:
setHeadId(((Integer)newValue).intValue());
return;
case GroupPackage.XCLUSTER__LAST_MESSAGE_TIME:
setLastMessageTime(((Long)newValue).longValue());
return;
case GroupPackage.XCLUSTER__MESSAGE_SETTING:
setMessageSetting((String)newValue);
return;
case GroupPackage.XCLUSTER__NAME:
setName((String)newValue);
return;
case GroupPackage.XCLUSTER__NOTICE:
setNotice((String)newValue);
return;
case GroupPackage.XCLUSTER__OLD_CATEGORY:
setOldCategory(((Integer)newValue).intValue());
return;
case GroupPackage.XCLUSTER__PARENT_CLUSTER_ID:
setParentClusterId(((Integer)newValue).intValue());
return;
case GroupPackage.XCLUSTER__STOCKHOLDERS:
setStockholders((String)newValue);
return;
case GroupPackage.XCLUSTER__TYPE:
setType((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case GroupPackage.XCLUSTER__USER:
getUser().clear();
return;
case GroupPackage.XCLUSTER__ORGANIZATION:
getOrganization().clear();
return;
case GroupPackage.XCLUSTER__ADMINS:
setAdmins(ADMINS_EDEFAULT);
return;
case GroupPackage.XCLUSTER__AUTH_TYPE:
unsetAuthType();
return;
case GroupPackage.XCLUSTER__CATEGORY:
unsetCategory();
return;
case GroupPackage.XCLUSTER__CLUSTER_ID:
unsetClusterId();
return;
case GroupPackage.XCLUSTER__CREATOR:
unsetCreator();
return;
case GroupPackage.XCLUSTER__DESCRIPTION:
unsetDescription();
return;
case GroupPackage.XCLUSTER__EXTERNAL_ID:
unsetExternalId();
return;
case GroupPackage.XCLUSTER__HEAD_ID:
unsetHeadId();
return;
case GroupPackage.XCLUSTER__LAST_MESSAGE_TIME:
unsetLastMessageTime();
return;
case GroupPackage.XCLUSTER__MESSAGE_SETTING:
setMessageSetting(MESSAGE_SETTING_EDEFAULT);
return;
case GroupPackage.XCLUSTER__NAME:
setName(NAME_EDEFAULT);
return;
case GroupPackage.XCLUSTER__NOTICE:
unsetNotice();
return;
case GroupPackage.XCLUSTER__OLD_CATEGORY:
unsetOldCategory();
return;
case GroupPackage.XCLUSTER__PARENT_CLUSTER_ID:
unsetParentClusterId();
return;
case GroupPackage.XCLUSTER__STOCKHOLDERS:
setStockholders(STOCKHOLDERS_EDEFAULT);
return;
case GroupPackage.XCLUSTER__TYPE:
setType(TYPE_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case GroupPackage.XCLUSTER__USER:
return user != null && !user.isEmpty();
case GroupPackage.XCLUSTER__ORGANIZATION:
return organization != null && !organization.isEmpty();
case GroupPackage.XCLUSTER__ADMINS:
return ADMINS_EDEFAULT == null ? admins != null : !ADMINS_EDEFAULT.equals(admins);
case GroupPackage.XCLUSTER__AUTH_TYPE:
return isSetAuthType();
case GroupPackage.XCLUSTER__CATEGORY:
return isSetCategory();
case GroupPackage.XCLUSTER__CLUSTER_ID:
return isSetClusterId();
case GroupPackage.XCLUSTER__CREATOR:
return isSetCreator();
case GroupPackage.XCLUSTER__DESCRIPTION:
return isSetDescription();
case GroupPackage.XCLUSTER__EXTERNAL_ID:
return isSetExternalId();
case GroupPackage.XCLUSTER__HEAD_ID:
return isSetHeadId();
case GroupPackage.XCLUSTER__LAST_MESSAGE_TIME:
return isSetLastMessageTime();
case GroupPackage.XCLUSTER__MESSAGE_SETTING:
return MESSAGE_SETTING_EDEFAULT == null ? messageSetting != null : !MESSAGE_SETTING_EDEFAULT.equals(messageSetting);
case GroupPackage.XCLUSTER__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case GroupPackage.XCLUSTER__NOTICE:
return isSetNotice();
case GroupPackage.XCLUSTER__OLD_CATEGORY:
return isSetOldCategory();
case GroupPackage.XCLUSTER__PARENT_CLUSTER_ID:
return isSetParentClusterId();
case GroupPackage.XCLUSTER__STOCKHOLDERS:
return STOCKHOLDERS_EDEFAULT == null ? stockholders != null : !STOCKHOLDERS_EDEFAULT.equals(stockholders);
case GroupPackage.XCLUSTER__TYPE:
return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
}
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(" (admins: ");
result.append(admins);
result.append(", authType: ");
if (authTypeESet) result.append(authType); else result.append("<unset>");
result.append(", category: ");
if (categoryESet) result.append(category); else result.append("<unset>");
result.append(", clusterId: ");
if (clusterIdESet) result.append(clusterId); else result.append("<unset>");
result.append(", creator: ");
if (creatorESet) result.append(creator); else result.append("<unset>");
result.append(", description: ");
if (descriptionESet) result.append(description); else result.append("<unset>");
result.append(", externalId: ");
if (externalIdESet) result.append(externalId); else result.append("<unset>");
result.append(", headId: ");
if (headIdESet) result.append(headId); else result.append("<unset>");
result.append(", lastMessageTime: ");
if (lastMessageTimeESet) result.append(lastMessageTime); else result.append("<unset>");
result.append(", messageSetting: ");
result.append(messageSetting);
result.append(", name: ");
result.append(name);
result.append(", notice: ");
if (noticeESet) result.append(notice); else result.append("<unset>");
result.append(", oldCategory: ");
if (oldCategoryESet) result.append(oldCategory); else result.append("<unset>");
result.append(", parentClusterId: ");
if (parentClusterIdESet) result.append(parentClusterId); else result.append("<unset>");
result.append(", stockholders: ");
result.append(stockholders);
result.append(", type: ");
result.append(type);
result.append(')');
return result.toString();
}
} //XClusterImpl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -