Boolean indicating if this rule applies to the source or target terminal.
Type of the source or target terminal that this rule applies to. See type for more information.
Optional attribute name to match the source or target terminal.
Optional attribute value to match the source or target terminal.
Minimum number of edges for this rule. Default is 1.
Maximum number of edges for this rule. n means infinite. Default is n.
Array of types of the opposite terminal for which this rule applies.
Error to be displayed for invalid number of edges.
Error to be displayed for invalid opposite terminals.
Optional boolean indicating if the array of opposite types should be valid or invalid.
Optional string that specifies the attributename to be passed to mxUtils.isNode to check if the rule applies to a cell.
Defines the maximum number of connections for which this rule applies. A value of 'n' means unlimited times.
Defines the minimum number of connections for which this rule applies.
Boolean that specifies if the rule is applied to the source or target terminal of an edge.
Defines the type of the source or target terminal. The type is a string passed to mxUtils.isNode together with the source or target vertex value as the first argument.
Holds the localized error message to be displayed if the type of the neighbor for a connection does not match the rule.
Holds an array of strings that specify the type of neighbor for which this rule applies. The strings are used in {@link mxCell.is} on the opposite terminal to check if the rule applies to the connection.
Boolean indicating if the list of validNeighbors are those that are allowed for this rule or those that are not allowed for this rule.
Optional string that specifies the value of the attribute to be passed to mxUtils.isNode to check if the rule applies to a cell.
Checks the multiplicity for the given arguments and returns the error for the given connection or null if the multiplicity does not apply.
Reference to the enclosing mxGraph instance.
mxCell that represents the edge to validate.
mxCell that represents the source terminal.
mxCell that represents the target terminal.
Number of outgoing edges from the source terminal.
Number of incoming edges for the target terminal.
Checks if there are any valid neighbours in validNeighbors. This is only called if validNeighbors is a non-empty array.
Checks the type of the given value.
Generated using TypeDoc
Defines a rule where each rectangle must be connected to no more than 2 circles and no other types of targets are allowed.