| | |
| | | public void initializeMatchingRule(ConfigEntry configEntry) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | // No initialization is required. |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getName() |
| | | { |
| | | |
| | | return OMR_INTEGER_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getOID() |
| | | { |
| | | |
| | | return OMR_INTEGER_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 |
| | | { |
| | | |
| | | byte[] valueBytes = value.value(); |
| | | |
| | | int length = valueBytes.length; |
| | |
| | | */ |
| | | public int compareValues(ByteString value1, ByteString value2) |
| | | { |
| | | |
| | | return compare(value1.value(), value2.value()); |
| | | } |
| | | |
| | |
| | | */ |
| | | public int compare(byte[] b1, byte[] b2) |
| | | { |
| | | |
| | | int b1Length = b1.length; |
| | | int b2Length = b2.length; |
| | | |