Searched defs:pattern (Results 1 - 25 of 308) sorted by relevance

1234567891011>>

/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/common/
H A DDisplayUtils.java36 * Returns true if the given pattern is contained in the string.
40 * @param pattern
44 public static boolean wildcardMatch(String string, String pattern) { argument
46 pattern = pattern.toLowerCase();
48 if (pattern.equals("*") || pattern.equals(string)) {
52 int length = pattern.length();
53 int wildCardIndex = pattern.indexOf("*");
56 String patternSubStr = pattern
[all...]
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/common/configuration/
H A DDuplicateKeyMapValueValidator.java58 private static final Pattern pattern = Pattern.compile(regularExpression); field in class:DuplicateKeyMapValueValidator
77 final Matcher m = pattern.matcher(str);
H A DListValueValidator.java65 private static final Pattern pattern = field in class:ListValueValidator
86 Matcher m = pattern.matcher(str);
H A DFilterModeValueValidator.java89 private static final Pattern pattern = Pattern.compile(regularExpression); field in class:FilterModeValueValidator
111 Matcher m = pattern.matcher(str);
H A DGlobalMapValueValidator.java75 private static final Pattern pattern = Pattern.compile(regularExpression); field in class:GlobalMapValueValidator
97 Matcher m = pattern.matcher(str);
H A DMapValueParser.java54 private static final Pattern pattern = Pattern.compile(regExp); field in class:MapValueParser
88 Matcher m = pattern.matcher(entry);
H A DMapValueValidator.java94 private static final Pattern pattern = Pattern.compile(regularExpression); field in class:MapValueValidator
114 Matcher m = pattern.matcher(str);
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/sm/flatfile/
H A DNodeNameFilter.java39 Pattern pattern; field in class:NodeNameFilter
44 * @param filter Filter pattern.
57 pattern = Pattern.compile(filter.toLowerCase());
68 return (pattern == null) ? true :
69 (pattern.matcher(name.toLowerCase()).matches());
/forgerock/openam/openam-core/src/main/java/com/sun/identity/common/
H A DDisplayUtils.java36 * Returns true if the given pattern is contained in the string.
40 * @param pattern
44 public static boolean wildcardMatch(String string, String pattern) { argument
46 pattern = pattern.toLowerCase();
48 if (pattern.equals("*") || pattern.equals(string)) {
52 int length = pattern.length();
53 int wildCardIndex = pattern.indexOf("*");
56 String patternSubStr = pattern
[all...]
/forgerock/openam/openam-core/src/main/java/com/sun/identity/common/configuration/
H A DDuplicateKeyMapValueValidator.java59 private static final Pattern pattern = Pattern.compile(regularExpression); field in class:DuplicateKeyMapValueValidator
74 Matcher matcher = pattern.matcher(trimmed);
H A DListValueValidator.java68 private static final Pattern pattern = Pattern.compile("(\\s*\\[\\s*\\d++\\s*\\]\\s*=.*)"); field in class:ListValueValidator
87 Matcher m = pattern.matcher(value);
/forgerock/openam/openam-core/src/main/java/com/sun/identity/sm/flatfile/
H A DNodeNameFilter.java39 Pattern pattern; field in class:NodeNameFilter
44 * @param filter Filter pattern.
57 pattern = Pattern.compile(filter.toLowerCase());
68 return (pattern == null) ? true :
69 (pattern.matcher(name.toLowerCase()).matches());
/forgerock/opendj-b2.6/tests/unit-tests-testng/src/server/org/opends/server/admin/
H A DStringPropertyDefinitionTest.java46 * Tests validateValue() with valid data and no pattern.
57 * Tests validateValue() with valid data and a pattern.
68 * Tests validateValue() with invalid data and a pattern.
79 * Tests decodeValue() with valid data and a pattern.
90 * Tests decodeValue() with invalid data and a pattern.
102 boolean isCaseInsensitive, String pattern) {
106 builder.setPattern(pattern, "STRING");
101 getDefinition( boolean isCaseInsensitive, String pattern) argument
/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/admin/
H A DStringPropertyDefinitionTest.java45 * Tests validateValue() with valid data and no pattern.
56 * Tests validateValue() with valid data and a pattern.
67 * Tests validateValue() with invalid data and a pattern.
78 * Tests decodeValue() with valid data and a pattern.
89 * Tests decodeValue() with invalid data and a pattern.
101 boolean isCaseInsensitive, String pattern) {
105 builder.setPattern(pattern, "STRING");
100 getDefinition( boolean isCaseInsensitive, String pattern) argument
/forgerock/opendj2.6.2/tests/unit-tests-testng/src/server/org/opends/server/admin/
H A DStringPropertyDefinitionTest.java46 * Tests validateValue() with valid data and no pattern.
57 * Tests validateValue() with valid data and a pattern.
68 * Tests validateValue() with invalid data and a pattern.
79 * Tests decodeValue() with valid data and a pattern.
90 * Tests decodeValue() with invalid data and a pattern.
102 boolean isCaseInsensitive, String pattern) {
106 builder.setPattern(pattern, "STRING");
101 getDefinition( boolean isCaseInsensitive, String pattern) argument
/forgerock/opendj2-hg/tests/unit-tests-testng/src/server/org/opends/server/admin/
H A DStringPropertyDefinitionTest.java45 * Tests validateValue() with valid data and no pattern.
56 * Tests validateValue() with valid data and a pattern.
67 * Tests validateValue() with invalid data and a pattern.
78 * Tests decodeValue() with valid data and a pattern.
89 * Tests decodeValue() with invalid data and a pattern.
101 boolean isCaseInsensitive, String pattern) {
105 builder.setPattern(pattern, "STRING");
100 getDefinition( boolean isCaseInsensitive, String pattern) argument
/forgerock/opendj2-jel-hg/tests/unit-tests-testng/src/server/org/opends/server/admin/
H A DStringPropertyDefinitionTest.java46 * Tests validateValue() with valid data and no pattern.
57 * Tests validateValue() with valid data and a pattern.
68 * Tests validateValue() with invalid data and a pattern.
79 * Tests decodeValue() with valid data and a pattern.
90 * Tests decodeValue() with invalid data and a pattern.
102 boolean isCaseInsensitive, String pattern) {
106 builder.setPattern(pattern, "STRING");
101 getDefinition( boolean isCaseInsensitive, String pattern) argument
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/policy/plugins/
H A DPeerOrgReferral.java81 * matching a pattern
83 * @param pattern a pattern to match against the value
89 public ValidValues getValidValues(SSOToken token, String pattern) argument
118 Set subOrgNames = parentOrgConfig.getSubOrganizationNames(pattern,
H A DSubOrgReferral.java80 * matching a pattern
82 * @param pattern a pattern to match against the value
88 public ValidValues getValidValues(SSOToken token, String pattern) argument
106 Set subOrgNames = orgConfigManager.getSubOrganizationNames(pattern,
/forgerock/openam-v13/openam-shared/src/main/java/com/sun/identity/shared/
H A DStringUtils.java55 * @param pattern String substitution matching pattern.
56 * @param str The literal string to replace the pattern with.
59 public static String strReplaceAll(String orig, String pattern, String str) { argument
60 return orig.replaceAll(pattern, Matcher.quoteReplacement(str));
/forgerock/openam-v13/openam-shared/src/main/java/com/sun/identity/shared/whitelist/
H A DURLPatternMatcher.java39 * The class provides pattern matching for notenforced URIs/URLs.
68 for (String pattern : patterns) {
69 patternLower = pattern.toLowerCase();
73 // convert URI to URL if required (but not if pattern is relative)
75 pattern = resourceName.canonicalize(pattern);
79 DEBUG.message("URLPatternMatcher.match(" + requestedURL + "): matching by pattern: " + pattern);
82 ResourceMatch res = resourceName.compare(requestedURL, pattern, wildcard);
86 DEBUG.message("URLPatternMatcher.match(" + requestedURL + "): matched by pattern
99 convertToURL(String pattern, String requestedURL) argument
[all...]
/forgerock/openam-v13/openam-shared/src/test/java/com/sun/identity/shared/whitelist/
H A DHttpURLResourceNameTest.java28 String pattern = "http://www.google.com:80/blah/*";
29 runner("http://www.google.com:80/blah/one/moo", pattern, true);
30 runner("http://www.google.com:80/blah/one/two/moo", pattern, true);
35 String pattern = "http://www.google.com:80/blah/*/*/moo";
36 runner("http://www.google.com:80/blah/one/moo", pattern, false);
37 runner("http://www.google.com:80/blah/one/two/moo", pattern, true);
42 String pattern = "http://www.google.com:80/blah/-*-/moo";
43 runner("http://www.google.com:80/blah/one/moo", pattern, true);
44 runner("http://www.google.com:80/blah/one/two/moo", pattern, false);
49 String pattern
54 runner(String url, String pattern, boolean expected) argument
[all...]
H A DURLPatternMatcherTest.java31 private void performTestAndAssert(String pattern, String url, boolean result) throws MalformedURLException { argument
32 boolean answer = urlPatternMatcher.match(url, Collections.singleton(pattern), true); //wildcard always enabled
/forgerock/jee-agents-v3.5/jee-agents-sdk/src/main/java/com/sun/identity/agents/util/
H A DPatternRule.java35 * A string that contains wildcard for pattern matching
145 private void initializeTokens(String pattern) { argument
148 for(int i = 0; i < pattern.length(); i++) {
149 char ch = pattern.charAt(i);
/forgerock/openam-v13/openam-cli/openam-cli-impl/src/main/java/com/sun/identity/cli/agentconfig/
H A DListAgentGroups.java134 private boolean matchType(AMIdentity amid, String pattern) argument
136 boolean matched = (pattern.length() == 0);
143 matched = DisplayUtils.wildcardMatch(t, pattern);

Completed in 4672 milliseconds

1234567891011>>