|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.api.AbstractMatchingRule
@PublicAPI(stability=VOLATILE,
mayInstantiate=false,
mayExtend=true,
mayInvoke=false)
public abstract class AbstractMatchingRuleThis class provides default implementation of MatchingRule. A matching rule implemented by a Directory Server module must extend this class.
| Constructor Summary | |
|---|---|
AbstractMatchingRule()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this matching rule. |
abstract java.util.Collection<java.lang.String> |
getAllNames()
Retrieves all names for this matching rule. |
abstract java.lang.String |
getDescription()
Retrieves the description for this matching rule. |
abstract java.lang.String |
getName()
Retrieves the common name for this matching rule. |
java.lang.String |
getNameOrOID()
Retrieves the name or OID for this matching rule. |
abstract java.lang.String |
getOID()
Retrieves the OID for this matching rule. |
abstract java.lang.String |
getSyntaxOID()
Retrieves the OID of the syntax with which this matching rule is associated. |
int |
hashCode()
Retrieves the hash code for this matching rule. |
boolean |
isObsolete()
Indicates whether this matching rule is declared "OBSOLETE". |
ByteString |
normalizeAssertionValue(ByteSequence value)
Retrieves the normalized form of the provided assertion value, which is best suite for efficiently performing matching operations on that value. |
abstract ByteString |
normalizeValue(ByteSequence value)
Retrieves the normalized form of the provided value, which is best suite for efficiently performing matching operations on that value. |
java.lang.String |
toString()
Retrieves a string representation of this matching rule in the format defined in RFC 2252. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this matching rule in the format defined in RFC 2252 to the provided buffer. |
ConditionResult |
valuesMatch(ByteSequence attributeValue,
ByteSequence assertionValue)
Indicates whether the provided attribute value should be considered a match for the given assertion value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMatchingRule()
| Method Detail |
|---|
public abstract java.lang.String getName()
getName in interface MatchingRulenull
if it does not have a name.public abstract java.util.Collection<java.lang.String> getAllNames()
getAllNames in interface MatchingRulepublic abstract java.lang.String getOID()
getOID in interface MatchingRule
public ByteString normalizeAssertionValue(ByteSequence value)
throws DirectoryException
normalizeAssertionValue in interface MatchingRulevalue - The assertion value to be normalized.
DirectoryException - If the provided value is invalid according to the
associated attribute syntax.public final java.lang.String getNameOrOID()
getNameOrOID in interface MatchingRulepublic abstract java.lang.String getDescription()
getDescription in interface MatchingRulenull
if there is none.public abstract java.lang.String getSyntaxOID()
getSyntaxOID in interface MatchingRulepublic boolean isObsolete()
false. If that
is not acceptable for a particular matching rule implementation,
then it should override this method and perform the appropriate
processing to return the correct value.
isObsolete in interface MatchingRuletrue if this matching rule is declared
"OBSOLETE", or false if not.
public abstract ByteString normalizeValue(ByteSequence value)
throws DirectoryException
normalizeValue in interface MatchingRulevalue - The value to be normalized.
DirectoryException - If the provided value is invalid according to the
associated attribute syntax.
public ConditionResult valuesMatch(ByteSequence attributeValue,
ByteSequence assertionValue)
valuesMatch in interface MatchingRuleattributeValue - The attribute value in a form that has been normalized
according to this matching rule.assertionValue - The assertion value in a form that has been normalized
according to this matching rule.
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.public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object for which to make the determination.
true if the provided object is equal to this
matching rule, or false if it is not.public final java.lang.String toString()
toString in class java.lang.Objectpublic final void toString(java.lang.StringBuilder buffer)
toString in interface MatchingRulebuffer - The buffer to which the information should be appended.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||