Documentation of 'com.mxgraph.view.mxMultiplicity' Java class
mxMultiplicity
com.mxgraph.view

Class 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.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.
      boolean checkNeighbors(mxGraph graph, java.lang.Object edge, java.lang.Object source, java.lang.Object target)
      Checks the type of the given value.
      boolean checkTerminal(mxGraph graph, java.lang.Object terminal, java.lang.Object edge)
      Checks the type of the given value.
      boolean checkType(mxGraph graph, java.lang.Object value, java.lang.String type)
      Checks the type of the given value.
      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.
      int getMaxValue()
      Returns the numeric value of max.
      boolean isUnlimited()
      Returns true if max is "n" (unlimited).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

You see the box below because you did not login.