本文整理汇总了Java中org.eclipse.emf.ecore.EClass类的典型用法代码示例。如果您正苦于以下问题:Java EClass类的具体用法?Java EClass怎么用?Java EClass使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EClass类属于org.eclipse.emf.ecore包,在下文中一共展示了EClass类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processInline
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
private Object processInline(EClassifier classifier, String value) throws DeserializeException, MetaDataException {
if (value.indexOf("(") != -1) {
String typeName = value.substring(0, value.indexOf("(")).trim();
String v = value.substring(value.indexOf("(") + 1, value.length() - 1);
EClassifier eClassifier = getPackageMetaData().getEClassifierCaseInsensitive(typeName);
if (eClassifier instanceof EClass) {
Object convert = convert(eClassifier, v);
try {
model.add(-1, (IdEObject) convert);
} catch (IfcModelInterfaceException e) {
throw new DeserializeException(lineNumber, e);
}
return convert;
} else {
throw new DeserializeException(lineNumber, typeName + " is not an existing IFC entity");
}
} else {
return IfcParserWriterUtils.convertSimpleValue(getPackageMetaData(), classifier.getInstanceClass(), value, lineNumber);
}
}
示例2: create
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case LoadModelPackage.CONFORM_LOAD_SCHEDULE: return createConformLoadSchedule();
case LoadModelPackage.NON_CONFORM_LOAD_GROUP: return createNonConformLoadGroup();
case LoadModelPackage.NON_CONFORM_LOAD: return createNonConformLoad();
case LoadModelPackage.DAY_TYPE: return createDayType();
case LoadModelPackage.SUB_LOAD_AREA: return createSubLoadArea();
case LoadModelPackage.CONFORM_LOAD_GROUP: return createConformLoadGroup();
case LoadModelPackage.STATION_SUPPLY: return createStationSupply();
case LoadModelPackage.SEASON_DAY_TYPE_SCHEDULE: return createSeasonDayTypeSchedule();
case LoadModelPackage.NON_CONFORM_LOAD_SCHEDULE: return createNonConformLoadSchedule();
case LoadModelPackage.LOAD_AREA: return createLoadArea();
case LoadModelPackage.ENERGY_AREA: return createEnergyArea();
case LoadModelPackage.LOAD_RESPONSE_CHARACTERISTIC: return createLoadResponseCharacteristic();
case LoadModelPackage.LOAD_GROUP: return createLoadGroup();
case LoadModelPackage.SEASON: return createSeason();
case LoadModelPackage.POWER_CUT_ZONE: return createPowerCutZone();
case LoadModelPackage.CONFORM_LOAD: return createConformLoad();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
示例3: pattern_PMUVoltageMeter_10_1_preparereturnvalue_blackFBBF
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
public static final Object[] pattern_PMUVoltageMeter_10_1_preparereturnvalue_blackFBBF(EClass __eClass,
PMUVoltageMeter _this) {
for (EOperation __performOperation : __eClass.getEOperations()) {
String __performOperation_name = __performOperation.getName();
if (__performOperation_name.equals("isApplicable_FWD")) {
for (EOperation isApplicableCC : __eClass.getEOperations()) {
if (!__performOperation.equals(isApplicableCC)) {
String isApplicableCC_name = isApplicableCC.getName();
if (isApplicableCC_name.equals("isApplicable_CC")) {
return new Object[] { __performOperation, __eClass, _this, isApplicableCC };
}
}
}
}
}
return null;
}
示例4: create
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case GenerationDynamicsPackage.SUPERCRITICAL: return createSupercritical();
case GenerationDynamicsPackage.COMBUSTION_TURBINE: return createCombustionTurbine();
case GenerationDynamicsPackage.FOSSIL_STEAM_SUPPLY: return createFossilSteamSupply();
case GenerationDynamicsPackage.CT_TEMP_ACTIVE_POWER_CURVE: return createCTTempActivePowerCurve();
case GenerationDynamicsPackage.SUBCRITICAL: return createSubcritical();
case GenerationDynamicsPackage.STEAM_SUPPLY: return createSteamSupply();
case GenerationDynamicsPackage.PRIME_MOVER: return createPrimeMover();
case GenerationDynamicsPackage.HEAT_RECOVERY_BOILER: return createHeatRecoveryBoiler();
case GenerationDynamicsPackage.BWR_STEAM_SUPPLY: return createBWRSteamSupply();
case GenerationDynamicsPackage.DRUM_BOILER: return createDrumBoiler();
case GenerationDynamicsPackage.STEAM_TURBINE: return createSteamTurbine();
case GenerationDynamicsPackage.PWR_STEAM_SUPPLY: return createPWRSteamSupply();
case GenerationDynamicsPackage.HYDRO_TURBINE: return createHydroTurbine();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
示例5: create
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case IEC61970Package.IEC61970_CIM_VERSION: return createIEC61970CIMVersion();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
示例6: create
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case LoadControlPackage.REMOTE_CONNECT_DISCONNECT_INFO: return createRemoteConnectDisconnectInfo();
case LoadControlPackage.CONNECT_DISCONNECT_FUNCTION: return createConnectDisconnectFunction();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
示例7: create
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case DatatypesPackage.SCAL_UNIT_TYPE: return createscal_unit_type();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
示例8: pattern_WorkLocation_2_1_preparereturnvalue_blackFBB
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
public static final Object[] pattern_WorkLocation_2_1_preparereturnvalue_blackFBB(EClass eClass,
WorkLocation _this) {
for (EOperation performOperation : eClass.getEOperations()) {
String performOperation_name = performOperation.getName();
if (performOperation_name.equals("perform_FWD")) {
return new Object[] { performOperation, eClass, _this };
}
}
return null;
}
示例9: create
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case WiresPackage.SERIES_COMPENSATOR: return createSeriesCompensator();
case WiresPackage.POWER_TRANSFORMER: return createPowerTransformer();
case WiresPackage.SWITCH: return createSwitch();
case WiresPackage.JUMPER: return createJumper();
case WiresPackage.PLANT: return createPlant();
case WiresPackage.LINE: return createLine();
case WiresPackage.ENERGY_SOURCE: return createEnergySource();
case WiresPackage.FREQUENCY_CONVERTER: return createFrequencyConverter();
case WiresPackage.CONNECTOR: return createConnector();
case WiresPackage.GROUND: return createGround();
case WiresPackage.LOAD_BREAK_SWITCH: return createLoadBreakSwitch();
case WiresPackage.IMPEDANCE_VARIATION_CURVE: return createImpedanceVariationCurve();
case WiresPackage.TAP_SCHEDULE: return createTapSchedule();
case WiresPackage.MUTUAL_COUPLING: return createMutualCoupling();
case WiresPackage.DC_LINE_SEGMENT: return createDCLineSegment();
case WiresPackage.SWITCH_SCHEDULE: return createSwitchSchedule();
case WiresPackage.COMPOSITE_SWITCH: return createCompositeSwitch();
case WiresPackage.AC_LINE_SEGMENT: return createACLineSegment();
case WiresPackage.PHASE_TAP_CHANGER: return createPhaseTapChanger();
case WiresPackage.ENERGY_CONSUMER: return createEnergyConsumer();
case WiresPackage.REGULATING_COND_EQ: return createRegulatingCondEq();
case WiresPackage.HEAT_EXCHANGER: return createHeatExchanger();
case WiresPackage.STATIC_VAR_COMPENSATOR: return createStaticVarCompensator();
case WiresPackage.PHASE_VARIATION_CURVE: return createPhaseVariationCurve();
case WiresPackage.TAP_CHANGER: return createTapChanger();
case WiresPackage.WINDING_TEST: return createWindingTest();
case WiresPackage.FUSE: return createFuse();
case WiresPackage.REGULATING_CONTROL: return createRegulatingControl();
case WiresPackage.BUSBAR_SECTION: return createBusbarSection();
case WiresPackage.RESISTOR: return createResistor();
case WiresPackage.RATIO_VARIATION_CURVE: return createRatioVariationCurve();
case WiresPackage.RECTIFIER_INVERTER: return createRectifierInverter();
case WiresPackage.BREAKER: return createBreaker();
case WiresPackage.TRANSFORMER_WINDING: return createTransformerWinding();
case WiresPackage.GROUND_DISCONNECTOR: return createGroundDisconnector();
case WiresPackage.VOLTAGE_CONTROL_ZONE: return createVoltageControlZone();
case WiresPackage.PROTECTED_SWITCH: return createProtectedSwitch();
case WiresPackage.SHUNT_COMPENSATOR: return createShuntCompensator();
case WiresPackage.CONDUCTOR: return createConductor();
case WiresPackage.DISCONNECTOR: return createDisconnector();
case WiresPackage.SYNCHRONOUS_MACHINE: return createSynchronousMachine();
case WiresPackage.JUNCTION: return createJunction();
case WiresPackage.REGULATION_SCHEDULE: return createRegulationSchedule();
case WiresPackage.REACTIVE_CAPABILITY_CURVE: return createReactiveCapabilityCurve();
case WiresPackage.RATIO_TAP_CHANGER: return createRatioTapChanger();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
示例10: eStaticClass
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass()
{
return ShadowDirectResourcePackage.Literals.SHADOW_DIRECT_RESOURCE;
}
示例11: create
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case InfWorkPackage.WORK_FLOW_STEP: return createWorkFlowStep();
case InfWorkPackage.WORK_COST_DETAIL: return createWorkCostDetail();
case InfWorkPackage.USAGE: return createUsage();
case InfWorkPackage.WORK_COST_SUMMARY: return createWorkCostSummary();
case InfWorkPackage.MISC_COST_ITEM: return createMiscCostItem();
case InfWorkPackage.CU_ALLOWABLE_ACTION: return createCUAllowableAction();
case InfWorkPackage.COST_TYPE: return createCostType();
case InfWorkPackage.CU_MATERIAL_ITEM: return createCUMaterialItem();
case InfWorkPackage.ASSIGNMENT: return createAssignment();
case InfWorkPackage.DESIGN: return createDesign();
case InfWorkPackage.BUSINESS_CASE: return createBusinessCase();
case InfWorkPackage.EQUIPMENT_ITEM: return createEquipmentItem();
case InfWorkPackage.ONE_CALL_REQUEST: return createOneCallRequest();
case InfWorkPackage.LABOR_ITEM: return createLaborItem();
case InfWorkPackage.PROJECT: return createProject();
case InfWorkPackage.ACCESS_PERMIT: return createAccessPermit();
case InfWorkPackage.INSPECTION_DATA_SET: return createInspectionDataSet();
case InfWorkPackage.REGULATION: return createRegulation();
case InfWorkPackage.SHIFT_PATTERN: return createShiftPattern();
case InfWorkPackage.NON_STANDARD_ITEM: return createNonStandardItem();
case InfWorkPackage.WORK_LOCATION: return createWorkLocation();
case InfWorkPackage.DESIGN_LOCATION_CU: return createDesignLocationCU();
case InfWorkPackage.DESIGN_LOCATION: return createDesignLocation();
case InfWorkPackage.CU_LABOR_CODE: return createCULaborCode();
case InfWorkPackage.CONDITION_FACTOR: return createConditionFactor();
case InfWorkPackage.CU_WORK_EQUIPMENT_ITEM: return createCUWorkEquipmentItem();
case InfWorkPackage.QUALIFICATION_REQUIREMENT: return createQualificationRequirement();
case InfWorkPackage.CU_CONTRACTOR_ITEM: return createCUContractorItem();
case InfWorkPackage.MATERIAL_ITEM: return createMaterialItem();
case InfWorkPackage.PROPERTY_UNIT: return createPropertyUnit();
case InfWorkPackage.COMPATIBLE_UNIT: return createCompatibleUnit();
case InfWorkPackage.WORK_TASK: return createWorkTask();
case InfWorkPackage.TYPE_MATERIAL: return createTypeMaterial();
case InfWorkPackage.CAPABILITY: return createCapability();
case InfWorkPackage.CU_ASSET: return createCUAsset();
case InfWorkPackage.CONTRACTOR_ITEM: return createContractorItem();
case InfWorkPackage.INFO_QUESTION: return createInfoQuestion();
case InfWorkPackage.WORK_STATUS_ENTRY: return createWorkStatusEntry();
case InfWorkPackage.APPOINTMENT: return createAppointment();
case InfWorkPackage.MAINTENANCE_DATA_SET: return createMaintenanceDataSet();
case InfWorkPackage.CU_GROUP: return createCUGroup();
case InfWorkPackage.CREW: return createCrew();
case InfWorkPackage.REQUEST: return createRequest();
case InfWorkPackage.OVERHEAD_COST: return createOverheadCost();
case InfWorkPackage.DIAGNOSIS_DATA_SET: return createDiagnosisDataSet();
case InfWorkPackage.CU_LABOR_ITEM: return createCULaborItem();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
示例12: isAppropriate_FWD_EMoflonEdge_16
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EObjectContainer isAppropriate_FWD_EMoflonEdge_16(EMoflonEdge _edge_Location) {
// prepare return value
Object[] result1_bindingAndBlack = WorkLocationImpl
.pattern_WorkLocation_10_1_preparereturnvalue_bindingAndBlackFFBF(this);
if (result1_bindingAndBlack == null) {
throw new RuntimeException("Pattern matching in node [prepare return value] failed." + " Variables: "
+ "[this] = " + this + ".");
}
EOperation __performOperation = (EOperation) result1_bindingAndBlack[0];
EClass __eClass = (EClass) result1_bindingAndBlack[1];
EOperation isApplicableCC = (EOperation) result1_bindingAndBlack[3];
Object[] result1_green = WorkLocationImpl.pattern_WorkLocation_10_1_preparereturnvalue_greenF();
EObjectContainer __result = (EObjectContainer) result1_green[0];
// ForEach test core match and DECs
for (Object[] result2_black : WorkLocationImpl
.pattern_WorkLocation_10_2_testcorematchandDECs_blackFFFB(_edge_Location)) {
gluemodel.CIM.IEC61970.Informative.InfWork.WorkLocation srcLocation = (gluemodel.CIM.IEC61970.Informative.InfWork.WorkLocation) result2_black[0];
MeterAsset asset = (MeterAsset) result2_black[1];
MeterAssetPhysicalDevicePair pair = (MeterAssetPhysicalDevicePair) result2_black[2];
Object[] result2_green = WorkLocationImpl.pattern_WorkLocation_10_2_testcorematchandDECs_greenFB(__eClass);
Match match = (Match) result2_green[0];
// bookkeeping with generic isAppropriate method
if (WorkLocationImpl.pattern_WorkLocation_10_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBBB(
this, match, srcLocation, asset, pair)) {
// Ensure that the correct types of elements are matched
if (WorkLocationImpl
.pattern_WorkLocation_10_4_Ensurethatthecorrecttypesofelementsarematched_expressionFBB(this,
match)) {
// Add match to rule result
Object[] result5_black = WorkLocationImpl.pattern_WorkLocation_10_5_Addmatchtoruleresult_blackBBBB(
match, __performOperation, __result, isApplicableCC);
if (result5_black == null) {
throw new RuntimeException("Pattern matching in node [Add match to rule result] failed."
+ " Variables: " + "[match] = " + match + ", " + "[__performOperation] = "
+ __performOperation + ", " + "[__result] = " + __result + ", " + "[isApplicableCC] = "
+ isApplicableCC + ".");
}
WorkLocationImpl.pattern_WorkLocation_10_5_Addmatchtoruleresult_greenBBBB(match, __performOperation,
__result, isApplicableCC);
} else {
}
} else {
}
}
return WorkLocationImpl.pattern_WorkLocation_10_6_expressionFB(__result);
}
示例13: eStaticClass
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass ()
{
return ChartPackage.Literals.LINE_PROPERTIES;
}
示例14: isAppropriate_FWD_EMoflonEdge_36
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EObjectContainer isAppropriate_FWD_EMoflonEdge_36(EMoflonEdge _edge_a) {
// prepare return value
Object[] result1_bindingAndBlack = PMUVoltageMeterImpl
.pattern_PMUVoltageMeter_10_1_preparereturnvalue_bindingAndBlackFFBF(this);
if (result1_bindingAndBlack == null) {
throw new RuntimeException("Pattern matching in node [prepare return value] failed." + " Variables: "
+ "[this] = " + this + ".");
}
EOperation __performOperation = (EOperation) result1_bindingAndBlack[0];
EClass __eClass = (EClass) result1_bindingAndBlack[1];
EOperation isApplicableCC = (EOperation) result1_bindingAndBlack[3];
Object[] result1_green = PMUVoltageMeterImpl.pattern_PMUVoltageMeter_10_1_preparereturnvalue_greenF();
EObjectContainer __result = (EObjectContainer) result1_green[0];
// ForEach test core match and DECs
for (Object[] result2_black : PMUVoltageMeterImpl
.pattern_PMUVoltageMeter_10_2_testcorematchandDECs_blackFFFB(_edge_a)) {
MeterAsset asset = (MeterAsset) result2_black[0];
MeterAssetMMXUPair pair = (MeterAssetMMXUPair) result2_black[1];
MMXU mmxu = (MMXU) result2_black[2];
Object[] result2_green = PMUVoltageMeterImpl
.pattern_PMUVoltageMeter_10_2_testcorematchandDECs_greenFB(__eClass);
Match match = (Match) result2_green[0];
// bookkeeping with generic isAppropriate method
if (PMUVoltageMeterImpl
.pattern_PMUVoltageMeter_10_3_bookkeepingwithgenericisAppropriatemethod_expressionFBBBBB(this,
match, asset, pair, mmxu)) {
// Ensure that the correct types of elements are matched
if (PMUVoltageMeterImpl
.pattern_PMUVoltageMeter_10_4_Ensurethatthecorrecttypesofelementsarematched_expressionFBB(this,
match)) {
// Add match to rule result
Object[] result5_black = PMUVoltageMeterImpl
.pattern_PMUVoltageMeter_10_5_Addmatchtoruleresult_blackBBBB(match, __performOperation,
__result, isApplicableCC);
if (result5_black == null) {
throw new RuntimeException("Pattern matching in node [Add match to rule result] failed."
+ " Variables: " + "[match] = " + match + ", " + "[__performOperation] = "
+ __performOperation + ", " + "[__result] = " + __result + ", " + "[isApplicableCC] = "
+ isApplicableCC + ".");
}
PMUVoltageMeterImpl.pattern_PMUVoltageMeter_10_5_Addmatchtoruleresult_greenBBBB(match,
__performOperation, __result, isApplicableCC);
} else {
}
} else {
}
}
return PMUVoltageMeterImpl.pattern_PMUVoltageMeter_10_6_expressionFB(__result);
}
示例15: eStaticClass
import org.eclipse.emf.ecore.EClass; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass ()
{
return ConfigurationPackage.Literals.CONNECTION_TYPE;
}