当前位置: 首页>>代码示例>>Java>>正文


Java EDataType类代码示例

本文整理汇总了Java中org.eclipse.emf.ecore.EDataType的典型用法代码示例。如果您正苦于以下问题:Java EDataType类的具体用法?Java EDataType怎么用?Java EDataType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EDataType类属于org.eclipse.emf.ecore包,在下文中一共展示了EDataType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: convertCpsMessageTypesToString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public String convertCpsMessageTypesToString(EDataType eDataType, Object instanceValue)
{
  return instanceValue == null ? null : instanceValue.toString();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:9,代码来源:SoapIOResourceFactoryImpl.java

示例2: createIfcFlowDirectionEnumFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcFlowDirectionEnum createIfcFlowDirectionEnumFromString(EDataType eDataType, String initialValue) {
	IfcFlowDirectionEnum result = IfcFlowDirectionEnum.get(initialValue);
	if (result == null)
		throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:12,代码来源:Ifc4FactoryImpl.java

示例3: convertToString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString ( EDataType eDataType, Object instanceValue )
{
    switch ( eDataType.getClassifierID () )
    {
        case SecurityPackage.PATTERN:
            return convertPatternToString ( eDataType, instanceValue );
        default:
            throw new IllegalArgumentException ( "The datatype '" + eDataType.getName () + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:SecurityFactoryImpl.java

示例4: createIfcStairFlightTypeEnumFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcStairFlightTypeEnum createIfcStairFlightTypeEnumFromString(EDataType eDataType, String initialValue) {
	IfcStairFlightTypeEnum result = IfcStairFlightTypeEnum.get(initialValue);
	if (result == null)
		throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:12,代码来源:Ifc4FactoryImpl.java

示例5: createIfcAlarmTypeEnumFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcAlarmTypeEnum createIfcAlarmTypeEnumFromString(EDataType eDataType, String initialValue) {
	IfcAlarmTypeEnum result = IfcAlarmTypeEnum.get(initialValue);
	if (result == null)
		throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:12,代码来源:Ifc4FactoryImpl.java

示例6: convertVerbosityEnumToString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public String convertVerbosityEnumToString(EDataType eDataType, Object instanceValue)
{
  return instanceValue == null ? null : instanceValue.toString();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:9,代码来源:SaturnVerbosityFactoryImpl.java

示例7: createIfcAnalysisTheoryTypeEnumFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcAnalysisTheoryTypeEnum createIfcAnalysisTheoryTypeEnumFromString(EDataType eDataType, String initialValue) {
	IfcAnalysisTheoryTypeEnum result = IfcAnalysisTheoryTypeEnum.get(initialValue);
	if (result == null)
		throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:12,代码来源:Ifc2x3tc1FactoryImpl.java

示例8: createByteOrderFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ByteOrder createByteOrderFromString ( EDataType eDataType, String initialValue )
{
    ByteOrder result = ByteOrder.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;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:13,代码来源:ModbusFactoryImpl.java

示例9: createIfcCurveInterpolationEnumFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcCurveInterpolationEnum createIfcCurveInterpolationEnumFromString(EDataType eDataType, String initialValue) {
	IfcCurveInterpolationEnum result = IfcCurveInterpolationEnum.get(initialValue);
	if (result == null)
		throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:12,代码来源:Ifc4FactoryImpl.java

示例10: convertToString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
	switch (eDataType.getClassifierID()) {
		case OperationalLimitsPackage.OPERATIONAL_LIMIT_DIRECTION_KIND:
			return convertOperationalLimitDirectionKindToString(eDataType, instanceValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:OperationalLimitsFactoryImpl.java

示例11: convertToString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
	switch (eDataType.getClassifierID()) {
		case SCADAPackage.SOURCE:
			return convertSourceToString(eDataType, instanceValue);
		case SCADAPackage.REMOTE_UNIT_TYPE:
			return convertRemoteUnitTypeToString(eDataType, instanceValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:17,代码来源:SCADAFactoryImpl.java

示例12: createIfcPhysicalOrVirtualEnumFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcPhysicalOrVirtualEnum createIfcPhysicalOrVirtualEnumFromString(EDataType eDataType, String initialValue) {
	IfcPhysicalOrVirtualEnum result = IfcPhysicalOrVirtualEnum.get(initialValue);
	if (result == null)
		throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:12,代码来源:Ifc2x3tc1FactoryImpl.java

示例13: createIfcDataOriginEnumFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcDataOriginEnum createIfcDataOriginEnumFromString(EDataType eDataType, String initialValue) {
	IfcDataOriginEnum result = IfcDataOriginEnum.get(initialValue);
	if (result == null)
		throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:12,代码来源:Ifc2x3tc1FactoryImpl.java

示例14: createFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
	switch (eDataType.getClassifierID()) {
		case EnergySchedulingPackage.AREA_CONTROL_MODE:
			return createAreaControlModeFromString(eDataType, initialValue);
		default:
			throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
	}
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:15,代码来源:EnergySchedulingFactoryImpl.java

示例15: createIfcColumnTypeEnumFromString

import org.eclipse.emf.ecore.EDataType; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcColumnTypeEnum createIfcColumnTypeEnumFromString(EDataType eDataType, String initialValue) {
	IfcColumnTypeEnum result = IfcColumnTypeEnum.get(initialValue);
	if (result == null)
		throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
	return result;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:12,代码来源:Ifc4FactoryImpl.java


注:本文中的org.eclipse.emf.ecore.EDataType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。