Interface Assertion


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

    Modifier and Type
    Method
    Description
    <T> T
    createIndexQuery(AttributeDescription attributeDescription, IndexQueryFactory<T> factory)
    Returns an index query appropriate for the provided attribute value assertion.
    matchesValue(ByteString attributeValue)
    Indicates whether the provided attribute value should be considered a match for this assertion value according to the matching rule.
  • Method Details

    • matchesValue

      ConditionResult matchesValue(ByteString attributeValue) throws DecodeException
      Indicates whether the provided attribute value should be considered a match for this assertion value according to the matching rule.
      Parameters:
      attributeValue - The 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.
      Throws:
      DecodeException - If a syntax error occurred while parsing the value.
    • createIndexQuery

      <T> T createIndexQuery(AttributeDescription attributeDescription, IndexQueryFactory<T> factory) throws DecodeException
      Returns an index query appropriate for the provided attribute value assertion.
      Type Parameters:
      T - The type of index query created by the factory.
      Parameters:
      attributeDescription - The attribute description whose index should be queried.
      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.