public interface IUmlModel
To navigate the UML model use the getModelRoots() 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.
Modifier and Type | Method and Description |
---|---|
Abstraction |
createAbstraction()
Create an Abstraction.
|
AcceptCallEventAction |
createAcceptCallEventAction()
Create an AcceptCallEventAction.
|
AcceptChangeEventAction |
createAcceptChangeEventAction()
Create an AcceptChangeEventAction.
|
AcceptSignalAction |
createAcceptSignalAction()
Create an AcceptSignalAction.
|
AcceptTimeEventAction |
createAcceptTimeEventAction()
Create an AcceptTimeEventAction.
|
Activity |
createActivity()
Create an Activity.
|
ActivityDiagram |
createActivityDiagram(java.lang.String name,
ModelElement owner)
Create an ActivityDiagram.
|
ActivityFinalNode |
createActivityFinalNode()
Create an ActivityFinalNode.
|
ActivityParameterNode |
createActivityParameterNode()
Create an ActivityParameterNode.
|
ActivityPartition |
createActivityPartition()
Create an ActivityPartition.
|
Actor |
createActor()
Create an Actor.
|
Actor |
createActor(java.lang.String name,
NameSpace owner)
Create an Actor.
|
Actor |
createActor(java.lang.String name,
NameSpace owner,
Stereotype stereotype)
Create an Actor with the desired name and stereotype.
|
Actor |
createActor(java.lang.String name,
NameSpace owner,
java.lang.String moduleName,
java.lang.String stereotypeName)
Create an Actor with the desired name and stereotype.
|
Artifact |
createArtifact()
Create an Artifact.
|
Artifact |
createArtifact(java.lang.String name,
NameSpace owner)
Create an Artifact.
|
Artifact |
createArtifact(java.lang.String name,
NameSpace owner,
Stereotype stereotype)
Create an Artifact.
|
Artifact |
createArtifact(java.lang.String name,
NameSpace owner,
java.lang.String moduleName,
java.lang.String stereotypeName)
Create an Artifact.
|
Association |
createAssociation()
Create a binary association.
|
Association |
createAssociation(Classifier source,
Classifier destination,
java.lang.String destinationRole)
Create a binary association.
|
AssociationEnd |
createAssociationEnd()
Create an AssociationEnd.
|
Attribute |
createAttribute()
Create an Attribute.
|
Attribute |
createAttribute(java.lang.String name,
GeneralClass type,
Classifier owner)
Create an Attribute.
|
Attribute |
createAttribute(java.lang.String name,
GeneralClass type,
Classifier owner,
Stereotype stereotype)
Create a stereotyped Attribute.
|
Attribute |
createAttribute(java.lang.String name,
GeneralClass type,
Classifier owner,
java.lang.String moduleName,
java.lang.String stereotypeName)
Create a stereotyped Attribute.
|
AttributeLink |
createAttributeLink()
Create an AttributeLink.
|
BehaviorParameter |
createBehaviorParameter()
Create a BehaviorParameter.
|
BindableInstance |
createBindableInstance()
Create a BindableInstance.
|
Binding |
createBinding()
Create a Binding.
|
BpmnActivity |
createBpmnActivity()
Create a BpmnActivity.
|
BpmnAdHocSubProcess |
createBpmnAdHocSubProcess()
Create a BpmnAdHocSubProcess.
|
BpmnAssociation |
createBpmnAssociation()
Create a BpmnAssociation.
|
BpmnBoundaryEvent |
createBpmnBoundaryEvent()
Create a BpmnBoundaryEvent.
|
BpmnBusinessRuleTask |
createBpmnBusinessRuleTask()
Create a BpmnBusinessRuleTask.
|
BpmnCallActivity |
createBpmnCallActivity()
Create a BpmnCallActivity.
|
BpmnCancelEventDefinition |
createBpmnCancelEventDefinition()
Create a BpmnCancelEventDefinition.
|
BpmnCollaboration |
createBpmnCollaboration()
Create a BpmnCollaboration.
|
BpmnCollaborationDiagram |
createBpmnCollaborationDiagram()
Create a BpmnCollaborationDiagram.
|
BpmnCompensateEventDefinition |
createBpmnCompensateEventDefinition()
Create a BpmnCompensateEventDefinition.
|
BpmnComplexBehaviorDefinition |
createBpmnComplexBehaviorDefinition()
Create a BpmnComplexBehaviorDefinition.
|
BpmnComplexGateway |
createBpmnComplexGateway()
Create a BpmnComplexGateway.
|
BpmnConditionalEventDefinition |
createBpmnConditionalEventDefinition()
Create a BpmnConditionalEventDefinition.
|
BpmnDataAssociation |
createBpmnDataAssociation()
Create a BpmnDataAssociation.
|
BpmnDataInput |
createBpmnDataInput()
Create a BpmnDataInput.
|
BpmnDataObject |
createBpmnDataObject()
Create a BpmnDataObject.
|
BpmnDataOutput |
createBpmnDataOutput()
Create a BpmnDataOutput.
|
BpmnDataState |
createBpmnDataState()
Create a BpmnDataState.
|
BpmnDataStore |
createBpmnDataStore()
Create a BpmnDataStore.
|
BpmnEndEvent |
createBpmnEndEvent()
Create a BpmnEndEvent.
|
BpmnEndPoint |
createBpmnEndPoint()
Create a BpmnEndPoint.
|
BpmnErrorEventDefinition |
createBpmnErrorEventDefinition()
Create a BpmnErrorEventDefinition.
|
BpmnEscalationEventDefinition |
createBpmnEscalationEventDefinition()
Create a BpmnEscalationEventDefinition.
|
BpmnEventBasedGateway |
createBpmnEventBasedGateway()
Create a BpmnEventBasedGateway.
|
BpmnExclusiveGateway |
createBpmnExclusiveGateway()
Create a BpmnExclusiveGateway.
|
BpmnGroup |
createBpmnGroup()
Create a BpmnGroup.
|
BpmnImplicitThrowEvent |
createBpmnImplicitThrowEvent()
Create a BpmnImplicitThrowEvent.
|
BpmnInclusiveGateway |
createBpmnInclusiveGateway()
Create a BpmnInclusiveGateway.
|
BpmnInterface |
createBpmnInterface()
Create a BpmnInterface.
|
BpmnIntermediateCatchEvent |
createBpmnIntermediateCatchEvent()
Create a BpmnIntermediateCatchEvent.
|
BpmnIntermediateThrowEvent |
createBpmnIntermediateThrowEvent()
Create a BpmnIntermediateThrowEvent.
|
BpmnItemDefinition |
createBpmnItemDefinition()
Create a BpmnItemDefinition.
|
BpmnLane |
createBpmnLane()
Create a BpmnLane.
|
BpmnLaneSet |
createBpmnLaneSet()
Create a BpmnLaneSet.
|
BpmnLinkEventDefinition |
createBpmnLinkEventDefinition()
Create a BpmnLinkEventDefinition.
|
BpmnManualTask |
createBpmnManualTask()
Create a BpmnManualTask.
|
BpmnMessage |
createBpmnMessage()
Create a BpmnMessage.
|
BpmnMessageEventDefinition |
createBpmnMessageEventDefinition()
Create a BpmnMessageEventDefinition.
|
BpmnMessageFlow |
createBpmnMessageFlow()
Create a BpmnMessageFlow.
|
BpmnMultiInstanceLoopCharacteristics |
createBpmnMultiInstanceLoopCharacteristics()
Create a BpmnMultiInstanceLoopCharacteristics.
|
BpmnOperation |
createBpmnOperation()
Create a BpmnOperation.
|
BpmnParallelGateway |
createBpmnParallelGateway()
Create a BpmnParallelGateway.
|
BpmnParticipant |
createBpmnParticipant()
Create a BpmnParticipant.
|
BpmnProcess |
createBpmnProcess()
Create a BpmnProcess.
|
BpmnProcessDesignDiagram |
createBpmnProcessDesignDiagram()
Create a BpmnProcessCollaborationDiagram.
|
BpmnReceiveTask |
createBpmnReceiveTask()
Create a BpmnReceiveTask.
|
BpmnResource |
createBpmnResource()
Create a BpmnResource.
|
BpmnResourceParameter |
createBpmnResourceParameter()
Create a BpmnResourceParameter.
|
BpmnResourceParameterBinding |
createBpmnResourceParameterBinding()
Create a BpmnResourceParameterBinding.
|
BpmnResourceRole |
createBpmnResourceRole()
Create a BpmnResourceRole.
|
BpmnScriptTask |
createBpmnScriptTask()
Create a BpmnScriptTask.
|
BpmnSendTask |
createBpmnSendTask()
Create a BpmnSendTask.
|
BpmnSequenceFlow |
createBpmnSequenceFlow()
Create a BpmnSequenceFlow.
|
BpmnSequenceFlowDataAssociation |
createBpmnSequenceFlowDataAssociation()
Create a BpmnSequenceFlowDataAssociation.
|
BpmnServiceTask |
createBpmnServiceTask()
Create a BpmnServiceTask.
|
BpmnSharedDefinitions |
createBpmnSharedDefinitions()
Create a BpmnSharedDefinitions.
|
BpmnSignalEventDefinition |
createBpmnSignalEventDefinition()
Create a BpmnSignalEventDefinition.
|
BpmnStandardLoopCharacteristics |
createBpmnStandardLoopCharacteristics()
Create a BpmnStandardLoopCharacteristics.
|
BpmnStartEvent |
createBpmnStartEvent()
Create a BpmnStartEvent.
|
BpmnSubProcess |
createBpmnSubProcess()
Create a BpmnSubProcess.
|
BpmnSubProcessDiagram |
createBpmnSubProcessDiagram()
Create a BpmnSubProcessDiagram.
|
BpmnTask |
createBpmnTask()
Create a BpmnTask.
|
BpmnTerminateEventDefinition |
createBpmnTerminateEventDefinition()
Create a BpmnTerminateEventDefinition.
|
BpmnTimerEventDefinition |
createBpmnTimerEventDefinition()
Create a BpmnTimerEventDefinition.
|
BpmnTransaction |
createBpmnTransaction()
Create a BpmnTransaction.
|
BpmnUserTask |
createBpmnUserTask()
Create a BpmnUserTask.
|
CallBehaviorAction |
createCallBehaviorAction()
Create a CallBehaviorAction.
|
CallOperationAction |
createCallOperationAction()
Create a CallOperationAction.
|
CentralBufferNode |
createCentralBufferNode()
Create a CentralBufferNode.
|
ChoicePseudoState |
createChoicePseudoState()
Create a ChoicePseudoState.
|
Class |
createClass()
Create a Class.
|
Class |
createClass(java.lang.String name,
NameSpace owner)
Create a class.
|
Class |
createClass(java.lang.String name,
NameSpace owner,
Stereotype stereotype)
Create a stereotyped class.
|
Class |
createClass(java.lang.String name,
NameSpace owner,
java.lang.String moduleName,
java.lang.String stereotypeName)
Create a stereotyped class.
|
ClassAssociation |
createClassAssociation()
Create a ClassAssociation.
|
ClassDiagram |
createClassDiagram(java.lang.String name,
ModelElement owner,
Stereotype stereotype)
Create a ClassDiagram.
|
Clause |
createClause()
Create a Clause.
|
Collaboration |
createCollaboration()
Create a Collaboration.
|
CollaborationUse |
createCollaborationUse()
Create a CollaborationUse.
|
CombinedFragment |
createCombinedFragment()
Create a CombinedFragment.
|
CombinedFragment |
createCombinedFragment(InteractionOperator operator)
Create a CombinedFragment.
|
CommunicationChannel |
createCommunicationChannel()
Create a CommunicationChannel.
|
CommunicationDiagram |
createCommunicationDiagram(java.lang.String name,
ModelElement owner,
Stereotype stereotype)
Create a CommunicationDiagram.
|
CommunicationInteraction |
createCommunicationInteraction()
Create a communication interaction.
|
CommunicationMessage |
createCommunicationMessage()
Create a CommunicationMessage.
|
CommunicationNode |
createCommunicationNode()
Create a CommunicationNode.
|
Component |
createComponent()
Create a Component.
|
Component |
createComponent(java.lang.String name,
NameSpace owner)
Create a Component.
|
Component |
createComponent(java.lang.String name,
NameSpace owner,
Stereotype stereotype)
Create a stereotyped Component.
|
Component |
createComponent(java.lang.String name,
NameSpace owner,
java.lang.String moduleName,
java.lang.String stereotypeName)
Create a stereotyped Component.
|
CompositeStructureDiagram |
createCompositeStructureDiagram(java.lang.String name,
ModelElement owner,
Stereotype stereotype)
Create a CompositeStructureDiagram.
|
ConditionalNode |
createConditionalNode()
Create a ConditionalNode.
|
ConnectionPointReference |
createConnectionPointReference()
Create a ConnectionPointReference.
|
Connector |
createConnector()
Create a Connector.
|
Connector |
createConnector(BindableInstance source,
BindableInstance destination,
java.lang.String destinationRole)
Create a connector between two bindable instances.
|
ConnectorEnd |
createConnectorEnd()
Create a ConnectorEnd.
|
Constraint |
createConstraint()
Create a Constraint.
|
ControlFlow |
createControlFlow()
Create a ControlFlow.
|
DataFlow |
createDataFlow()
Create a DataFlow.
|
DataStoreNode |
createDataStoreNode()
Create a DataStoreNode.
|
DataType |
createDataType()
Create a DataType.
|
DataType |
createDataType(java.lang.String name,
NameSpace owner)
Create a DataType.
|
DataType |
createDataType(java.lang.String name,
NameSpace owner,
Stereotype stereotype)
Create a DataType.
|
DataType |
createDataType(java.lang.String name,
NameSpace owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
DecisionMergeNode |
createDecisionMergeNode()
Create a DecisionMergeNode.
|
DeepHistoryPseudoState |
createDeepHistoryPseudoState()
Create a DeepHistoryPseudoState.
|
Dependency |
createDependency()
Create a Dependency.
|
Dependency |
createDependency(ModelElement source,
ModelElement destination,
Stereotype stereotype)
Create a Dependency between two ModelElements.
|
Dependency |
createDependency(ModelElement source,
ModelElement destination,
java.lang.String moduleName,
java.lang.String stereotypeName) |
DeploymentDiagram |
createDeploymentDiagram(java.lang.String name,
ModelElement owner,
Stereotype stereotype)
Create a DeploymentDiagram.
|
DiagramSet |
createDiagramSet()
Create a DiagramSet.
|
Document |
createDocument()
Create a non initialized
Document . |
DurationConstraint |
createDurationConstraint()
Create a DurationConstraint.
|
MObject |
createElement(java.lang.String metaclassName)
Create an element from its metaclass name.
|
MObject |
createElement(java.lang.String metaclassName,
Element parentElement,
java.lang.String relation)
Create an element from its metaclass name, and attach it to a parent using a specific relation.
|
ElementImport |
createElementImport()
Create an ElementImport.
|
ElementImport |
createElementImport(NameSpace source,
NameSpace destination)
Create an ElementImport between two NameSpaces.
|
ElementImport |
createElementImport(Operation source,
NameSpace destination)
Create an ElementImport between an Operation and a NameSpace.
|
ElementRealization |
createElementRealization()
Create an ElementRealization.
|
Document |
createEmbeddedDocument(ResourceType type,
ModelElement owner,
java.lang.String mimeType)
Creates an embedded document.
|
Document |
createEmbeddedDocument(java.lang.String moduleName,
java.lang.String documentRole,
ModelElement owner,
java.lang.String mimeType)
Creates an empty embedded document.
|
Document |
createEmbeddedDocument(java.lang.String moduleName,
java.lang.String documentRole,
ModelElement owner,
java.lang.String mimeType,
java.nio.file.Path initialContent)
Creates an embedded document from an existing file.
|
EntryPointPseudoState |
createEntryPointPseudoState()
Create a EntryPointPseudoState.
|
EnumeratedPropertyType |
createEnumeratedPropertyType() |
Enumeration |
createEnumeration()
Create an Enumeration.
|
Enumeration |
createEnumeration(java.lang.String name,
NameSpace owner)
Create an Enumeration.
|
Enumeration |
createEnumeration(java.lang.String name,
NameSpace owner,
Stereotype stereotype)
Create an stereotyped Enumeration.
|
Enumeration |
createEnumeration(java.lang.String name,
NameSpace owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
EnumerationLiteral |
createEnumerationLiteral()
Create an EnumerationLiteral.
|
EnumerationLiteral |
createEnumerationLiteral(java.lang.String name,
Enumeration owner)
Create an EnumerationLiteral.
|
EnumerationLiteral |
createEnumerationLiteral(java.lang.String name,
Enumeration owner,
Stereotype stereotype)
Create an stereotyped EnumerationLiteral.
|
EnumerationLiteral |
createEnumerationLiteral(java.lang.String name,
Enumeration owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
Event |
createEvent()
Create an Event.
|
ExceptionHandler |
createExceptionHandler()
Create an ExceptionHandler.
|
ExecutionOccurenceSpecification |
createExecutionOccurenceSpecification()
Create a ExecutionOccurenceSpecification.
|
ExecutionSpecification |
createExecutionSpecification()
Create a ExecutionSpecification.
|
ExitPointPseudoState |
createExitPointPseudoState()
Create a ExitPointPseudoState.
|
ExpansionNode |
createExpansionNode()
Create an ExpansionNode.
|
ExpansionRegion |
createExpansionRegion()
Create an ExpansionRegion.
|
UseCaseDependency |
createExtendUseCaseDependency(UseCase source,
UseCase destination)
Create an extend UseCaseDependency between two UseCases.
|
ExtensionPoint |
createExtensionPoint()
Create a ExtensionPoint.
|
Document |
createExternDocument()
Deprecated.
Since 3.7, Renamed
createDocument() |
Document |
createExternDocument(ResourceType role,
ModelElement owner,
java.lang.String mimeType)
Deprecated.
|
Document |
createExternDocument(java.lang.String moduleName,
java.lang.String documentRole,
ModelElement owner,
java.lang.String mimeType)
Deprecated.
Since 3.7, Renamed
createEmbeddedDocument(String, String, ModelElement, String) |
Document |
createExternDocument(java.lang.String moduleName,
java.lang.String documentRole,
ModelElement owner,
java.lang.String mimeType,
java.nio.file.Path initialContent)
Deprecated.
|
ExternElement |
createExternElement()
Create an ExternElement.
|
ExternElement |
createExternElement(java.lang.String name,
MethodologicalLink owner,
Stereotype stereotype)
Create a stereotyped externElement.
|
ExternElement |
createExternElement(java.lang.String name,
MethodologicalLink owner,
java.lang.String moduleName,
java.lang.String stereotypeName)
Create a stereotyped externElement.
|
ExternProcessor |
createExternProcessor()
Create a ExternProcessor.
|
ExternProcessor |
createExternProcessor(java.lang.String implementationClassName,
java.lang.String moduleName)
Create an ExternProcessor, bound to the implementation class from the specified module.
|
FinalState |
createFinalState()
Create a FinalState.
|
FlowFinalNode |
createFlowFinalNode()
Create a FlowFinalNode.
|
ForkJoinNode |
createForkJoinNode()
Create a ForkJoinNode.
|
ForkPseudoState |
createForkPseudoState()
Create a ForkPseudoState.
|
Gate |
createGate()
Create a Gate.
|
Gate |
createGate(java.lang.String name)
Create a Gate.
|
Generalization |
createGeneralization()
Create a Generalization.
|
Generalization |
createGeneralization(NameSpace source,
NameSpace destination)
Create a Generalization between two NameSpaces.
|
GeneralOrdering |
createGeneralOrdering()
Create a GeneralOrdering.
|
UseCaseDependency |
createIncludeUseCaseDependency(UseCase source,
UseCase destination)
Create an nclude UseCaseDependency between two NameSpaces.
|
InformationFlow |
createInformationFlow()
Create a InformationFlow.
|
InformationItem |
createInformationItem()
Create a InformationItem.
|
InitialNode |
createInitialNode()
Create a InitialNode.
|
InitialPseudoState |
createInitialPseudoState()
Create a InitialPseudoState.
|
InputPin |
createInputPin()
Create a InputPin.
|
Instance |
createInstance()
Create an instance.
|
Instance |
createInstance(java.lang.String name,
Package owner)
Create an instance.
|
InstanceNode |
createInstanceNode()
Create an instanceNode.
|
Interaction |
createInteraction()
Create interaction.
|
InteractionOperand |
createInteractionOperand()
Create an interactionOperand.
|
InteractionOperand |
createInteractionOperand(java.lang.String guard)
Create an interactionOperand.
|
InteractionUse |
createInteractionUse()
Create an interactionUse.
|
InteractionUse |
createInteractionUse(Interaction refered)
Create an interactionUse.
|
Interface |
createInterface()
Create an interface.
|
Interface |
createInterface(java.lang.String name,
NameSpace owner)
Create an interface.
|
Interface |
createInterface(java.lang.String name,
NameSpace owner,
Stereotype stereotype)
Create a stereotyped Interface.
|
Interface |
createInterface(java.lang.String name,
NameSpace owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
InterfaceRealization |
createInterfaceRealization()
Create an interfaceRealization.
|
InterfaceRealization |
createInterfaceRealization(NameSpace source,
Interface destination)
Create an interfaceRealization.
|
InternalTransition |
createInternalTransition()
Create an internalTransition.
|
InterruptibleActivityRegion |
createInterruptibleActivityRegion()
Create an interruptibleActivityRegion.
|
Parameter |
createIOParameter(java.lang.String name,
GeneralClass type,
Operation owner)
Create an OParameter.
|
Parameter |
createIOParameter(java.lang.String name,
GeneralClass type,
Operation owner,
Stereotype stereotype)
Create a stereotyped IOParameter.
|
Parameter |
createIOParameter(java.lang.String name,
GeneralClass type,
Operation owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
JoinPseudoState |
createJoinPseudoState()
Create an JoinPseudoState.
|
JunctionPseudoState |
createJunctionPseudoState()
Create an JunctionPseudoState.
|
Lifeline |
createLifeline()
Create a Lifeline.
|
Lifeline |
createLifeline(java.lang.String name,
Interaction owner)
Create a Lifeline.
|
Lifeline |
createLifeline(java.lang.String name,
Interaction owner,
Instance represented)
Create a Lifeline.
|
Link |
createLink() |
Link |
createLink(Instance source,
Instance destination,
java.lang.String destinationRole)
Create a Link between two instances.
|
LinkEnd |
createLinkEnd()
Create a LinkEnd.
|
LocalPropertyTable |
createLocalPropertyTable() |
LoopNode |
createLoopNode()
Create a LoopNode.
|
Manifestation |
createManifestation()
Create a Manifestation.
|
MatrixDefinition |
createMatrixDefinition()
Create a MatrixDefinition.
|
MatrixDefinition |
createMatrixDefinition(java.lang.String name,
QueryDefinition lineQuery,
QueryDefinition colQuery,
QueryDefinition depthQuery,
MatrixValueDefinition valueDefinition)
Create a MatrixDefinition with all its contents.
|
MatrixValueDefinition |
createMatrixValueDefinition()
Create a MatrixValueDefinition.
|
MatrixValueDefinition |
createMatrixValueDefinition(java.lang.String implementationClassName,
java.lang.String moduleName)
Create a MatrixValueDefinition implemented by a java class.
|
Message |
createMessage()
Create a Message.
|
Message |
createMessage(MessageSort sort)
Create a Message.
|
Message |
createMessage(MessageSort sort,
Operation invoked)
Create a Message.
|
Message |
createMessage(java.lang.String name,
MessageSort sort)
Create a Message.
|
MessageFlow |
createMessageFlow()
Create a MessageFlow.
|
MethodologicalLink |
createMethodologicalLink()
Create a MethodologicalLink.
|
MethodologicalLink |
createMethodologicalLink(ModelElement source,
ModelElement destination,
Stereotype stereotype)
Create a stereotyped MethodologicalLink between two ModelElements.
|
MethodologicalLink |
createMethodologicalLink(ModelElement source,
ModelElement destination,
java.lang.String moduleName,
java.lang.String stereotypeName) |
NaryAssociation |
createNaryAssociation() |
NaryAssociation |
createNaryAssociation(java.util.List<Classifier> ends) |
NaryAssociationEnd |
createNaryAssociationEnd() |
NaryConnector |
createNaryConnector() |
NaryConnector |
createNaryConnector(java.util.List<BindableInstance> ends) |
NaryConnectorEnd |
createNaryConnectorEnd() |
NaryLink |
createNaryLink() |
NaryLink |
createNaryLink(java.util.List<Instance> source) |
NaryLinkEnd |
createNaryLinkEnd() |
Node |
createNode()
Create a Node.
|
Note |
createNote()
Create a Note.
|
Note |
createNote(NoteType noteType,
ModelElement owner,
java.lang.String content)
Create a Note.
|
Note |
createNote(java.lang.String moduleName,
java.lang.String noteType,
ModelElement owner,
java.lang.String content)
Create a Note.
|
ObjectDiagram |
createObjectDiagram(java.lang.String name,
ModelElement owner,
Stereotype stereotype)
Create a ObjectDiagram.
|
ObjectFlow |
createObjectFlow()
Create a ObjectFlow.
|
OpaqueAction |
createOpaqueAction()
Create a OpaqueAction.
|
OpaqueBehavior |
createOpaqueBehavior()
Create a OpaqueBehavior.
|
Operation |
createOperation()
Create an Operation.
|
Operation |
createOperation(java.lang.String name,
Classifier owner)
Create an Operation.
|
Operation |
createOperation(java.lang.String name,
Classifier owner,
Stereotype stereotype)
Create a stereotyped Operation.
|
Operation |
createOperation(java.lang.String name,
Classifier owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
OutputPin |
createOutputPin()
Create a OutputPin.
|
Package |
createPackage()
Create a Package.
|
Package |
createPackage(java.lang.String name,
NameSpace owner)
Create a Package.
|
Package |
createPackage(java.lang.String name,
NameSpace owner,
Stereotype stereotype)
Create a stereotyped Package.
|
Package |
createPackage(java.lang.String name,
NameSpace owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
PackageImport |
createPackageImport()
Create a PackageImport.
|
PackageImport |
createPackageImport(NameSpace source,
Package destination)
Create a PackageImport between a NameSpace and a Package.
|
PackageImport |
createPackageImport(Operation source,
Package destination)
Create a PackageImport between an Operation and a Package.
|
PackageMerge |
createPackageMerge()
Create a PackageMerge.
|
Parameter |
createParameter()
Create a Parameter.
|
PartDecomposition |
createPartDecomposition()
Create a PartDecomposition.
|
PartDecomposition |
createPartDecomposition(Interaction refered)
Create an PartDecomposition.
|
Port |
createPort()
Create a Port.
|
Port |
createPort(java.lang.String name,
Classifier owner)
Create a Port.
|
Port |
createPort(java.lang.String name,
Instance owner)
Create a Port.
|
PropertyDefinition |
createPropertyDefinition() |
PropertyEnumerationLitteral |
createPropertyEnumerationLitteral() |
PropertyTable |
createPropertyTable() |
PropertyTableDefinition |
createPropertyTableDefinition() |
PropertyType |
createPropertyType() |
ProvidedInterface |
createProvidedInterface()
Create a ProvidedInterface.
|
ProvidedInterface |
createProvidedInterface(Port owner,
java.util.List<Interface> interfaces)
Create a ProvidedInterface.
|
QueryDefinition |
createQueryDefinition()
Create a QueryDefinition.
|
QueryDefinition |
createQueryDefinition(java.lang.String implementationClassName,
java.lang.String moduleName)
Create a QueryDefinition implemented by a java class.
|
RaisedException |
createRaisedException()
Create a RaisedException.
|
Region |
createRegion()
Create a Region.
|
RequiredInterface |
createRequiredInterface()
Create a RequiredInterface.
|
RequiredInterface |
createRequiredInterface(Port owner,
java.util.List<Interface> interfaces)
Create a RequiredInterface.
|
Parameter |
createReturnParameter(java.lang.String name,
GeneralClass type,
Operation owner)
Create an ReturnParameter.
|
Parameter |
createReturnParameter(java.lang.String name,
GeneralClass type,
Operation owner,
Stereotype stereotype)
Create a stereotyped ReturnParameter.
|
Parameter |
createReturnParameter(java.lang.String name,
GeneralClass type,
Operation owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
SendSignalAction |
createSendSignalAction()
Create a SendSignalAction.
|
SequenceDiagram |
createSequenceDiagram()
Create a SequenceDiagram.
|
ShallowHistoryPseudoState |
createShallowHistoryPseudoState()
Create a ShallowHistoryPseudoState.
|
Signal |
createSignal()
Create a Signal.
|
State |
createState()
Create a State.
|
StateInvariant |
createStateInvariant()
Create a StateInvariant.
|
StateInvariant |
createStateInvariant(java.lang.String body)
Create a StateInvariant.
|
StateMachine |
createStateMachine()
Create a StateMachine.
|
StateMachineDiagram |
createStateMachineDiagram(java.lang.String name,
ModelElement owner,
Stereotype stereotype)
Create a StateMachineDiagram.
|
StaticDiagram |
createStaticDiagram(java.lang.String name,
ModelElement owner,
Stereotype stereotype)
Create a StaticDiagram.
|
StaticDiagram |
createStaticDiagram(java.lang.String name,
ModelElement owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
StructuredActivityNode |
createStructuredActivityNode()
Create a StructuredActivityNode.
|
Substitution |
createSubstitution()
Create a Substitution.
|
TaggedValue |
createTaggedValue()
Create a TaggedValue.
|
TaggedValue |
createTaggedValue(java.lang.String moduleName,
java.lang.String tagType,
ModelElement owner)
Create a TaggedValue.
|
TaggedValue |
createTaggedValue(TagType tagType,
ModelElement owner)
Create a TaggedValue.
|
TagParameter |
createTagParameter()
Create a TagParameter.
|
TagParameter |
createTagParameter(java.lang.String value,
TaggedValue owner)
Create a TagParameter using a parameter as initial value.
|
TemplateBinding |
createTemplateBinding()
Create a TemplateBinding.
|
TemplateParameter |
createTemplateParameter()
Create a TemplateParameter.
|
TemplateParameterSubstitution |
createTemplateParameterSubstitution()
Create a TemplateParameterSubstitution.
|
TerminatePseudoState |
createTerminatePseudoState()
Create a TerminatePseudoState.
|
Transition |
createTransition()
Create a Transition.
|
TypedPropertyTable |
createTypedPropertyTable() |
Usage |
createUsage()
Create a Usage.
|
Usage |
createUsage(ModelElement source,
ModelElement destination)
Create a Usage between two ModelElement.
|
UseCase |
createUseCase()
Create a UseCase.
|
UseCase |
createUseCase(java.lang.String name,
NameSpace owner)
Create a UseCase.
|
UseCase |
createUseCase(java.lang.String name,
NameSpace owner,
Stereotype stereotype)
Create a stereotyped UseCase.
|
UseCase |
createUseCase(java.lang.String name,
NameSpace owner,
java.lang.String moduleName,
java.lang.String stereotypeName) |
UseCaseDependency |
createUseCaseDependency()
Create a UseCaseDependency.
|
UseCaseDiagram |
createUseCaseDiagram(java.lang.String name,
ModelElement owner,
Stereotype stereotype)
Create a UseCaseDiagram.
|
ValuePin |
createValuePin()
Create a ValuePin.
|
IDefaultNameService |
getDefaultNameService() |
java.util.List<MObject> |
getLibraryRoots()
Get all the roots of the libraries.
|
java.util.List<MObject> |
getModelRoots()
Get all the roots of the editable model.
|
MObject |
getRoot(MObject context)
Get the roots of the object in parameter.
|
IUMLTypes |
getUmlTypes()
Get access to the UML types
|
Abstraction createAbstraction()
AcceptCallEventAction createAcceptCallEventAction()
AcceptChangeEventAction createAcceptChangeEventAction()
AcceptSignalAction createAcceptSignalAction()
AcceptTimeEventAction createAcceptTimeEventAction()
Activity createActivity()
ActivityDiagram createActivityDiagram(java.lang.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(java.lang.String name, NameSpace owner)
name
- The name of the Actor to be created.owner
- The NameSpace that will contain the Actor.Actor createActor(java.lang.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.Actor createActor(java.lang.String name, NameSpace owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
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.moduleName
- the module owning the Stereotype that will be refered by the Actor.stereotypeName
- the Stereotype that will be refered by the Actor.ExtensionNotFoundException
- if no stereotype matching the given name and the element metaclass is foundArtifact createArtifact()
Artifact createArtifact(java.lang.String name, NameSpace owner)
name
- The name of the Artifact to be created.owner
- The NameSpace that will contain the Artifact.Artifact createArtifact(java.lang.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.Artifact createArtifact(java.lang.String name, NameSpace owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
stereotype
argument. The
StereotypeNotFoundException
is thrown if the stereotype is not found.name
- Name of the Artifactowner
- The Owner of the ArtifactmoduleName
- the module owning the Stereotype that will be refered by the Artifact.stereotypeName
- the stereotype to add on the created Artifact or null if none.ExtensionNotFoundException
- if no type matching the given name and the element metaclass is foundAssociation createAssociation(Classifier source, Classifier destination, java.lang.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(java.lang.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(java.lang.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.Attribute createAttribute(java.lang.String name, GeneralClass type, Classifier owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
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.moduleName
- the module owning the Stereotype that will be refered by the Attribute.stereotypeName
- the name of the Stereotype that will be refered by the Attribute.ExtensionNotFoundException
- if no stereotype matching the given name and the element metaclass is foundAttributeLink createAttributeLink()
BehaviorParameter createBehaviorParameter()
BindableInstance createBindableInstance()
Binding createBinding()
BpmnActivity createBpmnActivity()
BpmnAdHocSubProcess createBpmnAdHocSubProcess()
BpmnAssociation createBpmnAssociation()
BpmnBoundaryEvent createBpmnBoundaryEvent()
BpmnBusinessRuleTask createBpmnBusinessRuleTask()
BpmnCallActivity createBpmnCallActivity()
BpmnCancelEventDefinition createBpmnCancelEventDefinition()
BpmnCollaboration createBpmnCollaboration()
BpmnCollaborationDiagram createBpmnCollaborationDiagram()
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()
BpmnProcessDesignDiagram createBpmnProcessDesignDiagram()
BpmnReceiveTask createBpmnReceiveTask()
BpmnResource createBpmnResource()
BpmnResourceParameter createBpmnResourceParameter()
BpmnResourceParameterBinding createBpmnResourceParameterBinding()
BpmnResourceRole createBpmnResourceRole()
BpmnScriptTask createBpmnScriptTask()
BpmnSendTask createBpmnSendTask()
BpmnSequenceFlow createBpmnSequenceFlow()
BpmnSequenceFlowDataAssociation createBpmnSequenceFlowDataAssociation()
BpmnServiceTask createBpmnServiceTask()
BpmnSharedDefinitions createBpmnSharedDefinitions()
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(java.lang.String name, NameSpace owner)
name
- the name of the Class to create.owner
- the NameSpace that will contain the Class.Class createClass(java.lang.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.Class createClass(java.lang.String name, NameSpace owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
name
- the name of the Class to create.owner
- the NameSpace that will contain the Class.moduleName
- the module owning the Stereotype that will be refered by the Class.stereotypeName
- the Stereotype to refer on the class.ExtensionNotFoundException
- if no stereotype matching the given name and the element metaclass is foundClassAssociation createClassAssociation()
ClassDiagram createClassDiagram(java.lang.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 DiagramClause createClause()
Collaboration createCollaboration()
CollaborationUse createCollaborationUse()
CombinedFragment createCombinedFragment()
CombinedFragment createCombinedFragment(InteractionOperator operator)
operator
- the operator of the CombinedFragment to create.CommunicationChannel createCommunicationChannel()
CommunicationDiagram createCommunicationDiagram(java.lang.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 DiagramCommunicationInteraction createCommunicationInteraction()
CommunicationMessage createCommunicationMessage()
CommunicationNode createCommunicationNode()
Component createComponent()
Component createComponent(java.lang.String name, NameSpace owner)
name
- the name of the Component to create.owner
- the NameSpace that will contain the Component.Component createComponent(java.lang.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.Component createComponent(java.lang.String name, NameSpace owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
name
- the name of the Component to create.owner
- the NameSpace that will contain the Component.moduleName
- the module owning the Stereotype that will be refered by the Actor.stereotypeName
- the Stereotype that will be refered by the Actor.ExtensionNotFoundException
CompositeStructureDiagram createCompositeStructureDiagram(java.lang.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 DiagramConditionalNode createConditionalNode()
ConnectionPointReference createConnectionPointReference()
Connector createConnector(BindableInstance source, BindableInstance destination, java.lang.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(java.lang.String name, NameSpace owner)
name
- the name of the DataType to create.owner
- the NameSpace that will contain the DataType.DataType createDataType(java.lang.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.DataType createDataType(java.lang.String name, NameSpace owner, java.lang.String moduleName, java.lang.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.Dependency createDependency(ModelElement source, ModelElement destination, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
DeploymentDiagram createDeploymentDiagram(java.lang.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 DiagramDiagramSet createDiagramSet()
Document createDocument()
Document
.
Call AbstractResource.createEmbeddedResource(String)
or AbstractResource.createExternalResource(String)
to initialize the Document content.
The created Document has no composition owner. In order to build a valid model, a composition owner must be defined.
The returned object is a Document representing the Document in the Model.
DurationConstraint createDurationConstraint()
MObject createElement(java.lang.String metaclassName, Element parentElement, java.lang.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.MObject createElement(java.lang.String metaclassName)
metaclassName
- the metaclass name.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()
Document createEmbeddedDocument(ResourceType type, ModelElement owner, java.lang.String mimeType) throws java.io.IOException
type
- the document role
of the document.owner
- the composition owner of the rich note.mimeType
- the MIME type of the document.Document
representing the document in the model.java.io.IOException
- in case of failure creating the file.Document createEmbeddedDocument(java.lang.String moduleName, java.lang.String documentRole, ModelElement owner, java.lang.String mimeType, java.nio.file.Path initialContent) throws ExtensionNotFoundException, java.io.IOException
The file content will be copied and embedded into the Modelio model. The passed file itself will never be used after this operation.
moduleName
- the name of the module owning the document role
.documentRole
- the name of the document role
played by the document.owner
- the composition owner of the document.mimeType
- the MIME type of the document.Document
representing the document in the model.ExtensionNotFoundException
- if no type matching the given name and the element metaclass is foundjava.io.IOException
- in case of failure creating the file.Document createEmbeddedDocument(java.lang.String moduleName, java.lang.String documentRole, ModelElement owner, java.lang.String mimeType) throws ExtensionNotFoundException, java.io.IOException
Call AbstractResource.createEmbeddedResource(String)
to initialize the Document
content.
moduleName
- the name of the module owning the document role
.documentRole
- the document role
played by the document.owner
- the composition owner of the document.mimeType
- the MIME type of the document.Document
representing the document in the model.ExtensionNotFoundException
- if no document role
matching the given name and the element metaclass is foundjava.io.IOException
- in case of failure creating the file.EntryPointPseudoState createEntryPointPseudoState()
EnumeratedPropertyType createEnumeratedPropertyType()
Enumeration createEnumeration()
Enumeration createEnumeration(java.lang.String name, NameSpace owner)
name
- the name of the Enumeration to create.owner
- the NameSpace that will contain the EnumerationEnumeration createEnumeration(java.lang.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.Enumeration createEnumeration(java.lang.String name, NameSpace owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
EnumerationLiteral createEnumerationLiteral()
EnumerationLiteral createEnumerationLiteral(java.lang.String name, Enumeration owner)
name
- the name of the EnumerationLiteral to create.owner
- the Enumeration that will contain the EnumerationLiteralEnumerationLiteral createEnumerationLiteral(java.lang.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.EnumerationLiteral createEnumerationLiteral(java.lang.String name, Enumeration owner, java.lang.String moduleName, java.lang.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 UseCaseDependencyExtensionNotFoundException
- if no stereotype matching the given name and the element metaclass is foundExtensionPoint createExtensionPoint()
@Deprecated Document createExternDocument()
createDocument()
Document
.
Call AbstractResource.createEmbeddedResource(String)
to initialize the Document content.
The created Document has no composition owner. In order to build a valid model, a composition owner must be defined.
The returned object is a Document representing the Document in the Model.
@Deprecated Document createExternDocument(java.lang.String moduleName, java.lang.String documentRole, ModelElement owner, java.lang.String mimeType) throws ExtensionNotFoundException, java.io.IOException
createEmbeddedDocument(String, String, ModelElement, String)
Call AbstractResource.createEmbeddedResource(String)
to initialize the document content.
moduleName
- the name of the module owning the note type.documentRole
- the role played by the document.owner
- the composition owner of the document.mimeType
- the MIME type of the document.Document
representing the document in the model.java.io.IOException
- in case of failure creating the file.ExtensionNotFoundException
- if no type matching the given name and the element metaclass is found@Deprecated Document createExternDocument(ResourceType role, ModelElement owner, java.lang.String mimeType) throws java.io.IOException
createEmbeddedDocument(String, String, ModelElement, String, Path)
.
Call AbstractResource.createEmbeddedResource(String)
to initialize the document content.
role
- document role
played by the document.owner
- the composition owner of the document.mimeType
- the MIME type of the document.Document
representing the document in the model.java.io.IOException
- in case of failure creating the file.@Deprecated Document createExternDocument(java.lang.String moduleName, java.lang.String documentRole, ModelElement owner, java.lang.String mimeType, java.nio.file.Path initialContent) throws ExtensionNotFoundException, java.io.IOException
createEmbeddedDocument(String, String, ModelElement, String, Path)
.ExtensionNotFoundException
java.io.IOException
ExternProcessor createExternProcessor()
ExternProcessor createExternProcessor(java.lang.String implementationClassName, java.lang.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(java.lang.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(java.lang.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(java.lang.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.Parameter createIOParameter(java.lang.String name, GeneralClass type, Operation owner, java.lang.String moduleName, java.lang.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(java.lang.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(java.lang.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(java.lang.String name, NameSpace owner)
name
- the name of the Interface to create.owner
- the NameSpace that will contain the Interface.Interface createInterface(java.lang.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.Interface createInterface(java.lang.String name, NameSpace owner, java.lang.String moduleName, java.lang.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(java.lang.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(java.lang.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, java.lang.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(java.lang.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(java.lang.String implementationClassName, java.lang.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(java.lang.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()
NaryAssociation createNaryAssociation()
NaryAssociation createNaryAssociation(java.util.List<Classifier> ends)
NaryAssociationEnd createNaryAssociationEnd()
NaryConnector createNaryConnector()
NaryConnector createNaryConnector(java.util.List<BindableInstance> ends)
NaryConnectorEnd createNaryConnectorEnd()
NaryLink createNaryLink()
NaryLinkEnd createNaryLinkEnd()
Node createNode()
Note createNote()
Note createNote(java.lang.String moduleName, java.lang.String noteType, ModelElement owner, java.lang.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.ExtensionNotFoundException
- if no type matching the given name and the element metaclass is foundNote createNote(NoteType noteType, ModelElement owner, java.lang.String content)
noteType
- the type of the Note.owner
- the composition owner of the Note.content
- the text of the Note.ObjectDiagram createObjectDiagram(java.lang.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 DiagramObjectFlow createObjectFlow()
OpaqueAction createOpaqueAction()
OpaqueBehavior createOpaqueBehavior()
Operation createOperation()
Operation createOperation(java.lang.String name, Classifier owner)
name
- the name of the Operation to create.owner
- the Classifier that will contain the Operation.Operation createOperation(java.lang.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.Operation createOperation(java.lang.String name, Classifier owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
OutputPin createOutputPin()
Package createPackage()
Package createPackage(java.lang.String name, NameSpace owner)
name
- the name of the Package to create.owner
- the NameSpace that will contain the Package.Package createPackage(java.lang.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.Package createPackage(java.lang.String name, NameSpace owner, java.lang.String moduleName, java.lang.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(java.lang.String name, Instance owner)
name
- The name of the Port to create.owner
- The Instance that will contain the Port.Port createPort(java.lang.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, java.util.List<Interface> interfaces)
owner
- the Port that contains the ProvidedInterface.interfaces
- the provided InterfacesQueryDefinition createQueryDefinition()
QueryDefinition createQueryDefinition(java.lang.String implementationClassName, java.lang.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, java.util.List<Interface> interfaces)
owner
- the Port that contains the RequiredInterface.interfaces
- the required InterfacesParameter createReturnParameter(java.lang.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(java.lang.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.Parameter createReturnParameter(java.lang.String name, GeneralClass type, Operation owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
SendSignalAction createSendSignalAction()
SequenceDiagram createSequenceDiagram()
ShallowHistoryPseudoState createShallowHistoryPseudoState()
Signal createSignal()
State createState()
StateInvariant createStateInvariant()
StateInvariant createStateInvariant(java.lang.String body)
body
- the body of the StateInvariant to create.StateMachine createStateMachine()
StateMachineDiagram createStateMachineDiagram(java.lang.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 DiagramStaticDiagram createStaticDiagram(java.lang.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 DiagramStaticDiagram createStaticDiagram(java.lang.String name, ModelElement owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
StructuredActivityNode createStructuredActivityNode()
Substitution createSubstitution()
TagParameter createTagParameter()
TagParameter createTagParameter(java.lang.String value, TaggedValue owner)
value
- the value of the tag parameter.owner
- the owner tagged value of the tag parameter.TaggedValue createTaggedValue()
TaggedValue createTaggedValue(java.lang.String moduleName, java.lang.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.ExtensionNotFoundException
- if no tag type matching the given name and the element metaclass is foundTaggedValue createTaggedValue(TagType tagType, ModelElement owner)
tagType
- the type of the TaggedValue.owner
- the ModelElement that contains the Taggedvalue.TemplateBinding 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(java.lang.String name, NameSpace owner)
name
- the name of the UseCase to create.owner
- the NameSpace that will contain the Usecase.UseCase createUseCase(java.lang.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.UseCase createUseCase(java.lang.String name, NameSpace owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException
UseCaseDependency createUseCaseDependency()
UseCaseDiagram createUseCaseDiagram(java.lang.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 DiagramValuePin createValuePin()
IDefaultNameService getDefaultNameService()
java.util.List<MObject> getLibraryRoots()
Component
or AbstractProject
.java.util.List<MObject> getModelRoots()
AbstractProject
.MObject getRoot(MObject context)
AbstractProject
.context
- context The fragment contextIUMLTypes getUmlTypes()
ExternElement createExternElement()
ExternElement createExternElement(java.lang.String name, MethodologicalLink owner, Stereotype stereotype)
name
- the name of the ExternElement to create.owner
- the MethodologicalLink that will contain the ExternElement.stereotype
- the Stereotype to refer on the externElement.ExternElement createExternElement(java.lang.String name, MethodologicalLink owner, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
name
- the name of the ExternElement to create.owner
- the MethodologicalLink that will contain the ExternElement.moduleName
- the module owning the Stereotype that will be refered by the ExternElement.stereotypeName
- the Stereotype to refer on the externElement.ExtensionNotFoundException
- if no stereotype matching the given name and the element metaclass is foundMethodologicalLink createMethodologicalLink()
MethodologicalLink createMethodologicalLink(ModelElement source, ModelElement destination, Stereotype stereotype)
source
- the origin of the methodologicalLink.destination
- the destination of the methodologicalLink.stereotype
- the Stereotype that extends the methodologicalLink.MethodologicalLink createMethodologicalLink(ModelElement source, ModelElement destination, java.lang.String moduleName, java.lang.String stereotypeName) throws ExtensionNotFoundException
ExtensionNotFoundException