Class CaseRelation
- java.lang.Object
-
- com._1c.g5.v8.dt.diagram.framework.model.Relation
-
- com._1c.g5.v8.dt.bp.scheme.framework.model.BpRelation
-
- com._1c.g5.v8.dt.bp.scheme.framework.model.CaseRelation
-
- All Implemented Interfaces:
com._1c.g5.v8.dt.diagram.framework.IRelation
public class CaseRelation extends BpRelation
Instance of this class represents case relation. source should beGraphicalSchemeItemType.SWITCH
entity. Relation has associated case.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bp.scheme.framework.model.BpRelation
DEFAULT_SOURCE_ANCHOR_POSITION, DEFAULT_TARGET_ANCHOR_POSITION
-
-
Constructor Summary
Constructors Constructor Description CaseRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, SwitchCase associatedCase, GraphicalSchemeConnection modelObject)
Constructor.CaseRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, String name, SwitchCase associatedCase)
Constructor.CaseRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, String name, SwitchCase associatedCase, int sourceAnchorPosition, int targetAnchorPosition)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwitchCase
getAssociatedCase()
Returns associated with this relation case.-
Methods inherited from class com._1c.g5.v8.dt.bp.scheme.framework.model.BpRelation
equals, getInitialSourceAnchorPosition, getInitialTargetAnchorPosition, getModelObject, getModelObjectId, getName, hashCode, isDecorative, setDecorative, setModelObjectId, setName
-
-
-
-
Constructor Detail
-
CaseRelation
public CaseRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, String name, SwitchCase associatedCase)
Constructor.- Parameters:
source
- - source. Should beGraphicalSchemeItemType.SWITCH
type. Can't benull
.target
- - target. Can't benull
.name
- - relation name. Can't benull
.associatedCase
- - associated with this relation case. Can't benull
.
-
CaseRelation
public CaseRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, SwitchCase associatedCase, GraphicalSchemeConnection modelObject)
Constructor.- Parameters:
source
- - source. Should beGraphicalSchemeItemType.SWITCH
type. Can't benull
.target
- - target. Can't benull
.associatedCase
- - associated with this relation case. Can't benull
.modelObject
- - associated with this relation model object. Can't benull
.
-
CaseRelation
public CaseRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, String name, SwitchCase associatedCase, int sourceAnchorPosition, int targetAnchorPosition)
Constructor.- Parameters:
source
- - source. Should beGraphicalSchemeItemType.CONDITION
type. Can't benull
.target
- - target. Can't benull
.name
- - relation name. Can't benull
.associatedCase
- - associated with this relation case. Can't benull
.sourceAnchorPosition
- - source anchor position.targetAnchorPosition
- - target anchor position.- See Also:
IAnchorTypes.TOP
,IAnchorTypes.BOTTOM
,IAnchorTypes.LEFT
,IAnchorTypes.RIGHT
-
-
Method Detail
-
getAssociatedCase
public SwitchCase getAssociatedCase()
Returns associated with this relation case.- Returns:
- associated with this relation case. Can't return
null
.
-
-