Class CustomUtils

java.lang.Object
org.jibx.custom.CustomUtils

public class CustomUtils extends Object
Support methods used by customization code.
Author:
Dennis M. Sosnoski
  • Constructor Details

    • CustomUtils

      public CustomUtils()
  • Method Details

    • addNoCaseSet

      public static Set addNoCaseSet(String[] names, Set set)
      Utility method to add an array of names to a set, ignoring case. All the supplied names are converted to lower case before they are added to the set.
      Parameters:
      names - (null if none)
      set - base set of names (null if none)
      Returns:
      name set (null if none)
    • noCaseNameSet

      public static Set noCaseNameSet(String[] names)
      Utility method to build a set from an array of names, ignoring case. All the supplied names are converted to lower case before they are added to the set.
      Parameters:
      names - (null if none)
      Returns:
      name set (null if name array also null, otherwise non-null)
    • nameSet

      public static Set nameSet(String[] names)
      Utility method to build a set from an array of names.
      Parameters:
      names - (null if none)
      Returns:
      name set (null if name array also null, otherwise non-null)
    • clean

      public static void clean(File dir)
      Clean directory by recursively deleting children.
      Parameters:
      dir - directory to be cleaned