Interface BPDiaViewNode
- All Superinterfaces:
ADClientAble,ADM2AttrModifyAble,ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELObject,ELUUIDAble,MMFormatAble,PRDiaNode,PRPresContent,PRPresElement
- All Known Subinterfaces:
BPDiaCollaborationViewNode,BPDiaProcessViewNode
This is a utility class for BPDiaViewNode that provides static methods for creation or other purposes.
- Note:
- The interface BPDiaViewNode describes an abstract ability of an object. Therefore no instances of this type can be found in the repository!
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidMakes this view a correct but not necessarily complete copy of the current master view.<T extends MEModelElement>
List<T> getMissingElement(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) Returns all model elements missing in this view.<T extends MEModelElement>
List<T> getMissingElement(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) The method calls getMissingElement and filters its return values according to the given stereotype value.<T extends BPDiaArtifactNode>
List<T> getOwnedArtifactNode(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) AllBPDiaArtifactNodeowned by theBPDiaViewNode.All callout nodes owned by this view node.<T extends PRPresContent>
List<T> getOwnedViewElementTransitiveDownByOrder(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) All presentation elements in this view.TheBPDiaof the element.getPath()All paths eligible for visualization in this context.getPossiblePath(MMStereotype stereotype) The method calls getPossiblePath and filters its return values according to the given stereotype value.<T extends PRPresContent>
List<T> getPresentationInView(Class<T> returnType, MEModelElement refObj, K_CONTROL_OPTION... behaviourFlags) All presentation contents of this view which are connected to the model element specified byargument refObjand which do not belong to another view nested into this one.booleanReturns TRUE if all model elements contained in the element being displayed by the view have a presentation element.booleanReturns true if the hierarchy of the model elements is displayed correctly.booleanReturns true if the view is considered to be correct and complete.booleanbooleanReturns true if the view is the master view, which means it is the definition of either a process or an interaction specification.booleanTrue if it is a reference and if the reference always contains a complete and correct copy of the defining view.booleanTrue if the view is either top-level or nested inside of nodes which are expanded.voidMakes this view a perfect copy of the current master view.voidsetPathDisplayed(BPPath value) Set the value of View PathDisplayed.voidSwitches the current orientation to the other one - from vertical to horizontal and vice versa.Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADClientAble
getAnnotation, getEndAnalysisDia, getLogic, getLogic, getPresentationContext, getSection, getStartAnalysisDiaMethods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRelshipTypeList, getTabElementRowList, getTabElementRowTypeList, getTabRelshipList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModifyMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContentsMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwnerMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
deleteMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getNotificationElement, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnitMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasReadMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getInnoRef, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUIDMethods inherited from interface de.mid.innovator.srv2api.icw2meta.MMFormatAble
copyFormatDlg, copyFormatRule, getCopyFormatDlgInit, getFormatMethods inherited from interface de.mid.innovator.srv2api.icw2pres.PRDiaNode
collapse, expand, getDiagram, getExpandedNodeRoot, getExpandedPresContext, getOnFramePositionSpecification, getOrientation, getOwningFrameNode, getPosition, getPositionAbsolute, getPresContainer, getSize, getTextPositionAbsolute, getXClientNode, hasEmbeddedContent, isExpanded, setCoord, setEmbeddedContent, setPosition, setSizeMethods inherited from interface de.mid.innovator.srv2api.icw2pres.PRPresContent
getIncoming, getMEModelElement, getModelContainer, getOutgoing, getOwnedPresContent, getOwningPresContent, getOwningPresContext, getOwningPresElement, getPresentationLevel, getTextHorizontalAlignment, getTextPosition, getTextSize, getTextVerticalAlignment, setPresentationLevel, setTextCoord, setTextHorizontalAlignment, setTextPosition, setTextSize, setTextVerticalAlignmentMethods inherited from interface de.mid.innovator.srv2api.icw2pres.PRPresElement
getDiagramTagValue, getOpacity, getOwnedDiagramTags, getOwnedPresContentElement, getPresColor, getPresentationOfLogic, setDiagramTagValue, setOpacity, setPresColor
-
Method Details
-
isMasterView
Returns true if the view is the master view, which means it is the definition of either a process or an interaction specification.- Throws:
InoNetExceptionSrvErrorException
-
isCorrectAndComplete
Returns true if the view is considered to be correct and complete. Either it is the definition itself or it differs from the definition by mere graphical details.- Throws:
InoNetExceptionSrvErrorException
-
isCompletelyMaintained
Returns TRUE if all model elements contained in the element being displayed by the view have a presentation element.- Throws:
InoNetExceptionSrvErrorException
-
isInMasterViewNode
True if the view node IS a master view node itself. This stands in contrast to the other nodes which return if they are inside a master view node. Since this information is used to determine if a node shall be considered for the reorganization of the logical information according to the graphical information, the info shall be available for all nodes including the view nodes. They shall be considered if they are masters themselves.- Throws:
InoNetExceptionSrvErrorException
-
isCorrect
Returns true if the hierarchy of the model elements is displayed correctly. There may be missing model elements but if they are displayed, they have to be displayed with their correct owners.- Throws:
InoNetExceptionSrvErrorException
-
isSyncedCopy
True if it is a reference and if the reference always contains a complete and correct copy of the defining view.- Throws:
InoNetExceptionSrvErrorException
-
isVisibleAndSelectable
True if the view is either top-level or nested inside of nodes which are expanded. If just the graphical display of the view is embedded in a node this does not count as physical presence.- Throws:
InoNetExceptionSrvErrorException
-
getPresentationInView
<T extends PRPresContent> List<T> getPresentationInView(Class<T> returnType, MEModelElement refObj, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException All presentation contents of this view which are connected to the model element specified byargument refObjand which do not belong to another view nested into this one.- Parameters:
returnType- Specifies the type of elements to be returned.refObj- A further instance of type MEModelElement which is used to control the behaviour of the method. (see description above)behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getMissingElement
<T extends MEModelElement> List<T> getMissingElement(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException Returns all model elements missing in this view. For the definition the list returned must be empty.- Parameters:
returnType- Specifies the type of elements to be returned.behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getMissingElement
<T extends MEModelElement> List<T> getMissingElement(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException The method calls getMissingElement and filters its return values according to the given stereotype value.- Parameters:
returnType- Specifies the type of elements to be returned.stereotype- The stereotype used to filter the result listbehaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getPossiblePath
All paths eligible for visualization in this context.- Throws:
InoNetExceptionSrvErrorException
-
getPossiblePath
The method calls getPossiblePath and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result list- Throws:
InoNetExceptionSrvErrorException
-
getPathDisplayed
- Throws:
InoNetExceptionSrvErrorException
-
setPathDisplayed
Set the value of View PathDisplayed.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getCommentNodeOfView
- Throws:
InoNetExceptionSrvErrorException
-
getOwnedViewElementTransitiveDownByOrder
<T extends PRPresContent> List<T> getOwnedViewElementTransitiveDownByOrder(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException All presentation elements in this view. The presentation elements are retrieved transitively but other views and their contents are excluded. The presentation elements may be returned sorted by their internal sorting order which can be set via API functions.- Parameters:
returnType- Specifies the type of elements to be returned.behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
-
becomeMasterView
Declare this view to be the one and only master view. The current master view will become a normal view, but before this view checks if it is complete and if it is not, it copies the current master view exactly.- Throws:
InoNetExceptionSrvErrorException
-
becomeRegularView
Declare this view to be a reference to the master view which is allowed only if it is not the master view. This command is meant to change a synchronized view to be a regular view. If it is called for a regular view it has not effect.- Throws:
InoNetExceptionSrvErrorException
-
becomeSynchronizedView
Declare this view to be an exact reference to the master view. The master view will be displayed here and the content displayed will be the same content as that inside the master view. Hence, the current view is just an empty node which pretends to contain the content of the master view but in fact displays the content of the one and only master view. If the command is called for a synchronized view it has not effect.- Throws:
InoNetExceptionSrvErrorException
-
correctExistingViewContent
Makes this view a correct but not necessarily complete copy of the current master view.- Throws:
InoNetExceptionSrvErrorException
-
moveMasterToNewDiagram
- Throws:
InoNetExceptionSrvErrorException
-
rebuildExactlyFromMasterView
Makes this view a perfect copy of the current master view.- Throws:
InoNetExceptionSrvErrorException
-
removeMasterMoveToNewDiagram
Creates a new diagram of the same stereotype the diagram of the view to be moved has. Moves the view to the new diagram by simply changing its owner, hence it is removed from the current diagram and assigned to the new diagram.- Throws:
InoNetExceptionSrvErrorException
-
toggleOrientation
Switches the current orientation to the other one - from vertical to horizontal and vice versa. This is allowed for master views only.- Throws:
InoNetExceptionSrvErrorException
-
getDiagramOfView
- Throws:
InoNetExceptionSrvErrorException
-
getOwnedArtifactNode
<T extends BPDiaArtifactNode> List<T> getOwnedArtifactNode(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException AllBPDiaArtifactNodeowned by theBPDiaViewNode.- Parameters:
returnType- Specifies the type of elements to be returned.behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getOwnedCalloutNode
All callout nodes owned by this view node.- Throws:
InoNetExceptionSrvErrorException
-
getPath
- Throws:
InoNetExceptionSrvErrorException
-
getOwningDia
TheBPDiaof the element.- Throws:
InoNetExceptionSrvErrorException
-