org.nasdanika.models.architecture.impl.ArchitectureFactoryImpl Maven / Gradle / Ivy
The newest version!
/**
*/
package org.nasdanika.models.architecture.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.architecture.*;
/**
*
* An implementation of the model Factory.
*
* @generated
*/
public class ArchitectureFactoryImpl extends EFactoryImpl implements ArchitectureFactory {
/**
* Creates the default factory implementation.
*
*
* @generated
*/
public static ArchitectureFactory init() {
try {
ArchitectureFactory theArchitectureFactory = (ArchitectureFactory)EPackage.Registry.INSTANCE.getEFactory(ArchitecturePackage.eNS_URI);
if (theArchitectureFactory != null) {
return theArchitectureFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new ArchitectureFactoryImpl();
}
/**
* Creates an instance of the factory.
*
*
* @generated
*/
public ArchitectureFactoryImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case ArchitecturePackage.ARCHITECTURE_ELEMENT: return createArchitectureElement();
case ArchitecturePackage.ACTOR: return createActor();
case ArchitecturePackage.PARTY_ACTOR: return createPartyActor();
case ArchitecturePackage.PERSON_ACTOR: return createPersonActor();
case ArchitecturePackage.ROLE: return createRole();
case ArchitecturePackage.ARCHITECTURE_DESCRIPTION_ELEMENT: return createArchitectureDescriptionElement();
case ArchitecturePackage.ARCHITECTURE_DESCRIPTION: return createArchitectureDescription();
case ArchitecturePackage.DOMAIN: return createDomain();
case ArchitecturePackage.RELATIONSHIP_TARGET: return createRelationshipTarget();
case ArchitecturePackage.COMPOSITE_RELATIONSHIP_TARGET: return createCompositeRelationshipTarget();
case ArchitecturePackage.RELATIONSHIP: return createRelationship();
case ArchitecturePackage.RELATIONSHIP_SOURCE: return createRelationshipSource();
case ArchitecturePackage.COMPOSITE_RELATIONSHIP_SOURCE: return createCompositeRelationshipSource();
case ArchitecturePackage.NODE: return createNode();
case ArchitecturePackage.COMPOSITE_NODE: return createCompositeNode();
case ArchitecturePackage.TUNNEL: return createTunnel();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
*
*
* @generated
*/
@Override
public ArchitectureElement createArchitectureElement() {
ArchitectureElementImpl architectureElement = new ArchitectureElementImpl();
return architectureElement;
}
/**
*
*
* @generated
*/
@Override
public Actor createActor() {
ActorImpl actor = new ActorImpl();
return actor;
}
/**
*
*
* @generated
*/
@Override
public PartyActor createPartyActor() {
PartyActorImpl partyActor = new PartyActorImpl();
return partyActor;
}
/**
*
*
* @generated
*/
@Override
public PersonActor createPersonActor() {
PersonActorImpl personActor = new PersonActorImpl();
return personActor;
}
/**
*
*
* @generated
*/
@Override
public Role createRole() {
RoleImpl role = new RoleImpl();
return role;
}
/**
*
*
* @generated
*/
@Override
public ArchitectureDescriptionElement createArchitectureDescriptionElement() {
ArchitectureDescriptionElementImpl architectureDescriptionElement = new ArchitectureDescriptionElementImpl();
return architectureDescriptionElement;
}
/**
*
*
* @generated
*/
@Override
public ArchitectureDescription createArchitectureDescription() {
ArchitectureDescriptionImpl architectureDescription = new ArchitectureDescriptionImpl();
return architectureDescription;
}
/**
*
*
* @generated
*/
@Override
public Domain createDomain() {
DomainImpl domain = new DomainImpl();
return domain;
}
/**
*
*
* @generated
*/
@Override
public RelationshipTarget createRelationshipTarget() {
RelationshipTargetImpl relationshipTarget = new RelationshipTargetImpl();
return relationshipTarget;
}
/**
*
*
* @generated
*/
@Override
public CompositeRelationshipTarget createCompositeRelationshipTarget() {
CompositeRelationshipTargetImpl compositeRelationshipTarget = new CompositeRelationshipTargetImpl();
return compositeRelationshipTarget;
}
/**
*
*
* @generated
*/
@Override
public Relationship createRelationship() {
RelationshipImpl relationship = new RelationshipImpl();
return relationship;
}
/**
*
*
* @generated
*/
@Override
public RelationshipSource createRelationshipSource() {
RelationshipSourceImpl relationshipSource = new RelationshipSourceImpl();
return relationshipSource;
}
/**
*
*
* @generated
*/
@Override
public CompositeRelationshipSource createCompositeRelationshipSource() {
CompositeRelationshipSourceImpl compositeRelationshipSource = new CompositeRelationshipSourceImpl();
return compositeRelationshipSource;
}
/**
*
*
* @generated
*/
@Override
public Node createNode() {
NodeImpl node = new NodeImpl();
return node;
}
/**
*
*
* @generated
*/
@Override
public CompositeNode createCompositeNode() {
CompositeNodeImpl compositeNode = new CompositeNodeImpl();
return compositeNode;
}
/**
*
*
* @generated
*/
@Override
public Tunnel createTunnel() {
TunnelImpl tunnel = new TunnelImpl();
return tunnel;
}
/**
*
*
* @generated
*/
@Override
public ArchitecturePackage getArchitecturePackage() {
return (ArchitecturePackage)getEPackage();
}
/**
*
*
* @deprecated
* @generated
*/
@Deprecated
public static ArchitecturePackage getPackage() {
return ArchitecturePackage.eINSTANCE;
}
} //ArchitectureFactoryImpl