/** * Matches the {@code nameGlob} strings in the passed array against * the specified name. * <p> * A glob may be a full name or a partial name with one or more * wildcard characters ("{@code *}"). * <p> * Note that unlike in the case of the {@link #matches(String, String)} * leading and trailing whitespace around a glob is <i>not</i> ignored. * * @param name the name to test the pattern with * @param nameGlobs an array of globbing strings * @return true if the specified name matches any of the globs * @see javax.jcr.Node#getNodes(String[]) */ public static boolean matches(String name, String[] nameGlobs) { for (String nameGlob : nameGlobs) { // use globbing string as-is. Don't trim any leading/trailing whitespace if (internalMatches(name, nameGlob, 0, 0)) { return true; } } return false; }
/** * Matches the {@code nameGlob} strings in the passed array against * the specified name. * <p> * A glob may be a full name or a partial name with one or more * wildcard characters ("{@code *}"). * <p> * Note that unlike in the case of the {@link #matches(String, String)} * leading and trailing whitespace around a glob is <i>not</i> ignored. * * @param name the name to test the pattern with * @param nameGlobs an array of globbing strings * @return true if the specified name matches any of the globs * @see javax.jcr.Node#getNodes(String[]) */ public static boolean matches(String name, String[] nameGlobs) { for (String nameGlob : nameGlobs) { // use globbing string as-is. Don't trim any leading/trailing whitespace if (internalMatches(name, nameGlob, 0, 0)) { return true; } } return false; }
/** * Matches the {@code nameGlob} strings in the passed array against * the specified name. * <p> * A glob may be a full name or a partial name with one or more * wildcard characters ("{@code *}"). * <p> * Note that unlike in the case of the {@link #matches(String, String)} * leading and trailing whitespace around a glob is <i>not</i> ignored. * * @param name the name to test the pattern with * @param nameGlobs an array of globbing strings * @return true if the specified name matches any of the globs * @see javax.jcr.Node#getNodes(String[]) */ public static boolean matches(String name, String[] nameGlobs) { for (String nameGlob : nameGlobs) { // use globbing string as-is. Don't trim any leading/trailing whitespace if (internalMatches(name, nameGlob, 0, 0)) { return true; } } return false; }
if (internalMatches(name, token, 0, 0)) { return true;
if (internalMatches(name, token, 0, 0)) { return true;
if (internalMatches(name, token, 0, 0)) { return true;
if (internalMatches(s, pattern, sOff, pOff)) { return true;
if (internalMatches(s, pattern, sOff, pOff)) { return true;
if (internalMatches(s, pattern, sOff, pOff)) { return true;