/** * Retrieves a list of the items contained in the provided value. The items * will use the case of the provided value. * * @param value The value for which to obtain the list of items. It must * not be {@code null}. * * @return An unmodifiable list of the items contained in the provided value. * * @throws LDAPException If the provided value does not represent a valid * list in accordance with this matching rule. */ public static List<String> getItems(final ASN1OctetString value) throws LDAPException { return getItems(value.stringValue()); }
/** * {@inheritDoc} */ @Override() public ASN1OctetString normalize(final ASN1OctetString value) throws LDAPException { final List<String> items = getLowercaseItems(value); final Iterator<String> iterator = items.iterator(); final StringBuilder buffer = new StringBuilder(); while (iterator.hasNext()) { normalizeItem(buffer, iterator.next()); if (iterator.hasNext()) { buffer.append('$'); } } return new ASN1OctetString(buffer.toString()); }
throws LDAPException String normStr = normalize(value).stringValue(); final String normSubInitial = normalizeSubstring(subInitial, SUBSTRING_TYPE_SUBINITIAL).stringValue(); if (normSubInitial.indexOf('$') >= 0) final String normSubFinal = normalizeSubstring(subFinal, SUBSTRING_TYPE_SUBFINAL).stringValue(); if (normSubFinal.indexOf('$') >= 0) normalizeSubstring(s, SUBSTRING_TYPE_SUBANY).stringValue(); if (normSubAny.indexOf('$') >= 0)
return CaseIgnoreListMatchingRule.getInstance();
/** * Retrieves a list of the lowercase representations of the items contained in * the provided value. * * @param value The value for which to obtain the list of items. It must * not be {@code null}. * * @return An unmodifiable list of the items contained in the provided value. * * @throws LDAPException If the provided value does not represent a valid * list in accordance with this matching rule. */ public static List<String> getLowercaseItems(final ASN1OctetString value) throws LDAPException { return getLowercaseItems(value.stringValue()); }
buffer.append(decodeHexChar(value, i+1)); i += 2;
throws LDAPException String normStr = normalize(value).stringValue(); final String normSubInitial = normalizeSubstring(subInitial, SUBSTRING_TYPE_SUBINITIAL).stringValue(); if (normSubInitial.indexOf('$') >= 0) final String normSubFinal = normalizeSubstring(subFinal, SUBSTRING_TYPE_SUBFINAL).stringValue(); if (normSubFinal.indexOf('$') >= 0) normalizeSubstring(s, SUBSTRING_TYPE_SUBANY).stringValue(); if (normSubAny.indexOf('$') >= 0)
lowerName.equals(CaseIgnoreListMatchingRule.SUBSTRING_RULE_OID)) return CaseIgnoreListMatchingRule.getInstance();
/** * Retrieves a list of the lowercase representations of the items contained in * the provided value. * * @param value The value for which to obtain the list of items. It must * not be {@code null}. * * @return An unmodifiable list of the items contained in the provided value. * * @throws LDAPException If the provided value does not represent a valid * list in accordance with this matching rule. */ public static List<String> getLowercaseItems(final ASN1OctetString value) throws LDAPException { return getLowercaseItems(value.stringValue()); }
buffer.append(decodeHexChar(value, i+1)); i += 2;
/** * {@inheritDoc} */ @Override() public ASN1OctetString normalize(final ASN1OctetString value) throws LDAPException { final List<String> items = getLowercaseItems(value); final Iterator<String> iterator = items.iterator(); final StringBuilder buffer = new StringBuilder(); while (iterator.hasNext()) { normalizeItem(buffer, iterator.next()); if (iterator.hasNext()) { buffer.append('$'); } } return new ASN1OctetString(buffer.toString()); }
return CaseIgnoreListMatchingRule.getInstance();
/** * Retrieves a list of the items contained in the provided value. The items * will use the case of the provided value. * * @param value The value for which to obtain the list of items. It must * not be {@code null}. * * @return An unmodifiable list of the items contained in the provided value. * * @throws LDAPException If the provided value does not represent a valid * list in accordance with this matching rule. */ public static List<String> getItems(final ASN1OctetString value) throws LDAPException { return getItems(value.stringValue()); }
lowerName.equals(CaseIgnoreListMatchingRule.SUBSTRING_RULE_OID)) return CaseIgnoreListMatchingRule.getInstance();
/** * Retrieves a list of the lowercase representations of the items contained in * the provided value. * * @param value The value for which to obtain the list of items. It must * not be {@code null}. * * @return An unmodifiable list of the items contained in the provided value. * * @throws LDAPException If the provided value does not represent a valid * list in accordance with this matching rule. */ public static List<String> getLowercaseItems(final String value) throws LDAPException { return getItems(toLowerCase(value)); }
lowerName.equals(CaseIgnoreListMatchingRule.EQUALITY_RULE_OID)) return CaseIgnoreListMatchingRule.getInstance();
/** * Retrieves a list of the lowercase representations of the items contained in * the provided value. * * @param value The value for which to obtain the list of items. It must * not be {@code null}. * * @return An unmodifiable list of the items contained in the provided value. * * @throws LDAPException If the provided value does not represent a valid * list in accordance with this matching rule. */ public static List<String> getLowercaseItems(final String value) throws LDAPException { return getItems(toLowerCase(value)); }
lowerName.equals(CaseIgnoreListMatchingRule.EQUALITY_RULE_OID)) return CaseIgnoreListMatchingRule.getInstance();