public interface IUmlModel
To navigate the UML model use the #getRoot() method. this method give access to the root Package of the model. The whole model can be navigate through the associations that links the model elements to each other.
The IUmlModel is also the factory which create the UML model elements.
Any model modification must be done in a transaction. It is the MDAC developer responsibility to ensure that the newly created metaclass is valid before commiting a transaction.
New UML model elements can easily be created using createXxxxx() methods where Xxxxx is the name of the metaclass for which an instance has to be created. At least one method createXxxxx() exists for UML model Element. i.e.: createClass(). This method only create an instance of the metaclass. The instance will have to be attached to the model and eventually named to be valid for the current transaction.
The factory provide some convenience methods that allow to directly create a valid instance for the most frequently used metaclasses. i.e.: createClass(String name, NameSpace owner), createClass(String name, NameSpace owner, Stereotype stereotype). These methods ensure the validity of the created element.
IAnalystModel
Abstraction createAbstraction()
AcceptCallEventAction createAcceptCallEventAction()
AcceptChangeEventAction createAcceptChangeEventAction()
AcceptSignalAction createAcceptSignalAction()
AcceptTimeEventAction createAcceptTimeEventAction()
Activity createActivity()
ActivityDiagram createActivityDiagram(String name, ModelElement owner)
name
- the name of the ActivityDiagram to be created.owner
- the ModelElement that will contain the ActivityDiagram.ActivityFinalNode createActivityFinalNode()
ActivityParameterNode createActivityParameterNode()
ActivityPartition createActivityPartition()
Actor createActor()
Actor createActor(String name, NameSpace owner)
name
- The name of the Actor to be created.owner
- The NameSpace that will contain the Actor.Actor createActor(String name, NameSpace owner, Stereotype stereotype)
The created Actor is valid for the current transaction. (It as a name and an owner.)
The created Actor is stereotyped by the stereotype
argument. The
StereotypeNotFoundException
is thrown if the stereotype is not found.
name
- The name of the Actor to be created.owner
- The NameSpace that will contain the Actor.stereotype
- the Stereotype that will be refered by the Actor.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassActor createActor(String name, NameSpace owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
Artifact createArtifact()
Artifact createArtifact(String name, NameSpace owner)
name
- The name of the Artifact to be created.owner
- The NameSpace that will contain the Artifact.Artifact createArtifact(String name, NameSpace owner, Stereotype stereotype)
stereotype
argument. The
StereotypeNotFoundException
is thrown if the stereotype is not found.name
- Name of the Artifactowner
- The Owner of the Artifactstereotype
- the stereotype to add on the created Artifact or null if none.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassArtifact createArtifact(String name, NameSpace owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
Association createAssociation(Classifier source, Classifier destination, String destinationRole)
source
- the source Classifier of the Association.destination
- the destination Classifier of the Association.destinationRole
- the Name of the destination role.Association createAssociation()
AssociationEnd createAssociationEnd()
Attribute createAttribute()
Attribute createAttribute(String name, GeneralClass type, Classifier owner)
name
- the name of the Attribute to be created.type
- the GeneralClass that will type the Attribute.owner
- the Classifier that will contain the AttributeAttribute createAttribute(String name, GeneralClass type, Classifier owner, Stereotype stereotype)
name
- the name of the Attribute to be created.type
- the GeneralClass that will type the Atrribute.owner
- the Classifier that will contain the Attribute.stereotype
- the name of the Stereotype that will be refered by the Attribute.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassAttribute createAttribute(String name, GeneralClass type, Classifier owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
AttributeLink createAttributeLink()
BehaviorParameter createBehaviorParameter()
BindableInstance createBindableInstance()
Binding createBinding()
BpmnActivity createBpmnActivity()
BpmnAdHocSubProcess createBpmnAdHocSubProcess()
BpmnAssociation createBpmnAssociation()
BpmnBehavior createBpmnBehavior()
BpmnBoundaryEvent createBpmnBoundaryEvent()
BpmnBusinessRuleTask createBpmnBusinessRuleTask()
BpmnCallActivity createBpmnCallActivity()
BpmnCancelEventDefinition createBpmnCancelEventDefinition()
BpmnCollaboration createBpmnCollaboration()
BpmnCompensateEventDefinition createBpmnCompensateEventDefinition()
BpmnComplexBehaviorDefinition createBpmnComplexBehaviorDefinition()
BpmnComplexGateway createBpmnComplexGateway()
BpmnConditionalEventDefinition createBpmnConditionalEventDefinition()
BpmnDataAssociation createBpmnDataAssociation()
BpmnDataInput createBpmnDataInput()
BpmnDataObject createBpmnDataObject()
BpmnDataOutput createBpmnDataOutput()
BpmnDataState createBpmnDataState()
BpmnDataStore createBpmnDataStore()
BpmnEndEvent createBpmnEndEvent()
BpmnEndPoint createBpmnEndPoint()
BpmnErrorEventDefinition createBpmnErrorEventDefinition()
BpmnEscalationEventDefinition createBpmnEscalationEventDefinition()
BpmnEventBasedGateway createBpmnEventBasedGateway()
BpmnExclusiveGateway createBpmnExclusiveGateway()
BpmnGroup createBpmnGroup()
BpmnImplicitThrowEvent createBpmnImplicitThrowEvent()
BpmnInclusiveGateway createBpmnInclusiveGateway()
BpmnInterface createBpmnInterface()
BpmnIntermediateCatchEvent createBpmnIntermediateCatchEvent()
BpmnIntermediateThrowEvent createBpmnIntermediateThrowEvent()
BpmnItemDefinition createBpmnItemDefinition()
BpmnLane createBpmnLane()
BpmnLaneSet createBpmnLaneSet()
BpmnLinkEventDefinition createBpmnLinkEventDefinition()
BpmnManualTask createBpmnManualTask()
BpmnMessage createBpmnMessage()
BpmnMessageEventDefinition createBpmnMessageEventDefinition()
BpmnMessageFlow createBpmnMessageFlow()
BpmnMultiInstanceLoopCharacteristics createBpmnMultiInstanceLoopCharacteristics()
BpmnOperation createBpmnOperation()
BpmnParallelGateway createBpmnParallelGateway()
BpmnParticipant createBpmnParticipant()
BpmnProcess createBpmnProcess()
BpmnProcessCollaborationDiagram createBpmnProcessCollaborationDiagram()
BpmnReceiveTask createBpmnReceiveTask()
BpmnResource createBpmnResource()
BpmnResourceParameter createBpmnResourceParameter()
BpmnResourceParameterBinding createBpmnResourceParameterBinding()
BpmnResourceRole createBpmnResourceRole()
BpmnScriptTask createBpmnScriptTask()
BpmnSendTask createBpmnSendTask()
BpmnSequenceFlow createBpmnSequenceFlow()
BpmnSequenceFlowDataAssociation createBpmnSequenceFlowDataAssociation()
BpmnServiceTask createBpmnServiceTask()
BpmnSignalEventDefinition createBpmnSignalEventDefinition()
BpmnStandardLoopCharacteristics createBpmnStandardLoopCharacteristics()
BpmnStartEvent createBpmnStartEvent()
BpmnSubProcess createBpmnSubProcess()
BpmnSubProcessDiagram createBpmnSubProcessDiagram()
BpmnTask createBpmnTask()
BpmnTerminateEventDefinition createBpmnTerminateEventDefinition()
BpmnTimerEventDefinition createBpmnTimerEventDefinition()
BpmnTransaction createBpmnTransaction()
BpmnUserTask createBpmnUserTask()
CallBehaviorAction createCallBehaviorAction()
CallOperationAction createCallOperationAction()
CentralBufferNode createCentralBufferNode()
ChoicePseudoState createChoicePseudoState()
Class createClass()
Class createClass(String name, NameSpace owner)
name
- the name of the Class to create.owner
- the NameSpace that will contain the Class.Class createClass(String name, NameSpace owner, Stereotype stereotype)
name
- the name of the Class to create.owner
- the NameSpace that will contain the Class.stereotype
- the Stereotype to refer on the class.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassClass createClass(String name, NameSpace owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
ClassAssociation createClassAssociation()
ClassDiagram createClassDiagram(String name, ModelElement owner, Stereotype stereotype)
owner
named by name
and sterotyped by
stereotype
name
- the name of the Class Diagram to create.owner
- the element on which the Class Diagram will be created.stereotype
- the name of the stereotype that will be used to type the Class Diagramorg.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassClause createClause()
Collaboration createCollaboration()
CollaborationUse createCollaborationUse()
CombinedFragment createCombinedFragment()
CombinedFragment createCombinedFragment(InteractionOperator operator)
operator
- the operator of the CombinedFragment to create.CommunicationChannel createCommunicationChannel()
CommunicationDiagram createCommunicationDiagram(String name, ModelElement owner, Stereotype stereotype)
owner
named by name
and sterotyped by
stereotype
name
- the name of the Communication Diagram to create.owner
- the element on which the Communication Diagram will be created.stereotype
- the name of the stereotype that will be used to type the Communication Diagramorg.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaCommunicationCommunicationMessage createCommunicationMessage()
CommunicationNode createCommunicationNode()
Component createComponent()
Component createComponent(String name, NameSpace owner)
name
- the name of the Component to create.owner
- the NameSpace that will contain the Component.Component createComponent(String name, NameSpace owner, Stereotype stereotype)
name
- the name of the Component to create.owner
- the NameSpace that will contain the Component.stereotype
- the Stereotype to refer on the Component.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassComponent createComponent(String name, NameSpace owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
CompositeStructureDiagram createCompositeStructureDiagram(String name, ModelElement owner, Stereotype stereotype)
owner
named by name
and sterotyped by
stereotype
name
- the name of the CompositeStructure Diagram to create.owner
- the element on which the Class Diagram will be created.stereotype
- the name of the stereotype that will be used to type the Class Diagramorg.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassConditionalNode createConditionalNode()
ConnectionPointReference createConnectionPointReference()
Connector createConnector(BindableInstance source, BindableInstance destination, String destinationRole)
source
- the source instance of the Connector.destination
- the destination instance of the Connector.destinationRole
- the Name of the destination role.Connector createConnector()
ConnectorEnd createConnectorEnd()
Constraint createConstraint()
ControlFlow createControlFlow()
DataFlow createDataFlow()
DataStoreNode createDataStoreNode()
DataType createDataType()
DataType createDataType(String name, NameSpace owner)
name
- the name of the DataType to create.owner
- the NameSpace that will contain the DataType.DataType createDataType(String name, NameSpace owner, Stereotype stereotype)
name
- the name of the DataType to create.owner
- the NameSpace that will contain the DataType.stereotype
- the stereotype that will extend the DataType.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassDataType createDataType(String name, NameSpace owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
DecisionMergeNode createDecisionMergeNode()
DeepHistoryPseudoState createDeepHistoryPseudoState()
Dependency createDependency()
Dependency createDependency(ModelElement source, ModelElement destination, Stereotype stereotype)
source
- the origin of the dependency.destination
- the destination of the dependency.stereotype
- the Stereotype that extends the dependency.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassDependency createDependency(ModelElement source, ModelElement destination, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
DeploymentDiagram createDeploymentDiagram(String name, ModelElement owner, Stereotype stereotype)
owner
named by name
and sterotyped by
stereotype
name
- the name of the Deployment Diagram to create.owner
- the element on which the Deployment Diagram will be created.stereotype
- the name of the stereotype that will be used to type the Deployment Diagramorg.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaDeploymentDiagramSet createDiagramSet()
DurationConstraint createDurationConstraint()
Element createElement(String metaclassName, Element parentElement, String relation)
metaclassName
- the metaclass name.parentElement
- the composition owned of the new element.relation
- the name of the relation between the new element and its owner.Element createElement(String metaclassName)
metaclassName
- the metaclass name.Element createElement(String metaclassName, String uuid) throws InvalidUuidException
metaclassName
- the metaclass name.uuid
- the uuid of the element to create.InvalidUuidException
- when an element with this uuid already exists, or the uuid has an invalid format.ElementImport createElementImport()
ElementImport createElementImport(NameSpace source, NameSpace destination)
source
- origin of the ElementImportdestination
- destination of the ElementImportElementImport createElementImport(Operation source, NameSpace destination)
source
- origin of the ElementImportdestination
- destination of the ElementImportElementRealization createElementRealization()
EntryPointPseudoState createEntryPointPseudoState()
EnumeratedPropertyType createEnumeratedPropertyType()
Enumeration createEnumeration()
Enumeration createEnumeration(String name, NameSpace owner)
name
- the name of the Enumeration to create.owner
- the NameSpace that will contain the EnumerationEnumeration createEnumeration(String name, NameSpace owner, Stereotype stereotype)
name
- the name of the Enumeration to create.owner
- the NameSpace that will contain the Enumeration.stereotype
- tthe Stereotype that will extend the Enumeration.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassEnumeration createEnumeration(String name, NameSpace owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
EnumerationLiteral createEnumerationLiteral()
EnumerationLiteral createEnumerationLiteral(String name, Enumeration owner)
name
- the name of the EnumerationLiteral to create.owner
- the Enumeration that will contain the EnumerationLiteralEnumerationLiteral createEnumerationLiteral(String name, Enumeration owner, Stereotype stereotype)
name
- the name of the EnumerationLiteral to create.owner
- the Enumeration that will contain the EnumerationLiteral.stereotype
- the Stereotype that will extend the EnumerationLiteral.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassEnumerationLiteral createEnumerationLiteral(String name, Enumeration owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
Event createEvent()
ExceptionHandler createExceptionHandler()
ExecutionOccurenceSpecification createExecutionOccurenceSpecification()
ExecutionSpecification createExecutionSpecification()
ExitPointPseudoState createExitPointPseudoState()
ExpansionNode createExpansionNode()
ExpansionRegion createExpansionRegion()
UseCaseDependency createExtendUseCaseDependency(UseCase source, UseCase destination) throws ExtensionNotFoundException
source
- the origin of the UseCaseDependencydestination
- the destination of the UseCaseDependencyorg.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassExtensionNotFoundException
ExtensionPoint createExtensionPoint()
ExternDocument createExternDocument()
ExternDocument createExternDocument(String moduleName, String documentRole, ModelElement owner, String mimeType) throws ExtensionNotFoundException, IOException
moduleName
- the name of the module owning the note type.documentRole
- the role played by the rich note.owner
- the composition owner of the rich note.mimeType
- the MIME type of the rich note.ExternDocument
representing the rich note in the model.org.modelio.api.model.ExtensionNotFoundException
- if no document type matching the given name and the element metaclass is foundIOException
- in case of failure creating the file.ExtensionNotFoundException
ExternDocument createExternDocument(ExternDocumentType type, ModelElement owner, String mimeType) throws IOException
type
- the type of the rich note.owner
- the composition owner of the rich note.mimeType
- the MIME type of the rich note.ExternDocument
representing the rich note in the model.org.modelio.api.model.ExtensionNotFoundException
- if no document type matching the given name and the element metaclass is foundIOException
- in case of failure creating the file.ExternDocument createExternDocument(String moduleName, String documentRole, ModelElement owner, String mimeType, Path initialContent) throws ExtensionNotFoundException, IOException
ExternProcessor createExternProcessor()
ExternProcessor createExternProcessor(String implementationClassName, String moduleName)
implementationClassName
- the complete name of the implementation class.moduleName
- the module implementing the class. null
for standard implementations defined by Modelio itself.FinalState createFinalState()
FlowFinalNode createFlowFinalNode()
ForkJoinNode createForkJoinNode()
ForkPseudoState createForkPseudoState()
Gate createGate()
Gate createGate(String name)
name
- The name of the gate.GeneralOrdering createGeneralOrdering()
Generalization createGeneralization()
Generalization createGeneralization(NameSpace source, NameSpace destination)
source
- the child element of the Generaliartiondestination
- the parent element of the GeneraliartionParameter createIOParameter(String name, GeneralClass type, Operation owner)
name
- the name of the Parameter to create.type
- the type of the Parameter to create.owner
- the Operation that will contain the Parameter.Parameter createIOParameter(String name, GeneralClass type, Operation owner, Stereotype stereotype)
name
- the name of the Parameter to create.type
- the type of the Parameter to create.owner
- the Operation that will contain the Parameter.stereotype
- the stereotype that will extend the Parameter.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassParameter createIOParameter(String name, GeneralClass type, Operation owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
UseCaseDependency createIncludeUseCaseDependency(UseCase source, UseCase destination) throws ExtensionNotFoundException
source
- the origin element of the UseCaseDependencydestination
- the destination element of the UseCaseDependencyExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassInformationFlow createInformationFlow()
InformationItem createInformationItem()
InitialNode createInitialNode()
InitialPseudoState createInitialPseudoState()
InputPin createInputPin()
Instance createInstance()
Instance createInstance(String name, Package owner)
name
- the name of the Instance to create.owner
- the Package that will conbtain the Port.InstanceNode createInstanceNode()
Interaction createInteraction()
InteractionOperand createInteractionOperand()
InteractionOperand createInteractionOperand(String guard)
guard
- the guard condition of the InteractionOperand to create.InteractionUse createInteractionUse()
InteractionUse createInteractionUse(Interaction refered)
refered
- the referred Interaction.Interface createInterface()
Interface createInterface(String name, NameSpace owner)
name
- the name of the Interface to create.owner
- the NameSpace that will contain the Interface.Interface createInterface(String name, NameSpace owner, Stereotype stereotype)
name
- the name of the Interface to create.owner
- the NameSpace that will contain the Interface.stereotype
- the stereotype that will extend the Interface.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassInterface createInterface(String name, NameSpace owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
InterfaceRealization createInterfaceRealization()
InterfaceRealization createInterfaceRealization(NameSpace source, Interface destination)
source
- the origin of the InterfaceRealization.destination
- the destination of the InterfaceRealizationInternalTransition createInternalTransition()
InterruptibleActivityRegion createInterruptibleActivityRegion()
JoinPseudoState createJoinPseudoState()
JunctionPseudoState createJunctionPseudoState()
Lifeline createLifeline()
Lifeline createLifeline(String name, Interaction owner)
name
in the owner
Interaction.name
- the name of the Lifeline to create.owner
- the owner Interaction of the Lifeline to create.Lifeline createLifeline(String name, Interaction owner, Instance represented)
name
in the owner
Interaction. The
represented
instance is set on the Lifeline.name
- the name of the Lifeline to create.owner
- the owner Interaction of the Lifeline to create.represented
- the Instance that will be represented by the Lifeline.Link createLink(Instance source, Instance destination, String destinationRole)
source
- the source instance of the Link.destination
- the destination instance of the Link.destinationRole
- the Name of the destination role.Link createLink()
LinkEnd createLinkEnd()
LocalPropertyTable createLocalPropertyTable()
LoopNode createLoopNode()
Manifestation createManifestation()
MatrixDefinition createMatrixDefinition()
MatrixDefinition createMatrixDefinition(String name, QueryDefinition lineQuery, QueryDefinition colQuery, QueryDefinition depthQuery, MatrixValueDefinition valueDefinition)
name
- the name of the matrix to create.lineQuery
- the QueryDefinition defining the line axis. Mandatory.colQuery
- the QueryDefinition defining the column axis. If null
, the lineQuery will also be used for columns.depthQuery
- the QueryDefinition defining the depth axis. Might be null
.valueDefinition
- the MatrixValueDefinition defining the content of the matrix's cells.MatrixValueDefinition createMatrixValueDefinition()
MatrixValueDefinition createMatrixValueDefinition(String implementationClassName, String moduleName)
The created MatrixValueDefinition owns an ExternProcessor, bound to the implementation class from the specified module.
implementationClassName
- the complete name of the implementation class. Ex: com.modeliosoft.modelio.matrix.model.contentaccessor.JythonMatrixContentAccessor
moduleName
- the module implementing the IMatrixContentAccessor interface. null
for standard implementations defined by Modelio itself.Message createMessage()
Message createMessage(MessageSort sort)
sort
- the type of message to create.Message createMessage(MessageSort sort, Operation invoked)
sort
- the type of message to create.invoked
- the operation that is invoked by the Message to create.Message createMessage(String name, MessageSort sort)
name
and a type. In order to build a valid model, the Message must be
inserted in the model.name
- the name of the message to create.sort
- the type of message to create.MessageFlow createMessageFlow()
NamespaceUse createNamespaceUse()
NaryAssociation createNaryAssociation()
NaryAssociation createNaryAssociation(List<Classifier> ends)
NaryAssociationEnd createNaryAssociationEnd()
NaryConnector createNaryConnector()
NaryConnector createNaryConnector(List<BindableInstance> ends)
NaryConnectorEnd createNaryConnectorEnd()
NaryLink createNaryLink()
NaryLinkEnd createNaryLinkEnd()
Node createNode()
Note createNote()
Note createNote(String moduleName, String noteType, ModelElement owner, String content) throws ExtensionNotFoundException
moduleName
- the name of the module owning the note type.noteType
- the name of the NoteType.owner
- the composition owner of the Note.content
- the text of the Note.org.modelio.api.model.ExtensionNotFoundException
- if no note type matching the given name and the element metaclass is foundExtensionNotFoundException
Note createNote(NoteType noteType, ModelElement owner, String content)
noteType
- the type of the Note.owner
- the composition owner of the Note.content
- the text of the Note.org.modelio.api.model.ExtensionNotFoundException
- if no note type matching the given name and the element metaclass is foundObjectDiagram createObjectDiagram(String name, ModelElement owner, Stereotype stereotype)
owner
named by name
and sterotyped by
stereotype
name
- the name of the Object Diagram to create.owner
- the element on which the Object Diagram will be created.stereotype
- the name of the stereotype that will be used to type the Object Diagramorg.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaObjectObjectFlow createObjectFlow()
OpaqueAction createOpaqueAction()
OpaqueBehavior createOpaqueBehavior()
Operation createOperation()
Operation createOperation(String name, Classifier owner)
name
- the name of the Operation to create.owner
- the Classifier that will contain the Operation.Operation createOperation(String name, Classifier owner, Stereotype stereotype)
name
- the name of the Operation to create.owner
- the Classifier that will contain the Operation.stereotype
- the Stereotype that will extend the Operation.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassOperation createOperation(String name, Classifier owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
OutputPin createOutputPin()
Package createPackage()
Package createPackage(String name, NameSpace owner)
name
- the name of the Package to create.owner
- the NameSpace that will contain the Package.Package createPackage(String name, NameSpace owner, Stereotype stereotype)
name
- the name of the Package to create.owner
- the NameSpace that will contain the Package.stereotype
- the Stereotype will extend the Package.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassPackage createPackage(String name, NameSpace owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
PackageImport createPackageImport()
PackageImport createPackageImport(NameSpace source, Package destination)
source
- origin of the ElementImportdestination
- destination of the ElementImportPackageImport createPackageImport(Operation source, Package destination)
source
- origin of the ElementImportdestination
- destination of the ElementImportPackageMerge createPackageMerge()
Parameter createParameter()
PartDecomposition createPartDecomposition()
PartDecomposition createPartDecomposition(Interaction refered)
refered
- the refered Interaction.Port createPort()
Port createPort(String name, Instance owner)
name
- The name of the Port to create.owner
- The Instance that will contain the Port.Port createPort(String name, Classifier owner)
name
- The name of the Port to create.owner
- The Classifier that will contain the Port.PropertyDefinition createPropertyDefinition()
PropertyEnumerationLitteral createPropertyEnumerationLitteral()
PropertyTable createPropertyTable()
PropertyTableDefinition createPropertyTableDefinition()
PropertyType createPropertyType()
ProvidedInterface createProvidedInterface()
ProvidedInterface createProvidedInterface(Port owner, List<Interface> interfaces)
owner
- the Port that contains the ProvidedInterface.interfaces
- the provided InterfacesQueryDefinition createQueryDefinition()
QueryDefinition createQueryDefinition(String implementationClassName, String moduleName)
The created QueryDefinition owns an ExternProcessor, bound to the implementation class from the specified module.
implementationClassName
- the complete name of the implementation class. Ex: com.modeliosoft.modelio.matrix.model.queries.AllInstancesQuery
moduleName
- the module implementing the IQuery interface. null
for standard implementations defined by Modelio itself.RaisedException createRaisedException()
Region createRegion()
RequiredInterface createRequiredInterface()
RequiredInterface createRequiredInterface(Port owner, List<Interface> interfaces)
owner
- the Port that contains the RequiredInterface.interfaces
- the required InterfacesParameter createReturnParameter(String name, GeneralClass type, Operation owner)
name
- the name of the Parameter to create.type
- the type of the Parameter to create.owner
- the Operation that will contain the Parameter.Parameter createReturnParameter(String name, GeneralClass type, Operation owner, Stereotype stereotype)
name
- the name of the Parameter to create.type
- the type of the Parameter to create.owner
- the Operation that will contain the Parameter.stereotype
- the stereotype that will extend the Parameter.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassParameter createReturnParameter(String name, GeneralClass type, Operation owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
SendSignalAction createSendSignalAction()
SequenceDiagram createSequenceDiagram()
ShallowHistoryPseudoState createShallowHistoryPseudoState()
Signal createSignal()
State createState()
StateInvariant createStateInvariant()
StateInvariant createStateInvariant(String body)
body
- the body of the StateInvariant to create.StateMachine createStateMachine()
StateMachineDiagram createStateMachineDiagram(String name, ModelElement owner, Stereotype stereotype)
owner
named by name
and sterotyped by
stereotype
name
- the name of the StateMachine Diagram to create.owner
- the element on which the StateMachine Diagram will be created.stereotype
- the name of the stereotype that will be used to type the StateMachine Diagramorg.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaStateMachineStaticDiagram createStaticDiagram(String name, ModelElement owner, Stereotype stereotype)
owner
named by name
and sterotyped by
stereotype
name
- the name of the Static Diagram to create.owner
- the element on which the Static Diagram will be created.stereotype
- the name of the stereotype that will be used to type the Static Diagramorg.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassStaticDiagram createStaticDiagram(String name, ModelElement owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
StructuredActivityNode createStructuredActivityNode()
Substitution createSubstitution()
TagParameter createTagParameter()
TagParameter createTagParameter(String value, TaggedValue owner)
value
- the value of the tag parameter.owner
- the owner tagged value of the tag parameter.TaggedValue createTaggedValue()
TaggedValue createTaggedValue(String moduleName, String tagType, ModelElement owner) throws ExtensionNotFoundException
moduleName
- the name of the module owning the note type.tagType
- the name of the TagType.owner
- the ModelElement that contains the Taggedvalue.org.modelio.api.model.ExtensionNotFoundException
- if no tag type matching the given name and the element metaclass is foundExtensionNotFoundException
TaggedValue createTaggedValue(TagType tagType, ModelElement owner)
tagType
- the type of the TaggedValue.owner
- the ModelElement that contains the Taggedvalue.org.modelio.api.model.ExtensionNotFoundException
- if no tag type matching the given name and the element metaclass is foundTemplateBinding createTemplateBinding()
TemplateParameter createTemplateParameter()
TemplateParameterSubstitution createTemplateParameterSubstitution()
TerminatePseudoState createTerminatePseudoState()
Transition createTransition()
TypedPropertyTable createTypedPropertyTable()
Usage createUsage()
Usage createUsage(ModelElement source, ModelElement destination)
source
- the origin of the Usage.destination
- the destination of the Usage.UseCase createUseCase()
UseCase createUseCase(String name, NameSpace owner)
name
- the name of the UseCase to create.owner
- the NameSpace that will contain the Usecase.UseCase createUseCase(String name, NameSpace owner, Stereotype stereotype)
name
- the name of the UseCase to create.owner
- the NameSpace that will contain the Usecase.stereotype
- the Stereotype that will extend the UseCase.org.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaclassUseCase createUseCase(String name, NameSpace owner, String moduleName, String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
UseCaseDependency createUseCaseDependency()
UseCaseDiagram createUseCaseDiagram(String name, ModelElement owner, Stereotype stereotype)
owner
named by name
and sterotyped by
stereotype
name
- the name of the UseCase Diagram to create.owner
- the element on which the UseCase Diagram will be created.stereotype
- the name of the stereotype that will be used to type the UseCase Diagramorg.modelio.api.model.ExtensionNotFoundException
- if there is no stereotype matching the name and the metaUseCaseValuePin createValuePin()
IDefaultNameService getDefaultNameService()
List<MObject> getModelRoots()
Project
.MObject getRoot(MObject context)
Project
.MObject
- context The fragment contextIUMLTypes getUmlTypes()