Class Flows
java.lang.Object
com.dassault_systemes.modeler.kerml.model.Flows
Utility class to work with
Flow-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureReturns the first owned feature of the given flow end.static FeatureReturns the redefined feature of the given flow end.static FeatureReturns the redefined source output feature of the flow.static FeatureReturns the redefined target input feature of the flow.static FeaturegetSourceFlowEnd(Flow flow) Returns the source end feature of the given flow.static FeaturegetTargetFlowEnd(Flow flow) Returns the target end feature of the given flow.static booleanChecks whether the given feature is a flow end.static booleanChecks whether the flow represents a message.static voidConverts full flow notation to shorthand notation for all end features.static voidConverts shorthand flow notation to full notation for all end features.static voidsetRedefinedFeature(int endIndex, Flow flow, Feature feature) Sets or clears the redefined feature for the given flow end.static booleansetRedefinedSourceOutputFeature(Flow flow, Feature feature) Sets the redefined source output feature of the flow.static booleansetRedefinedTargetInputFeature(Flow flow, Feature feature) Sets the redefined target input feature of the flow.
-
Constructor Details
-
Flows
public Flows()
-
-
Method Details
-
getSourceFlowEnd
Returns the source end feature of the given flow.- Parameters:
flow- the flow- Returns:
- source flow end, or null if not present
-
getTargetFlowEnd
Returns the target end feature of the given flow.- Parameters:
flow- the flow- Returns:
- target flow end, or null if not present
-
getFirstOwnedFeature
Returns the first owned feature of the given flow end.- Parameters:
end- the flow end- Returns:
- first owned feature, or null
-
getRedefinedFeature
Returns the redefined feature of the given flow end.- Parameters:
end- the flow end- Returns:
- redefined feature, or null
-
setRedefinedSourceOutputFeature
Sets the redefined source output feature of the flow.- Parameters:
flow- the flowfeature- feature to redefine to, or null- Returns:
- always true
-
getRedefinedSourceOutputFeature
Returns the redefined source output feature of the flow.- Parameters:
flow- the flow- Returns:
- redefined feature, or null
-
setRedefinedTargetInputFeature
Sets the redefined target input feature of the flow.- Parameters:
flow- the flowfeature- feature to redefine to, or null- Returns:
- always true
-
getRedefinedTargetInputFeature
Returns the redefined target input feature of the flow.- Parameters:
flow- the flow- Returns:
- redefined feature, or null
-
setRedefinedFeature
Sets or clears the redefined feature for the given flow end.- Parameters:
endIndex- index of the flow endflow- the flowfeature- feature to redefine to, or null to remove
-
isMessage
Checks whether the flow represents a message.- Parameters:
type- the flow- Returns:
- true if the flow has no end features
-
isFlowEnd
Checks whether the given feature is a flow end.- Parameters:
feature- the feature- Returns:
- true if the feature is a flow end
-
refactorFromShorthandNotationToFullNotation
Converts shorthand flow notation to full notation for all end features.- Parameters:
flow- the flow
-
refactorFromFullNotationToShorthandNotation
Converts full flow notation to shorthand notation for all end features.- Parameters:
flow- the flow
-