Interface Assertion


public interface Assertion
A compiled attribute value assertion.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Assertion
    An assertion that always return UNDEFINED for matches and that creates a match all query.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    Returns an index query appropriate for the provided attribute value assertion.
    matches(ByteSequence normalizedAttributeValue)
    Indicates whether the provided attribute value should be considered a match for this assertion value according to the matching rule.
  • Field Details

    • UNDEFINED_ASSERTION

      An assertion that always return UNDEFINED for matches and that creates a match all query.
  • Method Details

    • matches

      ConditionResult matches(ByteSequence normalizedAttributeValue)
      Indicates whether the provided attribute value should be considered a match for this assertion value according to the matching rule.
      Parameters:
      normalizedAttributeValue - The normalized attribute value.
      Returns:
      TRUE if the attribute value should be considered a match for the provided assertion value, FALSE if it does not match, or UNDEFINED if the result is undefined.
    • createIndexQuery

      Returns an index query appropriate for the provided attribute value assertion.
      Type Parameters:
      T - The type of index query created by the factory.
      Parameters:
      factory - The index query factory which should be used to construct the index query.
      Returns:
      The index query appropriate for the provided attribute value assertion.
      Throws:
      DecodeException - If an error occurs while generating the index query.