Class 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 be GraphicalSchemeItemType.SWITCH entity. Relation has associated case.
    • 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 be GraphicalSchemeItemType.SWITCH type. Can't be null.
        target - - target. Can't be null.
        name - - relation name. Can't be null.
        associatedCase - - associated with this relation case. Can't be null.
      • 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 be GraphicalSchemeItemType.SWITCH type. Can't be null.
        target - - target. Can't be null.
        associatedCase - - associated with this relation case. Can't be null.
        modelObject - - associated with this relation model object. Can't be null.
      • 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 be GraphicalSchemeItemType.CONDITION type. Can't be null.
        target - - target. Can't be null.
        name - - relation name. Can't be null.
        associatedCase - - associated with this relation case. Can't be null.
        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.