Package org.opentrafficsim.editor
Class XsdTreeNodeUtil
java.lang.Object
org.opentrafficsim.editor.XsdTreeNodeUtil
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 Summary
Modifier and TypeMethodDescriptionprotected static voidfireCreatedEventOnExistingNodes(XsdTreeNode node, EventListener listener) Recursively throws creation event on specific listener for all current nodes in the tree.static booleanvaluesAreEqual(String value1, String value2) Returns whether the two values are equal, wherenullis considered equal to an empty string.
-
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 forXsdTreeNodeRoot.- Parameters:
node- node.listener- listener.- Throws:
RemoteException- if event cannot be fired.
-
valuesAreEqual
Returns whether the two values are equal, wherenullis considered equal to an empty string.- Parameters:
value1- value 1.value2- value 2.- Returns:
- whether the two values are equal, where
nullis considered equal to an empty string.
-