/** * Retrieves the default matching rule that will be used for equality matching * if no other matching rule is specified or available. The rule returned * will perform case-ignore string matching. * * @return The default matching rule that will be used for equality matching * if no other matching rule is specified or available. */ public static MatchingRule getDefaultEqualityMatchingRule() { return CaseIgnoreStringMatchingRule.getInstance(); }
/** * Retrieves the default matching rule that will be used for substring * matching if no other matching rule is specified or available. The rule * returned will perform case-ignore string matching. * * @return The default matching rule that will be used for substring matching * if no other matching rule is specified or available. */ public static MatchingRule getDefaultSubstringMatchingRule() { return CaseIgnoreStringMatchingRule.getInstance(); }
/** * Retrieves the default matching rule that will be used for equality matching * if no other matching rule is specified or available. The rule returned * will perform case-ignore string matching. * * @return The default matching rule that will be used for equality matching * if no other matching rule is specified or available. */ public static MatchingRule getDefaultEqualityMatchingRule() { return CaseIgnoreStringMatchingRule.getInstance(); }
/** * Retrieves the default matching rule that will be used for ordering matching * if no other matching rule is specified or available. The rule returned * will perform case-ignore string matching. * * @return The default matching rule that will be used for ordering matching * if no other matching rule is specified or available. */ public static MatchingRule getDefaultOrderingMatchingRule() { return CaseIgnoreStringMatchingRule.getInstance(); }
/** * Retrieves the default matching rule that will be used for substring * matching if no other matching rule is specified or available. The rule * returned will perform case-ignore string matching. * * @return The default matching rule that will be used for substring matching * if no other matching rule is specified or available. */ public static MatchingRule getDefaultSubstringMatchingRule() { return CaseIgnoreStringMatchingRule.getInstance(); }
/** * Retrieves the default matching rule that will be used for ordering matching * if no other matching rule is specified or available. The rule returned * will perform case-ignore string matching. * * @return The default matching rule that will be used for ordering matching * if no other matching rule is specified or available. */ public static MatchingRule getDefaultOrderingMatchingRule() { return CaseIgnoreStringMatchingRule.getInstance(); }
/** * Retrieves the attribute for this modification. * * @return The attribute for this modification. */ public Attribute getAttribute() { return new Attribute(attributeName, CaseIgnoreStringMatchingRule.getInstance(), values); }
/** * Creates a new LDAP attribute with the specified name and no values. * * @param name The name for this attribute. It must not be {@code null}. */ public Attribute(final String name) { ensureNotNull(name); this.name = name; values = NO_VALUES; matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }
/** * {@inheritDoc} */ @Override() public ASN1OctetString normalizeSubstring(final ASN1OctetString value, final byte substringType) throws LDAPException { return CaseIgnoreStringMatchingRule.getInstance().normalizeSubstring(value, substringType); }
/** * Retrieves the attribute for this modification. * * @return The attribute for this modification. */ public Attribute getAttribute() { return new Attribute(attributeName, CaseIgnoreStringMatchingRule.getInstance(), values); }
/** * Creates a new LDAP attribute with the specified name and no values. * * @param name The name for this attribute. It must not be {@code null}. */ public Attribute(final String name) { ensureNotNull(name); this.name = name; values = NO_VALUES; matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }
/** * {@inheritDoc} */ @Override() public ASN1OctetString normalizeSubstring(final ASN1OctetString value, final byte substringType) throws LDAPException { return CaseIgnoreStringMatchingRule.getInstance().normalizeSubstring(value, substringType); }
/** * Creates a new LDAP attribute with the specified name and set of values. * * @param name The name for this attribute. It must not be {@code null}. * @param values The set of raw values for this attribute. It must not be * {@code null}. */ public Attribute(final String name, final ASN1OctetString... values) { ensureNotNull(name, values); this.name = name; this.values = values; matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }
/** * Creates a new LDAP attribute with the specified name and set of values. * * @param name The name for this attribute. It must not be {@code null}. * @param values The set of raw values for this attribute. It must not be * {@code null}. */ public Attribute(final String name, final ASN1OctetString... values) { ensureNotNull(name, values); this.name = name; this.values = values; matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }
/** * Creates a new LDAP attribute with the specified name and value. * * @param name The name for this attribute. It must not be {@code null}. * @param value The value for this attribute. It must not be {@code null}. */ public Attribute(final String name, final String value) { ensureNotNull(name, value); this.name = name; values = new ASN1OctetString[] { new ASN1OctetString(value) }; matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }
/** * Creates a new LDAP attribute with the specified name and value. * * @param name The name for this attribute. It must not be {@code null}. * @param value The value for this attribute. It must not be {@code null}. */ public Attribute(final String name, final byte[] value) { ensureNotNull(name, value); this.name = name; values = new ASN1OctetString[] { new ASN1OctetString(value) }; matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }
/** * Creates a new LDAP attribute with the specified name and value. * * @param name The name for this attribute. It must not be {@code null}. * @param value The value for this attribute. It must not be {@code null}. */ public Attribute(final String name, final String value) { ensureNotNull(name, value); this.name = name; values = new ASN1OctetString[] { new ASN1OctetString(value) }; matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }
/** * Creates a new LDAP attribute with the specified name and value. * * @param name The name for this attribute. It must not be {@code null}. * @param value The value for this attribute. It must not be {@code null}. */ public Attribute(final String name, final byte[] value) { ensureNotNull(name, value); this.name = name; values = new ASN1OctetString[] { new ASN1OctetString(value) }; matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }
/** * Creates a new LDAP attribute with the specified name and set of values. * * @param name The name for this attribute. It must not be {@code null}. * @param values The set of values for this attribute. It must not be * {@code null}. */ public Attribute(final String name, final String... values) { ensureNotNull(name, values); this.name = name; this.values = new ASN1OctetString[values.length]; for (int i=0; i < values.length; i++) { this.values[i] = new ASN1OctetString(values[i]); } matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }
/** * Creates a new LDAP attribute with the specified name and set of values. * * @param name The name for this attribute. It must not be {@code null}. * @param values The set of values for this attribute. It must not be * {@code null}. */ public Attribute(final String name, final byte[]... values) { ensureNotNull(name, values); this.name = name; this.values = new ASN1OctetString[values.length]; for (int i=0; i < values.length; i++) { this.values[i] = new ASN1OctetString(values[i]); } matchingRule = CaseIgnoreStringMatchingRule.getInstance(); }