Java Code Examples for org.eclipse.emf.ecore.EDataType#getName()

The following examples show how to use org.eclipse.emf.ecore.EDataType#getName() . 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: SolidityFactoryImpl.java    From solidity-ide with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
	switch (eDataType.getClassifierID()) {
		case SolidityPackage.VERSION_OPERATOR:
			return convertVersionOperatorToString(eDataType, instanceValue);
		case SolidityPackage.CONTRACT_TYPE:
			return convertContractTypeToString(eDataType, instanceValue);
		case SolidityPackage.STORAGE_LOCATION:
			return convertStorageLocationToString(eDataType, instanceValue);
		case SolidityPackage.VISIBILITY:
			return convertVisibilityToString(eDataType, instanceValue);
		case SolidityPackage.UNIT:
			return convertUnitToString(eDataType, instanceValue);
		case SolidityPackage.FUNCTION_MODIFIER:
			return convertFunctionModifierToString(eDataType, instanceValue);
		case SolidityPackage.ASSEMBLY_KIND:
			return convertAssemblyKindToString(eDataType, instanceValue);
		case SolidityPackage.UNARY_OPERATOR:
			return convertUnaryOperatorToString(eDataType, instanceValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
Example 2
Source File: ModbusFactoryImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString ( EDataType eDataType, String initialValue )
{
    switch ( eDataType.getClassifierID () )
    {
        case ModbusPackage.PROTOCOL_TYPE:
            return createProtocolTypeFromString ( eDataType, initialValue );
        case ModbusPackage.BYTE_ORDER:
            return createByteOrderFromString ( eDataType, initialValue );
        case ModbusPackage.REQUEST_TYPE:
            return createRequestTypeFromString ( eDataType, initialValue );
        default:
            throw new IllegalArgumentException ( "The datatype '" + eDataType.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
Example 3
Source File: FormattertestlanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue)
{
  switch (eDataType.getClassifierID())
  {
    case FormattertestlanguagePackage.ENUM1:
      return convertEnum1ToString(eDataType, instanceValue);
    default:
      throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
  }
}
 
Example 4
Source File: AttributeFactoryImpl.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public Anchor createAnchorFromString( EDataType eDataType,
		String initialValue )
{
	Anchor result = Anchor.get( initialValue );
	if ( result == null )
		throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return result;
}
 
Example 5
Source File: AttributeFactoryImpl.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public LeaderLineStyle createLeaderLineStyleFromString(
		EDataType eDataType, String initialValue )
{
	LeaderLineStyle result = LeaderLineStyle.get( initialValue );
	if ( result == null )
		throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return result;
}
 
Example 6
Source File: SecurityFactoryImpl.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString ( EDataType eDataType, String initialValue )
{
    switch ( eDataType.getClassifierID () )
    {
        case SecurityPackage.PATTERN:
            return createPatternFromString ( eDataType, initialValue );
        default:
            throw new IllegalArgumentException ( "The datatype '" + eDataType.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
Example 7
Source File: ChartFactoryImpl.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString ( EDataType eDataType, Object instanceValue )
{
    switch ( eDataType.getClassifierID () )
    {
        case ChartPackage.PROFILE_SWITCHER_TYPE:
            return convertProfileSwitcherTypeToString ( eDataType, instanceValue );
        case ChartPackage.RGB:
            return convertRGBToString ( eDataType, instanceValue );
        default:
            throw new IllegalArgumentException ( "The datatype '" + eDataType.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
Example 8
Source File: AttributeFactoryImpl.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public CursorType createCursorTypeFromString( EDataType eDataType,
		String initialValue )
{
	CursorType result = CursorType.get( initialValue );
	if ( result == null )
		throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return result;
}
 
Example 9
Source File: ModelFactoryImpl.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
public IndustrialQuadRelayIDs createIndustrialQuadRelayIDsFromString(EDataType eDataType, String initialValue) {
    IndustrialQuadRelayIDs result = IndustrialQuadRelayIDs.get(initialValue);
    if (result == null)
        throw new IllegalArgumentException(
                "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
    return result;
}
 
Example 10
Source File: BacktrackingTestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue)
{
  switch (eDataType.getClassifierID())
  {
    case BacktrackingTestLanguagePackage.ENUM_NAME:
      return convertEnumNameToString(eDataType, instanceValue);
    default:
      throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
  }
}
 
Example 11
Source File: SetupFactoryImpl.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString ( EDataType eDataType, Object instanceValue )
{
    switch ( eDataType.getClassifierID () )
    {
        default:
            throw new IllegalArgumentException ( "The datatype '" + eDataType.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
Example 12
Source File: BacktrackingTestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EnumName createEnumNameFromString(EDataType eDataType, String initialValue)
{
  EnumName result = EnumName.get(initialValue);
  if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
  return result;
}
 
Example 13
Source File: AttributeFactoryImpl.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public UnitsOfMeasurement createUnitsOfMeasurementFromString(
		EDataType eDataType, String initialValue )
{
	UnitsOfMeasurement result = UnitsOfMeasurement.get( initialValue );
	if ( result == null )
		throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName( ) + "'" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return result;
}
 
Example 14
Source File: Bug348427TestLanguageFactoryImpl.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue)
{
  switch (eDataType.getClassifierID())
  {
    case Bug348427TestLanguagePackage.ENUM_TYPE:
      return convertEnumTypeToString(eDataType, instanceValue);
    default:
      throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
  }
}
 
Example 15
Source File: ValidFactoryImpl.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public CheckKind createCheckKindFromString(EDataType eDataType, String initialValue)
{
  CheckKind result = CheckKind.get(initialValue);
  if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
  return result;
}
 
Example 16
Source File: CheckFactoryImpl.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString(EDataType eDataType, String initialValue)
{
	switch (eDataType.getClassifierID())
	{
		case CheckPackage.SEVERITY_KIND:
			return createSeverityKindFromString(eDataType, initialValue);
		case CheckPackage.TRIGGER_KIND:
			return createTriggerKindFromString(eDataType, initialValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
Example 17
Source File: ModelFactoryImpl.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public TItemKind createTItemKindFromString(EDataType eDataType, String initialValue) {
	TItemKind result = TItemKind.get(initialValue);
	if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
Example 18
Source File: Xpdl1FactoryImpl.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public TypeType4 createTypeType4FromString(EDataType eDataType, String initialValue) {
	TypeType4 result = TypeType4.get(initialValue);
	if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
Example 19
Source File: jpdl32FactoryImpl.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public SignalType createSignalTypeFromString(EDataType eDataType, String initialValue) {
	SignalType result = SignalType.get(initialValue);
	if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
Example 20
Source File: SGraphFactoryImpl.java    From statecharts with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EntryKind createEntryKindFromString(EDataType eDataType, String initialValue) {
	EntryKind result = EntryKind.get(initialValue);
	if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}