| | |
| | | |
| | | |
| | | |
| | | import org.opends.server.admin.std.server.EqualityMatchingRuleCfg; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.types.InitializationException; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.Collections; |
| | | import static org.opends.server.schema.SchemaConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | |
| | | |
| | |
| | | * document defines "keyword" as implementation-specific, but in this case we |
| | | * will interpret it in the same way as "word" for the wordMatch rule. |
| | | */ |
| | | public class KeywordEqualityMatchingRule |
| | | class KeywordEqualityMatchingRule |
| | | extends WordEqualityMatchingRule |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void initializeMatchingRule(EqualityMatchingRuleCfg configuration) |
| | | throws ConfigException, InitializationException |
| | | public Collection<String> getAllNames() |
| | | { |
| | | // No initialization is required. |
| | | return Collections.singleton(getName()); |
| | | } |
| | | |
| | | |
| | |
| | | * @return The common name for this matching rule, or <CODE>null</CODE> if |
| | | * it does not have a name. |
| | | */ |
| | | @Override |
| | | public String getName() |
| | | { |
| | | return EMR_KEYWORD_NAME; |
| | |
| | | * |
| | | * @return The OID for this matching rule. |
| | | */ |
| | | @Override |
| | | public String getOID() |
| | | { |
| | | return EMR_KEYWORD_OID; |