From be4f78978faba3d3ceb88df02a7f93a2e09ff1e0 Mon Sep 17 00:00:00 2001 From: Kenji Hosokawa Date: Tue, 3 Aug 2021 18:42:39 +0900 Subject: Initial commit Bug-AGL: SPEC-4033 Signed-off-by: Kenji Hosokawa --- .../src/rba/sound/impl/RBASoundFactoryImpl.java | 253 +++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 rba.model.sound/src/rba/sound/impl/RBASoundFactoryImpl.java (limited to 'rba.model.sound/src/rba/sound/impl/RBASoundFactoryImpl.java') diff --git a/rba.model.sound/src/rba/sound/impl/RBASoundFactoryImpl.java b/rba.model.sound/src/rba/sound/impl/RBASoundFactoryImpl.java new file mode 100644 index 0000000..b92d85d --- /dev/null +++ b/rba.model.sound/src/rba/sound/impl/RBASoundFactoryImpl.java @@ -0,0 +1,253 @@ +/** + */ +package rba.sound.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 rba.sound.*; + +/** + * An implementation of the model Factory. + * @generated + */ +public class RBASoundFactoryImpl extends EFactoryImpl implements RBASoundFactory { + /** + * Creates the default factory implementation. + * + * @generated + */ + public static RBASoundFactory init() { + try { + RBASoundFactory theRBASoundFactory = (RBASoundFactory) EPackage.Registry.INSTANCE + .getEFactory(RBASoundPackage.eNS_URI); + if (theRBASoundFactory != null) { + return theRBASoundFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new RBASoundFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * @generated + */ + public RBASoundFactoryImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case RBASoundPackage.SOUND_CONTENT: + return createSoundContent(); + case RBASoundPackage.SOUND_CONTENT_SET: + return createSoundContentSet(); + case RBASoundPackage.SOUND_CONTENT_STATE: + return createSoundContentState(); + case RBASoundPackage.ZONE: + return createZone(); + case RBASoundPackage.ZONE_SET: + return createZoneSet(); + case RBASoundPackage.IS_SOUNDING: + return createIsSounding(); + case RBASoundPackage.IS_OUTPUTTED: + return createIsOutputted(); + case RBASoundPackage.IS_MUTED: + return createIsMuted(); + case RBASoundPackage.IS_ATTENUATED: + return createIsAttenuated(); + case RBASoundPackage.OUTPUTTING_SOUND: + return createOutputtingSound(); + case RBASoundPackage.ALL_INSTANCE_OF_ZONE: + return createAllInstanceOfZone(); + case RBASoundPackage.ALL_INSTANCE_OF_SOUND_CONTENT: + return createAllInstanceOfSoundContent(); + case RBASoundPackage.IS_OUTPUTTED_ON: + return createIsOutputtedOn(); + case RBASoundPackage.IS_CHANGED_OUTPUT: + return createIsChangedOutput(); + case RBASoundPackage.IS_TRANSLATED_SOUND_TO: + return createIsTranslatedSoundTo(); + case RBASoundPackage.MUTE_LOWER_PRIORITY: + return createMuteLowerPriority(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + public SoundContent createSoundContent() { + SoundContentImpl soundContent = new SoundContentImpl(); + return soundContent; + } + + /** + * + * @generated + */ + public SoundContentSet createSoundContentSet() { + SoundContentSetImpl soundContentSet = new SoundContentSetImpl(); + return soundContentSet; + } + + /** + * + * @generated + */ + public SoundContentState createSoundContentState() { + SoundContentStateImpl soundContentState = new SoundContentStateImpl(); + return soundContentState; + } + + /** + * + * @generated + */ + public Zone createZone() { + ZoneImpl zone = new ZoneImpl(); + return zone; + } + + /** + * + * @generated + */ + public ZoneSet createZoneSet() { + ZoneSetImpl zoneSet = new ZoneSetImpl(); + return zoneSet; + } + + /** + * + * @generated + */ + public IsSounding createIsSounding() { + IsSoundingImpl isSounding = new IsSoundingImpl(); + return isSounding; + } + + /** + * + * @generated + */ + public IsOutputted createIsOutputted() { + IsOutputtedImpl isOutputted = new IsOutputtedImpl(); + return isOutputted; + } + + /** + * + * @generated + */ + public IsMuted createIsMuted() { + IsMutedImpl isMuted = new IsMutedImpl(); + return isMuted; + } + + /** + * + * @generated + */ + public IsAttenuated createIsAttenuated() { + IsAttenuatedImpl isAttenuated = new IsAttenuatedImpl(); + return isAttenuated; + } + + /** + * + * @generated + */ + public OutputtingSound createOutputtingSound() { + OutputtingSoundImpl outputtingSound = new OutputtingSoundImpl(); + return outputtingSound; + } + + /** + * + * @generated + */ + public AllInstanceOfZone createAllInstanceOfZone() { + AllInstanceOfZoneImpl allInstanceOfZone = new AllInstanceOfZoneImpl(); + return allInstanceOfZone; + } + + /** + * + * @generated + */ + public AllInstanceOfSoundContent createAllInstanceOfSoundContent() { + AllInstanceOfSoundContentImpl allInstanceOfSoundContent = new AllInstanceOfSoundContentImpl(); + return allInstanceOfSoundContent; + } + + /** + * + * @generated + */ + public IsOutputtedOn createIsOutputtedOn() { + IsOutputtedOnImpl isOutputtedOn = new IsOutputtedOnImpl(); + return isOutputtedOn; + } + + /** + * + * @generated + */ + public IsChangedOutput createIsChangedOutput() { + IsChangedOutputImpl isChangedOutput = new IsChangedOutputImpl(); + return isChangedOutput; + } + + /** + * + * @generated + */ + public IsTranslatedSoundTo createIsTranslatedSoundTo() { + IsTranslatedSoundToImpl isTranslatedSoundTo = new IsTranslatedSoundToImpl(); + return isTranslatedSoundTo; + } + + /** + * + * @generated + */ + public MuteLowerPriority createMuteLowerPriority() { + MuteLowerPriorityImpl muteLowerPriority = new MuteLowerPriorityImpl(); + return muteLowerPriority; + } + + /** + * + * @generated + */ + public RBASoundPackage getRBASoundPackage() { + return (RBASoundPackage) getEPackage(); + } + + /** + * + * @deprecated + * @generated + */ + @Deprecated + public static RBASoundPackage getPackage() { + return RBASoundPackage.eINSTANCE; + } + +} // RBASoundFactoryImpl -- cgit 1.2.3-korg