Java Code Examples for org.eclipse.xtext.xtype.XtypePackage#XIMPORT_DECLARATION__IMPORTED_TYPE

The following examples show how to use org.eclipse.xtext.xtype.XtypePackage#XIMPORT_DECLARATION__IMPORTED_TYPE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XImportDeclarationImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType)
{
	switch (featureID)
	{
		case XtypePackage.XIMPORT_DECLARATION__WILDCARD:
			return isWildcard();
		case XtypePackage.XIMPORT_DECLARATION__EXTENSION:
			return isExtension();
		case XtypePackage.XIMPORT_DECLARATION__STATIC:
			return isStatic();
		case XtypePackage.XIMPORT_DECLARATION__IMPORTED_TYPE:
			if (resolve) return getImportedType();
			return basicGetImportedType();
		case XtypePackage.XIMPORT_DECLARATION__MEMBER_NAME:
			return getMemberName();
		case XtypePackage.XIMPORT_DECLARATION__IMPORTED_NAMESPACE:
			return getImportedNamespace();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
Example 2
Source File: XImportDeclarationImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID)
{
	switch (featureID)
	{
		case XtypePackage.XIMPORT_DECLARATION__WILDCARD:
			return wildcard != WILDCARD_EDEFAULT;
		case XtypePackage.XIMPORT_DECLARATION__EXTENSION:
			return extension != EXTENSION_EDEFAULT;
		case XtypePackage.XIMPORT_DECLARATION__STATIC:
			return static_ != STATIC_EDEFAULT;
		case XtypePackage.XIMPORT_DECLARATION__IMPORTED_TYPE:
			return importedType != null;
		case XtypePackage.XIMPORT_DECLARATION__MEMBER_NAME:
			return MEMBER_NAME_EDEFAULT == null ? memberName != null : !MEMBER_NAME_EDEFAULT.equals(memberName);
		case XtypePackage.XIMPORT_DECLARATION__IMPORTED_NAMESPACE:
			return IMPORTED_NAMESPACE_EDEFAULT == null ? importedNamespace != null : !IMPORTED_NAMESPACE_EDEFAULT.equals(importedNamespace);
	}
	return super.eIsSet(featureID);
}
 
Example 3
Source File: XImportDeclarationImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue)
{
	switch (featureID)
	{
		case XtypePackage.XIMPORT_DECLARATION__WILDCARD:
			setWildcard((Boolean)newValue);
			return;
		case XtypePackage.XIMPORT_DECLARATION__EXTENSION:
			setExtension((Boolean)newValue);
			return;
		case XtypePackage.XIMPORT_DECLARATION__STATIC:
			setStatic((Boolean)newValue);
			return;
		case XtypePackage.XIMPORT_DECLARATION__IMPORTED_TYPE:
			setImportedType((JvmDeclaredType)newValue);
			return;
		case XtypePackage.XIMPORT_DECLARATION__MEMBER_NAME:
			setMemberName((String)newValue);
			return;
		case XtypePackage.XIMPORT_DECLARATION__IMPORTED_NAMESPACE:
			setImportedNamespace((String)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
Example 4
Source File: XImportDeclarationImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID)
{
	switch (featureID)
	{
		case XtypePackage.XIMPORT_DECLARATION__WILDCARD:
			setWildcard(WILDCARD_EDEFAULT);
			return;
		case XtypePackage.XIMPORT_DECLARATION__EXTENSION:
			setExtension(EXTENSION_EDEFAULT);
			return;
		case XtypePackage.XIMPORT_DECLARATION__STATIC:
			setStatic(STATIC_EDEFAULT);
			return;
		case XtypePackage.XIMPORT_DECLARATION__IMPORTED_TYPE:
			setImportedType((JvmDeclaredType)null);
			return;
		case XtypePackage.XIMPORT_DECLARATION__MEMBER_NAME:
			setMemberName(MEMBER_NAME_EDEFAULT);
			return;
		case XtypePackage.XIMPORT_DECLARATION__IMPORTED_NAMESPACE:
			setImportedNamespace(IMPORTED_NAMESPACE_EDEFAULT);
			return;
	}
	super.eUnset(featureID);
}