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 Set
addNoCaseSet
(String[] names, Set set) Utility method to add an array of names to a set, ignoring case.static void
Clean directory by recursively deleting children.static Set
Utility method to build a set from an array of names.static Set
noCaseNameSet
(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
- (null
if none)set
- base set of names (null
if none)- Returns:
- name set (
null
if 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
- (null
if none)- Returns:
- name set (
null
if name array alsonull
, otherwise non-null
)
-
nameSet
Utility method to build a set from an array of names.- Parameters:
names
- (null
if none)- Returns:
- name set (
null
if name array alsonull
, otherwise non-null
)
-
clean
Clean directory by recursively deleting children.- Parameters:
dir
- directory to be cleaned
-