@NotExtensible @ThreadSafety(level=INTERFACE_THREADSAFE) public interface SubstringMatchingRule extends MatchingRule
Modifier and Type | Method and Description |
---|---|
com.unboundid.util.ByteString |
normalizeSubstring(AttributeType type,
com.unboundid.util.ByteString substring)
Normalizes the provided value fragment into a form that can be used to
efficiently compare it in a substring assertion.
|
com.unboundid.util.ByteString |
normalizeSubstring(com.unboundid.util.ByteString substring)
Normalizes the provided value fragment into a form that can be used to
efficiently compare it in a substring assertion.
|
boolean |
valueMatchesSubstring(com.unboundid.util.ByteString normValue,
com.unboundid.util.ByteString normSubInitial,
java.util.List<com.unboundid.util.ByteString> normSubAny,
com.unboundid.util.ByteString normSubFinal)
Indicates whether the provided value matches the given substring assertion.
|
equals, getDescription, getName, getNameOrOID, getOID, getSyntaxOID, hashCode, hasNameOrOID, isObsolete, normalizeValue, normalizeValue, toString, valuesMatch
com.unboundid.util.ByteString normalizeSubstring(com.unboundid.util.ByteString substring) throws com.unboundid.ldap.sdk.LDAPException
substring
- The substring value to be normalized.com.unboundid.ldap.sdk.LDAPException
- If a problem is encountered while attempting to
normalize the provided substring.com.unboundid.util.ByteString normalizeSubstring(AttributeType type, com.unboundid.util.ByteString substring) throws com.unboundid.ldap.sdk.LDAPException
type
- The associated attribute type.substring
- The substring value to be normalized.com.unboundid.ldap.sdk.LDAPException
- If a problem is encountered while attempting to
normalize the provided substring.boolean valueMatchesSubstring(com.unboundid.util.ByteString normValue, com.unboundid.util.ByteString normSubInitial, java.util.List<com.unboundid.util.ByteString> normSubAny, com.unboundid.util.ByteString normSubFinal)
normValue
- The normalized form of the value to be compared.normSubInitial
- The normalized form of the subInitial element for
the substring assertion. It may be null
if
there is no subInitial element.normSubAny
- The normalized forms of the subAny elements for the
substring assertion. It may be empty or
null
if there is no subInitial element.normSubFinal
- The normalized form of the subFinal element for
the substring assertion. It may be null
if
there is no subFinal element.true
if the provided value matches the given substring
assertion, or false
if not.