com.mxgraph.view
Class mxMultiplicity
- java.lang.Object
-
- com.mxgraph.view.mxMultiplicity
-
public class mxMultiplicity extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description mxMultiplicity(boolean source, java.lang.String type, java.lang.String attr, java.lang.String value, int min, java.lang.String max, java.util.Collection<java.lang.String> validNeighbors, java.lang.String countError, java.lang.String typeError, boolean validNeighborsAllowed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Stringcheck(mxGraph graph, java.lang.Object edge, java.lang.Object source, java.lang.Object target, int sourceOut, int targetIn)Function: check Checks the multiplicity for the given arguments and returns the error for the given connection or null if the multiplicity does not apply.booleancheckNeighbors(mxGraph graph, java.lang.Object edge, java.lang.Object source, java.lang.Object target)Checks the type of the given value.booleancheckTerminal(mxGraph graph, java.lang.Object terminal, java.lang.Object edge)Checks the type of the given value.booleancheckType(mxGraph graph, java.lang.Object value, java.lang.String type)Checks the type of the given value.booleancheckType(mxGraph graph, java.lang.Object value, java.lang.String type, java.lang.String attr, java.lang.String attrValue)Checks the type of the given value.intgetMaxValue()Returns the numeric value of max.booleanisUnlimited()Returns true if max is "n" (unlimited).
-
-
-
Constructor Detail
-
mxMultiplicity
public mxMultiplicity(boolean source, java.lang.String type, java.lang.String attr, java.lang.String value, int min, java.lang.String max, java.util.Collection<java.lang.String> validNeighbors, java.lang.String countError, java.lang.String typeError, boolean validNeighborsAllowed)
-
-
Method Detail
-
check
public java.lang.String check(mxGraph graph, java.lang.Object edge, java.lang.Object source, java.lang.Object target, int sourceOut, int targetIn)
Function: check Checks the multiplicity for the given arguments and returns the error for the given connection or null if the multiplicity does not apply. Parameters: graph - Reference to the enclosing graph instance. edge - Cell that represents the edge to validate. source - Cell that represents the source terminal. target - Cell that represents the target terminal. sourceOut - Number of outgoing edges from the source terminal. targetIn - Number of incoming edges for the target terminal.
-
checkNeighbors
public boolean checkNeighbors(mxGraph graph, java.lang.Object edge, java.lang.Object source, java.lang.Object target)
Checks the type of the given value.
-
checkTerminal
public boolean checkTerminal(mxGraph graph, java.lang.Object terminal, java.lang.Object edge)
Checks the type of the given value.
-
checkType
public boolean checkType(mxGraph graph, java.lang.Object value, java.lang.String type)
Checks the type of the given value.
-
checkType
public boolean checkType(mxGraph graph, java.lang.Object value, java.lang.String type, java.lang.String attr, java.lang.String attrValue)
Checks the type of the given value.
-
isUnlimited
public boolean isUnlimited()
Returns true if max is "n" (unlimited).
-
getMaxValue
public int getMaxValue()
Returns the numeric value of max.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG