| | |
| | | public void initializeMatchingRule(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | // No initialization is required. |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getName() |
| | | { |
| | | |
| | | return EMR_DIRECTORY_STRING_FIRST_COMPONENT_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getOID() |
| | | { |
| | | |
| | | return EMR_DIRECTORY_STRING_FIRST_COMPONENT_OID; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getDescription() |
| | | { |
| | | |
| | | // There is no standard description for this matching rule. |
| | | return null; |
| | | } |
| | |
| | | */ |
| | | public String getSyntaxOID() |
| | | { |
| | | |
| | | return SYNTAX_DIRECTORY_STRING_OID; |
| | | } |
| | | |
| | |
| | | public ByteString normalizeValue(ByteString value) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toLowerCase(value.value(), buffer, true); |
| | | |
| | |
| | | */ |
| | | public boolean areEqual(ByteString value1, ByteString value2) |
| | | { |
| | | |
| | | |
| | | // For this purpose, the first value will be considered the attribute value, |
| | | // and the second the assertion value. The attribute value must start with |
| | | // an open parenthesis, followed by one or more spaces. |
| | |
| | | * @return The hash code generated for the provided attribute value.*/ |
| | | public int generateHashCode(AttributeValue attributeValue) |
| | | { |
| | | |
| | | // In this case, we'll always return the same value because the matching |
| | | // isn't based on the entire value. |
| | | return 1; |