Package org.jibx.custom
Class CustomUtils
java.lang.Object
org.jibx.custom.CustomUtils
Support methods used by customization code.
- Author:
- Dennis M. Sosnoski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SetaddNoCaseSet(String[] names, Set set) Utility method to add an array of names to a set, ignoring case.static voidClean directory by recursively deleting children.static SetUtility method to build a set from an array of names.static SetnoCaseNameSet(String[] names) Utility method to build a set from an array of names, ignoring case.
-
Constructor Details
-
CustomUtils
public CustomUtils()
-
-
Method Details
-
addNoCaseSet
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
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
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
Clean directory by recursively deleting children.- Parameters:
dir- directory to be cleaned
-