Class XsdTreeNodeUtil

java.lang.Object
org.opentrafficsim.editor.XsdTreeNodeUtil

public final class XsdTreeNodeUtil extends Object
This class exists to keep XsdTreeNode at manageable size. It houses all static methods used in XsdTreeNode.

Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
  • Method Details

    • fireCreatedEventOnExistingNodes

      protected static void fireCreatedEventOnExistingNodes(XsdTreeNode node, EventListener listener) throws RemoteException
      Recursively throws creation event on specific listener for all current nodes in the tree. This method is for XsdTreeNodeRoot.
      Parameters:
      node - node.
      listener - listener.
      Throws:
      RemoteException - if event cannot be fired.
    • valuesAreEqual

      public static boolean valuesAreEqual(String value1, String value2)
      Returns whether the two values are equal, where null is considered equal to an empty string.
      Parameters:
      value1 - value 1.
      value2 - value 2.
      Returns:
      whether the two values are equal, where null is considered equal to an empty string.