| | |
| | | public void initializeMatchingRule(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | // No initialization is required. |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getName() |
| | | { |
| | | |
| | | return EMR_INTEGER_FIRST_COMPONENT_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getOID() |
| | | { |
| | | |
| | | return EMR_INTEGER_FIRST_COMPONENT_OID; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getDescription() |
| | | { |
| | | |
| | | // There is no standard description for this matching rule. |
| | | return null; |
| | | } |
| | |
| | | */ |
| | | public String getSyntaxOID() |
| | | { |
| | | |
| | | return SYNTAX_INTEGER_OID; |
| | | } |
| | | |
| | |
| | | public ByteString normalizeValue(ByteString value) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toLowerCase(value.value(), buffer, true); |
| | | |
| | |
| | | */ |
| | | public boolean areEqual(ByteString value1, ByteString value2) |
| | | { |
| | | |
| | | |
| | | try |
| | | { |
| | | int intValue1 = extractIntValue(value1.stringValue()); |
| | |
| | | */ |
| | | 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; |
| | |
| | | private static int extractIntValue(String valueString) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | |
| | | int valueLength = valueString.length(); |
| | | |
| | | if ((valueLength == 0) || (valueString.charAt(0) != '(')) |