| | |
| | | |
| | | |
| | | |
| | | import static com.sun.opends.sdk.util.StringPrepProfile.*; |
| | | import static com.sun.opends.sdk.util.StringPrepProfile.NO_CASE_FOLD; |
| | | import static com.sun.opends.sdk.util.StringPrepProfile.TRIM; |
| | | import static com.sun.opends.sdk.util.StringPrepProfile.prepareUnicode; |
| | | |
| | | import org.opends.sdk.ByteSequence; |
| | | import org.opends.sdk.ByteString; |
| | |
| | | |
| | | |
| | | /** |
| | | * This class implements the numericStringMatch matching rule defined in |
| | | * X.520 and referenced in RFC 2252. It allows for values with numeric |
| | | * digits and spaces, but ignores spaces when performing matching. |
| | | * This class implements the numericStringMatch matching rule defined in X.520 |
| | | * and referenced in RFC 2252. It allows for values with numeric digits and |
| | | * spaces, but ignores spaces when performing matching. |
| | | */ |
| | | final class NumericStringEqualityMatchingRuleImpl extends |
| | | AbstractMatchingRuleImpl |
| | | { |
| | | public ByteString normalizeAttributeValue(Schema schema, |
| | | ByteSequence value) |
| | | public ByteString normalizeAttributeValue(final Schema schema, |
| | | final ByteSequence value) |
| | | { |
| | | final StringBuilder buffer = new StringBuilder(); |
| | | prepareUnicode(buffer, value, TRIM, NO_CASE_FOLD); |