All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.contextmapper.tactic.dsl.serializer.TacticDDDLanguageSemanticSequencer Maven / Gradle / Ivy

/*
 * generated by Xtext 2.21.0
 */
package org.contextmapper.tactic.dsl.serializer;

import com.google.inject.Inject;
import java.util.Set;
import org.contextmapper.tactic.dsl.services.TacticDDDLanguageGrammarAccess;
import org.contextmapper.tactic.dsl.tacticdsl.Application;
import org.contextmapper.tactic.dsl.tacticdsl.Attribute;
import org.contextmapper.tactic.dsl.tacticdsl.BasicType;
import org.contextmapper.tactic.dsl.tacticdsl.CommandEvent;
import org.contextmapper.tactic.dsl.tacticdsl.ComplexType;
import org.contextmapper.tactic.dsl.tacticdsl.Consumer;
import org.contextmapper.tactic.dsl.tacticdsl.DataTransferObject;
import org.contextmapper.tactic.dsl.tacticdsl.Dependency;
import org.contextmapper.tactic.dsl.tacticdsl.DomainEvent;
import org.contextmapper.tactic.dsl.tacticdsl.DomainObjectOperation;
import org.contextmapper.tactic.dsl.tacticdsl.DtoAttribute;
import org.contextmapper.tactic.dsl.tacticdsl.DtoReference;
import org.contextmapper.tactic.dsl.tacticdsl.Entity;
import org.contextmapper.tactic.dsl.tacticdsl.EnumAttribute;
import org.contextmapper.tactic.dsl.tacticdsl.EnumParameter;
import org.contextmapper.tactic.dsl.tacticdsl.EnumValue;
import org.contextmapper.tactic.dsl.tacticdsl.OppositeHolder;
import org.contextmapper.tactic.dsl.tacticdsl.Publish;
import org.contextmapper.tactic.dsl.tacticdsl.Reference;
import org.contextmapper.tactic.dsl.tacticdsl.Repository;
import org.contextmapper.tactic.dsl.tacticdsl.RepositoryOperation;
import org.contextmapper.tactic.dsl.tacticdsl.Resource;
import org.contextmapper.tactic.dsl.tacticdsl.ResourceOperation;
import org.contextmapper.tactic.dsl.tacticdsl.ResourceOperationDelegate;
import org.contextmapper.tactic.dsl.tacticdsl.Service;
import org.contextmapper.tactic.dsl.tacticdsl.ServiceDependency;
import org.contextmapper.tactic.dsl.tacticdsl.ServiceOperation;
import org.contextmapper.tactic.dsl.tacticdsl.ServiceOperationDelegate;
import org.contextmapper.tactic.dsl.tacticdsl.Subscribe;
import org.contextmapper.tactic.dsl.tacticdsl.TacticDDDModel;
import org.contextmapper.tactic.dsl.tacticdsl.TacticdslPackage;
import org.contextmapper.tactic.dsl.tacticdsl.Trait;
import org.contextmapper.tactic.dsl.tacticdsl.ValueObject;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.xtext.Action;
import org.eclipse.xtext.Parameter;
import org.eclipse.xtext.ParserRule;
import org.eclipse.xtext.serializer.ISerializationContext;
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;

@SuppressWarnings("all")
public class TacticDDDLanguageSemanticSequencer extends AbstractDelegatingSemanticSequencer {

	@Inject
	private TacticDDDLanguageGrammarAccess grammarAccess;
	
	@Override
	public void sequence(ISerializationContext context, EObject semanticObject) {
		EPackage epackage = semanticObject.eClass().getEPackage();
		ParserRule rule = context.getParserRule();
		Action action = context.getAssignedAction();
		Set parameters = context.getEnabledBooleanParameters();
		if (epackage == TacticdslPackage.eINSTANCE)
			switch (semanticObject.eClass().getClassifierID()) {
			case TacticdslPackage.APPLICATION:
				sequence_Application(context, (Application) semanticObject); 
				return; 
			case TacticdslPackage.ATTRIBUTE:
				sequence_Attribute(context, (Attribute) semanticObject); 
				return; 
			case TacticdslPackage.BASIC_TYPE:
				sequence_BasicType(context, (BasicType) semanticObject); 
				return; 
			case TacticdslPackage.COMMAND_EVENT:
				sequence_CommandEvent(context, (CommandEvent) semanticObject); 
				return; 
			case TacticdslPackage.COMPLEX_TYPE:
				sequence_ComplexType(context, (ComplexType) semanticObject); 
				return; 
			case TacticdslPackage.CONSUMER:
				sequence_Consumer(context, (Consumer) semanticObject); 
				return; 
			case TacticdslPackage.DATA_TRANSFER_OBJECT:
				sequence_DataTransferObject(context, (DataTransferObject) semanticObject); 
				return; 
			case TacticdslPackage.DEPENDENCY:
				sequence_Dependency(context, (Dependency) semanticObject); 
				return; 
			case TacticdslPackage.DOMAIN_EVENT:
				sequence_DomainEvent(context, (DomainEvent) semanticObject); 
				return; 
			case TacticdslPackage.DOMAIN_OBJECT_OPERATION:
				sequence_DomainObjectOperation(context, (DomainObjectOperation) semanticObject); 
				return; 
			case TacticdslPackage.DTO_ATTRIBUTE:
				sequence_DtoAttribute(context, (DtoAttribute) semanticObject); 
				return; 
			case TacticdslPackage.DTO_REFERENCE:
				sequence_DtoReference(context, (DtoReference) semanticObject); 
				return; 
			case TacticdslPackage.ENTITY:
				sequence_Entity(context, (Entity) semanticObject); 
				return; 
			case TacticdslPackage.ENUM:
				sequence_Enum(context, (org.contextmapper.tactic.dsl.tacticdsl.Enum) semanticObject); 
				return; 
			case TacticdslPackage.ENUM_ATTRIBUTE:
				sequence_EnumAttribute(context, (EnumAttribute) semanticObject); 
				return; 
			case TacticdslPackage.ENUM_PARAMETER:
				sequence_EnumParameter(context, (EnumParameter) semanticObject); 
				return; 
			case TacticdslPackage.ENUM_VALUE:
				sequence_EnumValue(context, (EnumValue) semanticObject); 
				return; 
			case TacticdslPackage.OPPOSITE_HOLDER:
				sequence_OppositeHolder(context, (OppositeHolder) semanticObject); 
				return; 
			case TacticdslPackage.PARAMETER:
				sequence_Parameter(context, (org.contextmapper.tactic.dsl.tacticdsl.Parameter) semanticObject); 
				return; 
			case TacticdslPackage.PUBLISH:
				sequence_Publish(context, (Publish) semanticObject); 
				return; 
			case TacticdslPackage.REFERENCE:
				sequence_Reference(context, (Reference) semanticObject); 
				return; 
			case TacticdslPackage.REPOSITORY:
				sequence_Repository(context, (Repository) semanticObject); 
				return; 
			case TacticdslPackage.REPOSITORY_OPERATION:
				sequence_RepositoryOperation(context, (RepositoryOperation) semanticObject); 
				return; 
			case TacticdslPackage.RESOURCE:
				sequence_Resource(context, (Resource) semanticObject); 
				return; 
			case TacticdslPackage.RESOURCE_OPERATION:
				sequence_ResourceOperation(context, (ResourceOperation) semanticObject); 
				return; 
			case TacticdslPackage.RESOURCE_OPERATION_DELEGATE:
				sequence_ResourceOperationDelegate(context, (ResourceOperationDelegate) semanticObject); 
				return; 
			case TacticdslPackage.SERVICE:
				sequence_Service(context, (Service) semanticObject); 
				return; 
			case TacticdslPackage.SERVICE_DEPENDENCY:
				sequence_ServiceDependency(context, (ServiceDependency) semanticObject); 
				return; 
			case TacticdslPackage.SERVICE_OPERATION:
				sequence_ServiceOperation(context, (ServiceOperation) semanticObject); 
				return; 
			case TacticdslPackage.SERVICE_OPERATION_DELEGATE:
				sequence_ServiceOperationDelegate(context, (ServiceOperationDelegate) semanticObject); 
				return; 
			case TacticdslPackage.SUBSCRIBE:
				sequence_Subscribe(context, (Subscribe) semanticObject); 
				return; 
			case TacticdslPackage.TACTIC_DDD_MODEL:
				sequence_TacticDDDModel(context, (TacticDDDModel) semanticObject); 
				return; 
			case TacticdslPackage.TRAIT:
				sequence_Trait(context, (Trait) semanticObject); 
				return; 
			case TacticdslPackage.VALUE_OBJECT:
				sequence_ValueObject(context, (ValueObject) semanticObject); 
				return; 
			}
		if (errorAcceptor != null)
			errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
	}
	
	/**
	 * Contexts:
	 *     Application returns Application
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         ((name=ID basePackage=JavaIdentifier) | name=ID) 
	 *         (services+=Service | resources+=Resource | consumers+=Consumer | domainObjects+=SimpleDomainObject)*
	 *     )
	 */
	protected void sequence_Application(ISerializationContext context, Application semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Attribute returns Attribute
	 *     AnyProperty returns Attribute
	 *     Property returns Attribute
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         visibility=Visibility? 
	 *         ((collectionType=CollectionType type=Type) | type=Type) 
	 *         name=ID 
	 *         (
	 *             (
	 *                 key?='key' | 
	 *                 notChangeable?=NOT | 
	 *                 required?='required' | 
	 *                 nullable?='nullable' | 
	 *                 nullableMessage=STRING | 
	 *                 index?='index' | 
	 *                 hint=STRING | 
	 *                 digits=STRING | 
	 *                 max=STRING | 
	 *                 min=STRING | 
	 *                 decimalMax=STRING | 
	 *                 decimalMin=STRING | 
	 *                 pattern=STRING | 
	 *                 range=STRING | 
	 *                 size=STRING | 
	 *                 length=STRING | 
	 *                 scriptAssert=STRING | 
	 *                 url=STRING | 
	 *                 validate=STRING | 
	 *                 transient?='transient' | 
	 *                 databaseColumn=STRING | 
	 *                 databaseType=STRING
	 *             )? 
	 *             (assertFalse?='assertFalse' assertFalseMessage=STRING?)? 
	 *             (assertTrue?='assertTrue' assertTrueMessage=STRING?)? 
	 *             (creditCardNumber?='creditCardNumber' creditCardNumberMessage=STRING?)? 
	 *             (email?='email' emailMessage=STRING?)? 
	 *             (future?='future' futureMessage=STRING?)? 
	 *             (past?='past' pastMessage=STRING?)? 
	 *             (notEmpty?='notEmpty' notEmptyMessage=STRING?)? 
	 *             (notBlank?='notBlank' notBlankMessage=STRING?)?
	 *         )+
	 *     )
	 */
	protected void sequence_Attribute(ISerializationContext context, Attribute semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     SimpleDomainObject returns BasicType
	 *     BasicType returns BasicType
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         name=ID 
	 *         traits+=[Trait|ID]* 
	 *         package=JavaIdentifier? 
	 *         gapClass?='gap'? 
	 *         ((notImmutable?=NOT | noGapClass?='nogap' | hint=STRING)? gapClass?='gap'?)* 
	 *         (attributes+=Attribute | references+=Reference | operations+=DomainObjectOperation)*
	 *     )
	 */
	protected void sequence_BasicType(ISerializationContext context, BasicType semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Event returns CommandEvent
	 *     SimpleDomainObject returns CommandEvent
	 *     DomainObject returns CommandEvent
	 *     CommandEvent returns CommandEvent
	 *
	 * Constraint:
	 *     (
	 *         comment=ML_COMMENT? 
	 *         doc=STRING? 
	 *         abstract?='abstract'? 
	 *         name=ID 
	 *         (extends=[CommandEvent|ID] | extendsName=JavaIdentifier)? 
	 *         traits+=[Trait|ID]* 
	 *         package=JavaIdentifier? 
	 *         (
	 *             cache?='cache' | 
	 *             gapClass?='gap' | 
	 *             noGapClass?='nogap' | 
	 *             scaffold?='scaffold' | 
	 *             hint=STRING | 
	 *             databaseTable=STRING | 
	 *             discriminatorValue=STRING | 
	 *             discriminatorColumn=STRING | 
	 *             discriminatorType=DiscriminatorType | 
	 *             discriminatorLength=STRING | 
	 *             inheritanceType=InheritanceType | 
	 *             validate=STRING | 
	 *             persistent?='persistent' | 
	 *             aggregateRoot?='aggregateRoot' | 
	 *             belongsTo=[DomainObject|ID]
	 *         )* 
	 *         references+=Reference? 
	 *         ((attributes+=Attribute | operations+=DomainObjectOperation)? references+=Reference?)* 
	 *         repository=Repository?
	 *     )
	 */
	protected void sequence_CommandEvent(ISerializationContext context, CommandEvent semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     ComplexType returns ComplexType
	 *
	 * Constraint:
	 *     (
	 *         type=Type | 
	 *         (type=Type domainObjectType=[SimpleDomainObject|ID]) | 
	 *         domainObjectType=[SimpleDomainObject|ID] | 
	 *         (collectionType=CollectionType (domainObjectType=[SimpleDomainObject|ID] | type=Type | (type=Type domainObjectType=[SimpleDomainObject|ID]))) | 
	 *         (
	 *             mapCollectionType=MAP_COLLECTION_TYPE 
	 *             (mapKeyType=Type | mapKeyDomainObjectType=[SimpleDomainObject|ID]) 
	 *             (domainObjectType=[SimpleDomainObject|ID] | type=Type | (type=Type domainObjectType=[SimpleDomainObject|ID]))
	 *         )
	 *     )
	 */
	protected void sequence_ComplexType(ISerializationContext context, ComplexType semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Consumer returns Consumer
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         name=ID 
	 *         hint=STRING? 
	 *         dependencies+=Dependency* 
	 *         messageRoot=[DomainObject|ID]? 
	 *         (channel=ChannelIdentifier | subscribe=Subscribe)*
	 *     )
	 */
	protected void sequence_Consumer(ISerializationContext context, Consumer semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     SimpleDomainObject returns DataTransferObject
	 *     DataTransferObject returns DataTransferObject
	 *
	 * Constraint:
	 *     (
	 *         comment=ML_COMMENT? 
	 *         doc=STRING? 
	 *         abstract?='abstract'? 
	 *         name=ID 
	 *         (extends=[DataTransferObject|ID] | extendsName=JavaIdentifier)? 
	 *         package=JavaIdentifier? 
	 *         gapClass?='gap'? 
	 *         ((noGapClass?='nogap' | hint=STRING | validate=STRING)? gapClass?='gap'?)* 
	 *         (attributes+=DtoAttribute | references+=DtoReference)*
	 *     )
	 */
	protected void sequence_DataTransferObject(ISerializationContext context, DataTransferObject semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Dependency returns Dependency
	 *
	 * Constraint:
	 *     (dependency=[ServiceRepositoryOption|ID] | name=ID)
	 */
	protected void sequence_Dependency(ISerializationContext context, Dependency semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Event returns DomainEvent
	 *     SimpleDomainObject returns DomainEvent
	 *     DomainObject returns DomainEvent
	 *     DomainEvent returns DomainEvent
	 *
	 * Constraint:
	 *     (
	 *         comment=ML_COMMENT? 
	 *         doc=STRING? 
	 *         abstract?='abstract'? 
	 *         name=ID 
	 *         (extends=[DomainEvent|ID] | extendsName=JavaIdentifier)? 
	 *         traits+=[Trait|ID]* 
	 *         package=JavaIdentifier? 
	 *         (
	 *             cache?='cache' | 
	 *             gapClass?='gap' | 
	 *             noGapClass?='nogap' | 
	 *             scaffold?='scaffold' | 
	 *             hint=STRING | 
	 *             databaseTable=STRING | 
	 *             discriminatorValue=STRING | 
	 *             discriminatorColumn=STRING | 
	 *             discriminatorType=DiscriminatorType | 
	 *             discriminatorLength=STRING | 
	 *             inheritanceType=InheritanceType | 
	 *             validate=STRING | 
	 *             persistent?='persistent' | 
	 *             aggregateRoot?='aggregateRoot' | 
	 *             belongsTo=[DomainObject|ID]
	 *         )* 
	 *         attributes+=Attribute? 
	 *         ((references+=Reference | operations+=DomainObjectOperation)? attributes+=Attribute?)* 
	 *         repository=Repository?
	 *     )
	 */
	protected void sequence_DomainEvent(ISerializationContext context, DomainEvent semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     DomainObjectTypedElement returns DomainObjectOperation
	 *     DomainObjectOperation returns DomainObjectOperation
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         abstract?='abstract'? 
	 *         visibility=Visibility? 
	 *         returnType=ComplexType? 
	 *         name=ID 
	 *         parameters+=Parameter? 
	 *         parameters+=Parameter* 
	 *         (throws=ThrowsIdentifier | hint=STRING)*
	 *     )
	 */
	protected void sequence_DomainObjectOperation(ISerializationContext context, DomainObjectOperation semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     DtoAttribute returns DtoAttribute
	 *     AnyProperty returns DtoAttribute
	 *     DtoProperty returns DtoAttribute
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         visibility=Visibility? 
	 *         collectionType=CollectionType? 
	 *         type=Type 
	 *         name=ID 
	 *         (
	 *             (
	 *                 key?='key' | 
	 *                 notChangeable?=NOT | 
	 *                 required?='required' | 
	 *                 nullable?='nullable' | 
	 *                 nullableMessage=STRING | 
	 *                 transient?='transient' | 
	 *                 digits=STRING | 
	 *                 max=STRING | 
	 *                 min=STRING | 
	 *                 decimalMax=STRING | 
	 *                 decimalMin=STRING | 
	 *                 pattern=STRING | 
	 *                 range=STRING | 
	 *                 size=STRING | 
	 *                 length=STRING | 
	 *                 scriptAssert=STRING | 
	 *                 url=STRING | 
	 *                 validate=STRING | 
	 *                 hint=STRING
	 *             )? 
	 *             (assertFalse?='assertFalse' assertFalseMessage=STRING?)? 
	 *             (assertTrue?='assertTrue' assertTrueMessage=STRING?)? 
	 *             (creditCardNumber?='creditCardNumber' creditCardNumberMessage=STRING?)? 
	 *             (email?='email' emailMessage=STRING?)? 
	 *             (future?='future' futureMessage=STRING?)? 
	 *             (past?='past' pastMessage=STRING?)? 
	 *             (notEmpty?='notEmpty' notEmptyMessage=STRING?)? 
	 *             (notBlank?='notBlank' notBlankMessage=STRING?)?
	 *         )+
	 *     )
	 */
	protected void sequence_DtoAttribute(ISerializationContext context, DtoAttribute semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     DtoReference returns DtoReference
	 *     AnyProperty returns DtoReference
	 *     DtoProperty returns DtoReference
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         visibility=Visibility? 
	 *         collectionType=CollectionType? 
	 *         domainObjectType=[SimpleDomainObject|ID] 
	 *         name=ID 
	 *         (
	 *             (
	 *                 key?='key' | 
	 *                 notChangeable?=NOT | 
	 *                 required?='required' | 
	 *                 nullable?='nullable' | 
	 *                 nullableMessage=STRING | 
	 *                 transient?='transient' | 
	 *                 size=STRING | 
	 *                 validate=STRING | 
	 *                 hint=STRING
	 *             )? 
	 *             (notEmpty?='notEmpty' notEmptyMessage=STRING?)? 
	 *             (valid?='valid' validMessage=STRING?)?
	 *         )+
	 *     )
	 */
	protected void sequence_DtoReference(ISerializationContext context, DtoReference semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     SimpleDomainObject returns Entity
	 *     DomainObject returns Entity
	 *     Entity returns Entity
	 *
	 * Constraint:
	 *     (
	 *         comment=ML_COMMENT? 
	 *         doc=STRING? 
	 *         abstract?='abstract'? 
	 *         name=ID 
	 *         (extends=[Entity|ID] | extendsName=JavaIdentifier)? 
	 *         traits+=[Trait|ID]* 
	 *         package=JavaIdentifier? 
	 *         noGapClass?='nogap'? 
	 *         (
	 *             (
	 *                 notOptimisticLocking?=NOT | 
	 *                 notAuditable?=NOT | 
	 *                 cache?='cache' | 
	 *                 gapClass?='gap' | 
	 *                 scaffold?='scaffold' | 
	 *                 hint=STRING | 
	 *                 databaseTable=STRING | 
	 *                 discriminatorValue=STRING | 
	 *                 discriminatorColumn=STRING | 
	 *                 discriminatorType=DiscriminatorType | 
	 *                 discriminatorLength=STRING | 
	 *                 inheritanceType=InheritanceType | 
	 *                 validate=STRING | 
	 *                 aggregateRoot?='aggregateRoot' | 
	 *                 belongsTo=[DomainObject|ID]
	 *             )? 
	 *             noGapClass?='nogap'?
	 *         )* 
	 *         (attributes+=Attribute | references+=Reference | operations+=DomainObjectOperation)* 
	 *         repository=Repository?
	 *     )
	 */
	protected void sequence_Entity(ISerializationContext context, Entity semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     EnumAttribute returns EnumAttribute
	 *
	 * Constraint:
	 *     (doc=STRING? type=Type name=ID key?='key'?)
	 */
	protected void sequence_EnumAttribute(ISerializationContext context, EnumAttribute semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     EnumParameter returns EnumParameter
	 *
	 * Constraint:
	 *     (value=STRING | integerValue=INT)
	 */
	protected void sequence_EnumParameter(ISerializationContext context, EnumParameter semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     EnumValue returns EnumValue
	 *
	 * Constraint:
	 *     (doc=STRING? name=ID (parameters+=EnumParameter parameters+=EnumParameter*)?)
	 */
	protected void sequence_EnumValue(ISerializationContext context, EnumValue semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     SimpleDomainObject returns Enum
	 *     Enum returns Enum
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         name=ID 
	 *         package=JavaIdentifier? 
	 *         hint=STRING? 
	 *         ordinal?='ordinal'? 
	 *         attributes+=EnumAttribute* 
	 *         values+=EnumValue 
	 *         values+=EnumValue*
	 *     )
	 */
	protected void sequence_Enum(ISerializationContext context, org.contextmapper.tactic.dsl.tacticdsl.Enum semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     OppositeHolder returns OppositeHolder
	 *
	 * Constraint:
	 *     opposite=[Reference|ID]
	 */
	protected void sequence_OppositeHolder(ISerializationContext context, OppositeHolder semanticObject) {
		if (errorAcceptor != null) {
			if (transientValues.isValueTransient(semanticObject, TacticdslPackage.Literals.OPPOSITE_HOLDER__OPPOSITE) == ValueTransient.YES)
				errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TacticdslPackage.Literals.OPPOSITE_HOLDER__OPPOSITE));
		}
		SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
		feeder.accept(grammarAccess.getOppositeHolderAccess().getOppositeReferenceIDTerminalRuleCall_1_0_1(), semanticObject.eGet(TacticdslPackage.Literals.OPPOSITE_HOLDER__OPPOSITE, false));
		feeder.finish();
	}
	
	
	/**
	 * Contexts:
	 *     DomainObjectTypedElement returns Parameter
	 *     Parameter returns Parameter
	 *
	 * Constraint:
	 *     (doc=STRING? parameterType=ComplexType name=ID)
	 */
	protected void sequence_Parameter(ISerializationContext context, org.contextmapper.tactic.dsl.tacticdsl.Parameter semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Publish returns Publish
	 *
	 * Constraint:
	 *     (eventType=[Event|ID]? topic=ChannelIdentifier eventBus=ID?)
	 */
	protected void sequence_Publish(ISerializationContext context, Publish semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Reference returns Reference
	 *     AnyProperty returns Reference
	 *     Property returns Reference
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         visibility=Visibility? 
	 *         ((collectionType=CollectionType domainObjectType=[SimpleDomainObject|ID]) | domainObjectType=[SimpleDomainObject|ID]) 
	 *         name=ID 
	 *         (
	 *             (
	 *                 key?='key' | 
	 *                 notChangeable?=NOT | 
	 *                 required?='required' | 
	 *                 nullable?='nullable' | 
	 *                 nullableMessage=STRING | 
	 *                 hint=STRING | 
	 *                 cascade=STRING | 
	 *                 fetch=STRING | 
	 *                 cache?='cache' | 
	 *                 inverse?='inverse' | 
	 *                 databaseColumn=STRING | 
	 *                 databaseJoinTable=STRING | 
	 *                 databaseJoinColumn=STRING | 
	 *                 size=STRING | 
	 *                 validate=STRING | 
	 *                 transient?='transient' | 
	 *                 orderBy=STRING | 
	 *                 oppositeHolder=OppositeHolder
	 *             )? 
	 *             (notEmpty?='notEmpty' notEmptyMessage=STRING?)? 
	 *             (valid?='valid' validMessage=STRING?)? 
	 *             (orderColumn?='orderColumn' orderColumnName=STRING?)?
	 *         )+
	 *     )
	 */
	protected void sequence_Reference(ISerializationContext context, Reference semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     DomainObjectTypedElement returns RepositoryOperation
	 *     ServiceRepositoryOperationOption returns RepositoryOperation
	 *     RepositoryOperation returns RepositoryOperation
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         visibility=Visibility? 
	 *         returnType=ComplexType? 
	 *         name=ID 
	 *         parameters+=Parameter? 
	 *         parameters+=Parameter* 
	 *         (
	 *             throws=ThrowsIdentifier | 
	 *             hint=STRING | 
	 *             cache?='cache' | 
	 *             gapOperation?='gap' | 
	 *             noGapOperation?='nogap' | 
	 *             query=STRING | 
	 *             condition=STRING | 
	 *             select=STRING | 
	 *             groupBy=STRING | 
	 *             orderBy=STRING | 
	 *             construct?='construct' | 
	 *             build?='build' | 
	 *             map?='map' | 
	 *             publish=Publish
	 *         )* 
	 *         (delegateToAccessObject?=DELEGATE accessObjectName=ID?)?
	 *     )
	 */
	protected void sequence_RepositoryOperation(ISerializationContext context, RepositoryOperation semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     ServiceRepositoryOption returns Repository
	 *     Repository returns Repository
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         name=ID 
	 *         (gapClass?='gap' | noGapClass?='nogap' | hint=STRING | subscribe=Subscribe)* 
	 *         dependencies+=Dependency* 
	 *         operations+=RepositoryOperation*
	 *     )
	 */
	protected void sequence_Repository(ISerializationContext context, Repository semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     ResourceOperationDelegate returns ResourceOperationDelegate
	 *
	 * Constraint:
	 *     (delegate=[Service|ID] delegateOperation=[ServiceOperation|ID])
	 */
	protected void sequence_ResourceOperationDelegate(ISerializationContext context, ResourceOperationDelegate semanticObject) {
		if (errorAcceptor != null) {
			if (transientValues.isValueTransient(semanticObject, TacticdslPackage.Literals.RESOURCE_OPERATION_DELEGATE__DELEGATE) == ValueTransient.YES)
				errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TacticdslPackage.Literals.RESOURCE_OPERATION_DELEGATE__DELEGATE));
			if (transientValues.isValueTransient(semanticObject, TacticdslPackage.Literals.RESOURCE_OPERATION_DELEGATE__DELEGATE_OPERATION) == ValueTransient.YES)
				errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TacticdslPackage.Literals.RESOURCE_OPERATION_DELEGATE__DELEGATE_OPERATION));
		}
		SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
		feeder.accept(grammarAccess.getResourceOperationDelegateAccess().getDelegateServiceIDTerminalRuleCall_2_0_1(), semanticObject.eGet(TacticdslPackage.Literals.RESOURCE_OPERATION_DELEGATE__DELEGATE, false));
		feeder.accept(grammarAccess.getResourceOperationDelegateAccess().getDelegateOperationServiceOperationIDTerminalRuleCall_4_0_1(), semanticObject.eGet(TacticdslPackage.Literals.RESOURCE_OPERATION_DELEGATE__DELEGATE_OPERATION, false));
		feeder.finish();
	}
	
	
	/**
	 * Contexts:
	 *     ResourceOperation returns ResourceOperation
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         visibility=Visibility? 
	 *         returnType=ComplexType? 
	 *         name=ID 
	 *         parameters+=Parameter? 
	 *         parameters+=Parameter* 
	 *         (throws=ThrowsIdentifier | hint=STRING | httpMethod=HttpMethod | path=STRING | returnString=STRING)* 
	 *         delegateHolder=ResourceOperationDelegate?
	 *     )
	 */
	protected void sequence_ResourceOperation(ISerializationContext context, ResourceOperation semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Resource returns Resource
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         name=ID 
	 *         (gapClass?='gap' | noGapClass?='nogap' | hint=STRING | scaffold?='scaffold' | path=STRING)* 
	 *         dependencies+=ServiceDependency* 
	 *         operations+=ResourceOperation*
	 *     )
	 */
	protected void sequence_Resource(ISerializationContext context, Resource semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     ServiceDependency returns ServiceDependency
	 *
	 * Constraint:
	 *     dependency=[Service|ID]
	 */
	protected void sequence_ServiceDependency(ISerializationContext context, ServiceDependency semanticObject) {
		if (errorAcceptor != null) {
			if (transientValues.isValueTransient(semanticObject, TacticdslPackage.Literals.SERVICE_DEPENDENCY__DEPENDENCY) == ValueTransient.YES)
				errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TacticdslPackage.Literals.SERVICE_DEPENDENCY__DEPENDENCY));
		}
		SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
		feeder.accept(grammarAccess.getServiceDependencyAccess().getDependencyServiceIDTerminalRuleCall_1_1_0_1(), semanticObject.eGet(TacticdslPackage.Literals.SERVICE_DEPENDENCY__DEPENDENCY, false));
		feeder.finish();
	}
	
	
	/**
	 * Contexts:
	 *     ServiceOperationDelegate returns ServiceOperationDelegate
	 *
	 * Constraint:
	 *     (delegate=[ServiceRepositoryOption|ID] delegateOperation=[ServiceRepositoryOperationOption|ID])
	 */
	protected void sequence_ServiceOperationDelegate(ISerializationContext context, ServiceOperationDelegate semanticObject) {
		if (errorAcceptor != null) {
			if (transientValues.isValueTransient(semanticObject, TacticdslPackage.Literals.SERVICE_OPERATION_DELEGATE__DELEGATE) == ValueTransient.YES)
				errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TacticdslPackage.Literals.SERVICE_OPERATION_DELEGATE__DELEGATE));
			if (transientValues.isValueTransient(semanticObject, TacticdslPackage.Literals.SERVICE_OPERATION_DELEGATE__DELEGATE_OPERATION) == ValueTransient.YES)
				errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TacticdslPackage.Literals.SERVICE_OPERATION_DELEGATE__DELEGATE_OPERATION));
		}
		SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
		feeder.accept(grammarAccess.getServiceOperationDelegateAccess().getDelegateServiceRepositoryOptionIDTerminalRuleCall_2_0_1(), semanticObject.eGet(TacticdslPackage.Literals.SERVICE_OPERATION_DELEGATE__DELEGATE, false));
		feeder.accept(grammarAccess.getServiceOperationDelegateAccess().getDelegateOperationServiceRepositoryOperationOptionIDTerminalRuleCall_4_0_1(), semanticObject.eGet(TacticdslPackage.Literals.SERVICE_OPERATION_DELEGATE__DELEGATE_OPERATION, false));
		feeder.finish();
	}
	
	
	/**
	 * Contexts:
	 *     DomainObjectTypedElement returns ServiceOperation
	 *     ServiceOperation returns ServiceOperation
	 *     ServiceRepositoryOperationOption returns ServiceOperation
	 *
	 * Constraint:
	 *     (
	 *         doc=STRING? 
	 *         visibility=Visibility? 
	 *         returnType=ComplexType? 
	 *         name=ID 
	 *         parameters+=Parameter? 
	 *         parameters+=Parameter* 
	 *         (throws=ThrowsIdentifier | hint=STRING | publish=Publish)* 
	 *         delegateHolder=ServiceOperationDelegate?
	 *     )
	 */
	protected void sequence_ServiceOperation(ISerializationContext context, ServiceOperation semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Service returns Service
	 *     ServiceRepositoryOption returns Service
	 *
	 * Constraint:
	 *     (
	 *         comment=ML_COMMENT? 
	 *         doc=STRING? 
	 *         name=ID 
	 *         (gapClass?='gap' | noGapClass?='nogap' | hint=STRING | webService?='webservice' | subscribe=Subscribe)* 
	 *         dependencies+=Dependency* 
	 *         operations+=ServiceOperation*
	 *     )
	 */
	protected void sequence_Service(ISerializationContext context, Service semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     Subscribe returns Subscribe
	 *
	 * Constraint:
	 *     (topic=ChannelIdentifier eventBus=ID?)
	 */
	protected void sequence_Subscribe(ISerializationContext context, Subscribe semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     TacticDDDModel returns TacticDDDModel
	 *
	 * Constraint:
	 *     app=Application
	 */
	protected void sequence_TacticDDDModel(ISerializationContext context, TacticDDDModel semanticObject) {
		if (errorAcceptor != null) {
			if (transientValues.isValueTransient(semanticObject, TacticdslPackage.Literals.TACTIC_DDD_MODEL__APP) == ValueTransient.YES)
				errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TacticdslPackage.Literals.TACTIC_DDD_MODEL__APP));
		}
		SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
		feeder.accept(grammarAccess.getTacticDDDModelAccess().getAppApplicationParserRuleCall_0(), semanticObject.getApp());
		feeder.finish();
	}
	
	
	/**
	 * Contexts:
	 *     SimpleDomainObject returns Trait
	 *     Trait returns Trait
	 *
	 * Constraint:
	 *     (doc=STRING? name=ID package=JavaIdentifier? hint=STRING? (attributes+=Attribute | references+=Reference | operations+=DomainObjectOperation)*)
	 */
	protected void sequence_Trait(ISerializationContext context, Trait semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
	/**
	 * Contexts:
	 *     SimpleDomainObject returns ValueObject
	 *     DomainObject returns ValueObject
	 *     ValueObject returns ValueObject
	 *
	 * Constraint:
	 *     (
	 *         comment=ML_COMMENT? 
	 *         doc=STRING? 
	 *         abstract?='abstract'? 
	 *         name=ID 
	 *         (extends=[ValueObject|ID] | extendsName=JavaIdentifier)? 
	 *         traits+=[Trait|ID]* 
	 *         package=JavaIdentifier? 
	 *         (
	 *             notOptimisticLocking?=NOT | 
	 *             notImmutable?=NOT | 
	 *             cache?='cache' | 
	 *             gapClass?='gap' | 
	 *             noGapClass?='nogap' | 
	 *             scaffold?='scaffold' | 
	 *             hint=STRING | 
	 *             databaseTable=STRING | 
	 *             discriminatorValue=STRING | 
	 *             discriminatorColumn=STRING | 
	 *             discriminatorType=DiscriminatorType | 
	 *             discriminatorLength=STRING | 
	 *             inheritanceType=InheritanceType | 
	 *             validate=STRING | 
	 *             persistent?='persistent' | 
	 *             notPersistent?=NOT | 
	 *             aggregateRoot?='aggregateRoot' | 
	 *             belongsTo=[DomainObject|ID]
	 *         )* 
	 *         attributes+=Attribute? 
	 *         ((references+=Reference | operations+=DomainObjectOperation)? attributes+=Attribute?)* 
	 *         repository=Repository?
	 *     )
	 */
	protected void sequence_ValueObject(ISerializationContext context, ValueObject semanticObject) {
		genericSequencer.createSequence(context, semanticObject);
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy