Interface BPDiaViewNode
-
- All Superinterfaces:
ADClientAble,ADM2AttrModifyAble,ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELObject,ELUUIDAble,MMFormatAble,PRDiaNode,PRPresContent,PRPresElement
- All Known Subinterfaces:
BPDiaChoreographyViewNode,BPDiaCollaborationViewNode,BPDiaProcessViewNode
public interface BPDiaViewNode extends PRDiaNode
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 Modifier and Type Interface Description static classBPDiaViewNode.VAttr
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbecomeMasterView()voidbecomeRegularView()voidbecomeSynchronizedView()voidcorrectExistingViewContent()Makes this view a correct but not necessarily complete copy of the current master view.java.util.List<PRDiaNote>getCommentNodeOfView(K_CONTROL_OPTION... behaviourFlags)BPDiagetDiagramOfView()<T extends MEModelElement>
java.util.List<T>getMissingElement(java.lang.Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)Returns all model elements missing in this view.<T extends MEModelElement>
java.util.List<T>getMissingElement(java.lang.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>
java.util.List<T>getOwnedArtifactNode(java.lang.Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)AllBPDiaArtifactNodeowned by theBPDiaViewNode.java.util.List<PRDiaCalloutNode>getOwnedCalloutNode(K_CONTROL_OPTION... behaviourFlags)All callout nodes owned by this view node.java.util.List<BPDiaMessageNode>getOwnedMessageNode(K_CONTROL_OPTION... behaviourFlags)All message nodes in the view node.<T extends PRPresContent>
java.util.List<T>getOwnedViewElementTransitiveDownByOrder(java.lang.Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)All presentation elements in this view.BPDiagetOwningDia()TheBPDiaof the element.BPPathgetPath()BPPathgetPathDisplayed()java.util.List<BPPath>getPossiblePath(K_CONTROL_OPTION... behaviourFlags)All paths eligible for visualization in this context.java.util.List<BPPath>getPossiblePath(MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags)The method calls getPossiblePath and filters its return values according to the given stereotype value.<T extends PRPresContent>
java.util.List<T>getPresentationInView(java.lang.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.booleanisCompletelyMaintained()Returns TRUE if all model elements contained in the element being displayed by the view have a presentation element.booleanisCorrect()Returns true if the hierarchy of the model elements is displayed correctly.booleanisCorrectAndComplete()Returns true if the view is considered to be correct and complete.booleanisInMasterViewNode()booleanisMasterView()Returns true if the view is the master view, which means it is the definition of either a process or an interaction specification.booleanisSyncedCopy()True if it is a reference and if the reference always contains a complete and correct copy of the defining view.booleanisVisibleAndSelectable()True if the view is either top-level or nested inside of nodes which are expanded.ARG_BPDiaMasterDiaWithViewmoveMasterToNewDiagram()voidrebuildExactlyFromMasterView()Makes this view a perfect copy of the current master view.ARG_BPDiaMasterDiaWithViewremoveMasterMoveToNewDiagram()voidsetPathDisplayed(BPPath value)Set the value of View PathDisplayed.voidtoggleOrientation()Switches 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, getStartAnalysisDia
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRowList, getTabElementRowTypeList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModify
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContents
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwner
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
delete
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnit
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasRead
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUID
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMFormatAble
copyFormatDlg, copyFormatRule, getCopyFormatDlgInit, getFormat
-
Methods 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, setSize
-
Methods inherited from interface de.mid.innovator.srv2api.icw2pres.PRPresContent
getIncoming, getMEModelElement, getModelContainer, getOutgoing, getOwnedPresContent, getOwningPresContent, getOwningPresContext, getOwningPresElement, getPresentationLevel, getTextPosition, getTextSize, setPresentationLevel, setTextCoord, setTextPosition, setTextSize
-
Methods inherited from interface de.mid.innovator.srv2api.icw2pres.PRPresElement
getOpacity, getOwnedPresContentElement, getPresColor, getPresentationOfLogic, setOpacity, setPresColor
-
-
-
-
Method Detail
-
isMasterView
boolean isMasterView() throws InoNetException, SrvErrorExceptionReturns 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
boolean isCorrectAndComplete() throws InoNetException, SrvErrorExceptionReturns 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
boolean isCompletelyMaintained() throws InoNetException, SrvErrorExceptionReturns TRUE if all model elements contained in the element being displayed by the view have a presentation element.- Throws:
InoNetExceptionSrvErrorException
-
isInMasterViewNode
boolean isInMasterViewNode() throws InoNetException, SrvErrorExceptionTrue 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
boolean isCorrect() throws InoNetException, SrvErrorExceptionReturns 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
boolean isSyncedCopy() throws InoNetException, SrvErrorExceptionTrue if it is a reference and if the reference always contains a complete and correct copy of the defining view.- Throws:
InoNetExceptionSrvErrorException
-
isVisibleAndSelectable
boolean isVisibleAndSelectable() throws InoNetException, SrvErrorExceptionTrue 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> java.util.List<T> getPresentationInView(java.lang.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> java.util.List<T> getMissingElement(java.lang.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> java.util.List<T> getMissingElement(java.lang.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
java.util.List<BPPath> getPossiblePath(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException
All paths eligible for visualization in this context.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getPossiblePath
java.util.List<BPPath> getPossiblePath(MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException
The method calls getPossiblePath and filters its return values according to the given stereotype value.- Parameters:
stereotype- The stereotype used to filter the result listbehaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getPathDisplayed
BPPath getPathDisplayed() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
setPathDisplayed
void setPathDisplayed(BPPath value) throws InoNetException, SrvErrorException
Set the value of View PathDisplayed.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getCommentNodeOfView
java.util.List<PRDiaNote> getCommentNodeOfView(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException
- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getOwnedViewElementTransitiveDownByOrder
<T extends PRPresContent> java.util.List<T> getOwnedViewElementTransitiveDownByOrder(java.lang.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
void becomeMasterView() throws InoNetException, SrvErrorExceptionDeclare 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
void becomeRegularView() throws InoNetException, SrvErrorExceptionDeclare 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
void becomeSynchronizedView() throws InoNetException, SrvErrorExceptionDeclare 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
void correctExistingViewContent() throws InoNetException, SrvErrorExceptionMakes this view a correct but not necessarily complete copy of the current master view.- Throws:
InoNetExceptionSrvErrorException
-
moveMasterToNewDiagram
ARG_BPDiaMasterDiaWithView moveMasterToNewDiagram() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
rebuildExactlyFromMasterView
void rebuildExactlyFromMasterView() throws InoNetException, SrvErrorExceptionMakes this view a perfect copy of the current master view.- Throws:
InoNetExceptionSrvErrorException
-
removeMasterMoveToNewDiagram
ARG_BPDiaMasterDiaWithView removeMasterMoveToNewDiagram() throws InoNetException, SrvErrorException
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
void toggleOrientation() throws InoNetException, SrvErrorExceptionSwitches the current orientation to the other one - from vertical to horizontal and vice versa. This is allowed for master views only.- Throws:
InoNetExceptionSrvErrorException
-
getDiagramOfView
BPDia getDiagramOfView() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
getOwnedMessageNode
java.util.List<BPDiaMessageNode> getOwnedMessageNode(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException
All message nodes in the view node.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getOwnedArtifactNode
<T extends BPDiaArtifactNode> java.util.List<T> getOwnedArtifactNode(java.lang.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
java.util.List<PRDiaCalloutNode> getOwnedCalloutNode(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException
All callout nodes owned by this view node.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getPath
BPPath getPath() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
getOwningDia
BPDia getOwningDia() throws InoNetException, SrvErrorException
TheBPDiaof the element.- Throws:
InoNetExceptionSrvErrorException
-
-