From f2160f4bd1c8ac67e5a86a6710d431e8932877f9 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 28 May 2010 11:47:51 +0000
Subject: [PATCH] Synchronize SDK on java.net with internal repository.
---
sdk/src/org/opends/sdk/schema/KeywordEqualityMatchingRuleImpl.java | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/sdk/src/org/opends/sdk/schema/KeywordEqualityMatchingRuleImpl.java b/sdk/src/org/opends/sdk/schema/KeywordEqualityMatchingRuleImpl.java
index c258116..9dbc99c 100644
--- a/sdk/src/org/opends/sdk/schema/KeywordEqualityMatchingRuleImpl.java
+++ b/sdk/src/org/opends/sdk/schema/KeywordEqualityMatchingRuleImpl.java
@@ -28,18 +28,20 @@
-import static com.sun.opends.sdk.util.StringPrepProfile.*;
+import static com.sun.opends.sdk.util.StringPrepProfile.CASE_FOLD;
+import static com.sun.opends.sdk.util.StringPrepProfile.TRIM;
+import static com.sun.opends.sdk.util.StringPrepProfile.prepareUnicode;
import org.opends.sdk.*;
/**
- * This class implements the keywordMatch matching rule defined in
- * X.520. That document defines "keyword" as implementation-specific,
- * but in this case we will consider it a match if the assertion value
- * is contained within the attribute value and is bounded by the edge of
- * the value or any of the following characters: <BR>
+ * This class implements the keywordMatch matching rule defined in X.520. That
+ * document defines "keyword" as implementation-specific, but in this case we
+ * will consider it a match if the assertion value is contained within the
+ * attribute value and is bounded by the edge of the value or any of the
+ * following characters: <BR>
* <UL>
* <LI>A space</LI>
* <LI>A period</LI>
@@ -53,18 +55,17 @@
* <LI>An equal sign</LI>
* </UL>
*/
-final class KeywordEqualityMatchingRuleImpl extends
- AbstractMatchingRuleImpl
+final class KeywordEqualityMatchingRuleImpl extends AbstractMatchingRuleImpl
{
@Override
- public Assertion getAssertion(Schema schema, ByteSequence value)
+ public Assertion getAssertion(final Schema schema, final ByteSequence value)
throws DecodeException
{
final String normalStr = normalize(value);
return new Assertion()
{
- public ConditionResult matches(ByteSequence attributeValue)
+ public ConditionResult matches(final ByteSequence attributeValue)
{
// See if the assertion value is contained in the attribute
// value. If not, then it isn't a match.
@@ -132,15 +133,15 @@
- public ByteString normalizeAttributeValue(Schema schema,
- ByteSequence value)
+ public ByteString normalizeAttributeValue(final Schema schema,
+ final ByteSequence value)
{
return ByteString.valueOf(normalize(value));
}
- private String normalize(ByteSequence value)
+ private String normalize(final ByteSequence value)
{
final StringBuilder buffer = new StringBuilder();
prepareUnicode(buffer, value, TRIM, CASE_FOLD);
--
Gitblit v1.10.0