public boolean matches(T realValue, String regex) throws SchemaException{ return matchingRule.matchRegex(realValue, regex); }
@Override public boolean matchRegex(PolyString a, String regex) throws SchemaException { return nameMatchingRule.matchRegex(a.getOrig(), regex); }
@Override public boolean matchRegex(PolyString a, String regex) throws SchemaException { return nameMatchingRule.matchRegex(a.getOrig(), regex); }
private boolean matchesAssociationPattern(@NotNull List<String> patterns, @NotNull ResourceAttribute<?> identifier, @NotNull MatchingRule<Object> matchingRule) { for (String pattern : patterns) { for (PrismPropertyValue<?> identifierValue : identifier.getValues()) { try { if (identifierValue != null && matchingRule.matchRegex(identifierValue.getRealValue(), pattern)) { return true; } } catch (SchemaException e) { LOGGER.warn("Value '{}' is invalid: {}", identifierValue, e.getMessage(), e); return false; } } } return false; } }
sb.append(".*"); if (matching.matchRegex(value, sb.toString())) { return true;