org.nasdanika.models.rules.impl.RulesFactoryImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.rules.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.nasdanika.models.rules.*;
/**
*
* An implementation of the model Factory.
*
* @generated
*/
public class RulesFactoryImpl extends EFactoryImpl implements RulesFactory {
/**
* Creates the default factory implementation.
*
*
* @generated
*/
public static RulesFactory init() {
try {
RulesFactory theRulesFactory = (RulesFactory)EPackage.Registry.INSTANCE.getEFactory(RulesPackage.eNS_URI);
if (theRulesFactory != null) {
return theRulesFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new RulesFactoryImpl();
}
/**
* Creates an instance of the factory.
*
*
* @generated
*/
public RulesFactoryImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case RulesPackage.RULE: return createRule();
case RulesPackage.RULE_SET: return createRuleSet();
case RulesPackage.INSPECTABLE: return createInspectable();
case RulesPackage.INSPECTION_RESULT: return createInspectionResult();
case RulesPackage.VIOLATION: return createViolation();
case RulesPackage.FAILURE: return createFailure();
case RulesPackage.WAIVER: return createWaiver();
case RulesPackage.SEVERITY: return createSeverity();
case RulesPackage.ACTION: return createAction();
case RulesPackage.RESOURCE_ACTION: return createResourceAction();
case RulesPackage.TEXT_RESOURCE_ACTION: return createTextResourceAction();
case RulesPackage.BINARY_RESOURCE_ACTION: return createBinaryResourceAction();
case RulesPackage.CREATE_RESOURCE_ACTION: return createCreateResourceAction();
case RulesPackage.CREATE_TEXT_RESOURCE_ACTION: return createCreateTextResourceAction();
case RulesPackage.CREATE_BINARY_RESOURCE_ACTION: return createCreateBinaryResourceAction();
case RulesPackage.DELETE_RESOURCE_ACTION: return createDeleteResourceAction();
case RulesPackage.MOVE_RESOURCE_ACTION: return createMoveResourceAction();
case RulesPackage.UPDATE_RESOURCE_ACTION: return createUpdateResourceAction();
case RulesPackage.UPDATE_TEXT_RESOURCE_ACTION: return createUpdateTextResourceAction();
case RulesPackage.UPDATE_BINARY_RESOURCE_ACTION: return createUpdateBinaryResourceAction();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
*
*
* @generated
*/
@Override
public Rule createRule() {
RuleImpl rule = new RuleImpl();
return rule;
}
/**
*
*
* @generated
*/
@Override
public RuleSet createRuleSet() {
RuleSetImpl ruleSet = new RuleSetImpl();
return ruleSet;
}
/**
*
*
* @generated
*/
@Override
public Violation createViolation() {
ViolationImpl violation = new ViolationImpl();
return violation;
}
/**
*
*
* @generated
*/
@Override
public Failure createFailure() {
FailureImpl failure = new FailureImpl();
return failure;
}
/**
*
*
* @generated
*/
@Override
public Waiver createWaiver() {
WaiverImpl waiver = new WaiverImpl();
return waiver;
}
/**
*
*
* @generated
*/
@Override
public Inspectable createInspectable() {
InspectableImpl inspectable = new InspectableImpl();
return inspectable;
}
/**
*
*
* @generated
*/
@Override
public InspectionResult createInspectionResult() {
InspectionResultImpl inspectionResult = new InspectionResultImpl();
return inspectionResult;
}
/**
*
*
* @generated
*/
@Override
public Severity createSeverity() {
SeverityImpl severity = new SeverityImpl();
return severity;
}
/**
*
*
* @generated
*/
@Override
public Action createAction() {
ActionImpl action = new ActionImpl();
return action;
}
/**
*
*
* @generated
*/
@Override
public ResourceAction createResourceAction() {
ResourceActionImpl resourceAction = new ResourceActionImpl();
return resourceAction;
}
/**
*
*
* @generated
*/
@Override
public TextResourceAction createTextResourceAction() {
TextResourceActionImpl textResourceAction = new TextResourceActionImpl();
return textResourceAction;
}
/**
*
*
* @generated
*/
@Override
public BinaryResourceAction createBinaryResourceAction() {
BinaryResourceActionImpl binaryResourceAction = new BinaryResourceActionImpl();
return binaryResourceAction;
}
/**
*
*
* @generated
*/
@Override
public CreateResourceAction createCreateResourceAction() {
CreateResourceActionImpl createResourceAction = new CreateResourceActionImpl();
return createResourceAction;
}
/**
*
*
* @generated
*/
@Override
public CreateTextResourceAction createCreateTextResourceAction() {
CreateTextResourceActionImpl createTextResourceAction = new CreateTextResourceActionImpl();
return createTextResourceAction;
}
/**
*
*
* @generated
*/
@Override
public CreateBinaryResourceAction createCreateBinaryResourceAction() {
CreateBinaryResourceActionImpl createBinaryResourceAction = new CreateBinaryResourceActionImpl();
return createBinaryResourceAction;
}
/**
*
*
* @generated
*/
@Override
public DeleteResourceAction createDeleteResourceAction() {
DeleteResourceActionImpl deleteResourceAction = new DeleteResourceActionImpl();
return deleteResourceAction;
}
/**
*
*
* @generated
*/
@Override
public MoveResourceAction createMoveResourceAction() {
MoveResourceActionImpl moveResourceAction = new MoveResourceActionImpl();
return moveResourceAction;
}
/**
*
*
* @generated
*/
@Override
public UpdateResourceAction createUpdateResourceAction() {
UpdateResourceActionImpl updateResourceAction = new UpdateResourceActionImpl();
return updateResourceAction;
}
/**
*
*
* @generated
*/
@Override
public UpdateTextResourceAction createUpdateTextResourceAction() {
UpdateTextResourceActionImpl updateTextResourceAction = new UpdateTextResourceActionImpl();
return updateTextResourceAction;
}
/**
*
*
* @generated
*/
@Override
public UpdateBinaryResourceAction createUpdateBinaryResourceAction() {
UpdateBinaryResourceActionImpl updateBinaryResourceAction = new UpdateBinaryResourceActionImpl();
return updateBinaryResourceAction;
}
/**
*
*
* @generated
*/
@Override
public RulesPackage getRulesPackage() {
return (RulesPackage)getEPackage();
}
/**
*
*
* @deprecated
* @generated
*/
@Deprecated
public static RulesPackage getPackage() {
return RulesPackage.eINSTANCE;
}
} //RulesFactoryImpl