Package org.jibx.custom
Class CustomUtils
- java.lang.Object
-
- org.jibx.custom.CustomUtils
-
public class CustomUtils extends java.lang.ObjectSupport methods used by customization code.- Author:
- Dennis M. Sosnoski
-
-
Constructor Summary
Constructors Constructor Description CustomUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.SetaddNoCaseSet(java.lang.String[] names, java.util.Set set)Utility method to add an array of names to a set, ignoring case.static voidclean(java.io.File dir)Clean directory by recursively deleting children.static java.util.SetnameSet(java.lang.String[] names)Utility method to build a set from an array of names.static java.util.SetnoCaseNameSet(java.lang.String[] names)Utility method to build a set from an array of names, ignoring case.
-
-
-
Method Detail
-
addNoCaseSet
public static java.util.Set addNoCaseSet(java.lang.String[] names, java.util.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- (nullif none)set- base set of names (nullif none)- Returns:
- name set (
nullif none)
-
noCaseNameSet
public static java.util.Set noCaseNameSet(java.lang.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- (nullif none)- Returns:
- name set (
nullif name array alsonull, otherwise non-null)
-
nameSet
public static java.util.Set nameSet(java.lang.String[] names)
Utility method to build a set from an array of names.- Parameters:
names- (nullif none)- Returns:
- name set (
nullif name array alsonull, otherwise non-null)
-
clean
public static void clean(java.io.File dir)
Clean directory by recursively deleting children.- Parameters:
dir- directory to be cleaned
-
-