當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。