Class Util


  • public final class Util
    extends Object
    • Method Detail

      • expandQname

        public static List<SchemaPath> expandQname​(List<SchemaPath> list,
                                                   Pattern pattern)
        Method filters qnames based on wildcard strings.
        Parameters:
        list - list of SchemaPaths
        pattern - matching pattern
        Returns:
        list of filtered qnames
      • wildcardToRegex

        public static String wildcardToRegex​(String wildcard)
        CREDIT to http://www.rgagnon.com/javadetails/java-0515.html.