本文整理汇总了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();
}
示例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;
}
示例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$
}
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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");
}
}
示例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");
}
}
示例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;
}
示例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;
}
示例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");
}
}
示例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;
}