mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
24.45.2014 3dc3f07607a5c720a1452cc75701554a9f3ad715
opendj3-server-dev/src/server/org/opends/server/api/MatchingRule.java
@@ -28,6 +28,7 @@
import java.util.Collection;
import java.util.Comparator;
import java.util.List;
import org.forgerock.opendj.ldap.Assertion;
import org.forgerock.opendj.ldap.ByteSequence;
@@ -148,6 +149,27 @@
  public Assertion getLessOrEqualAssertion(final ByteSequence assertionValue) throws DecodeException;
  /**
   * Returns the normalized form of the provided assertion substring values,
   * which is best suited for efficiently performing matching operations on
   * that value.
   *
   * @param subInitial
   *            The normalized substring value fragment that should appear at
   *            the beginning of the target value.
   * @param subAnyElements
   *            The normalized substring value fragments that should appear in
   *            the middle of the target value.
   * @param subFinal
   *            The normalized substring value fragment that should appear at
   *            the end of the target value.
   * @return The normalized version of the provided assertion value.
   * @throws DecodeException
   *             if the syntax of the value is not valid.
   */
  public Assertion getSubstringAssertion(final ByteSequence subInitial,
      final List<? extends ByteSequence> subAnyElements, final ByteSequence subFinal) throws DecodeException;
  /**
   * Indicates whether this matching rule is declared "OBSOLETE". The
   * default implementation will always return {@code false}. If that
   * is not acceptable for a particular matching rule implementation,