| | |
| | | public void initializeSyntax(ConfigEntry configEntry) |
| | | throws ConfigException |
| | | { |
| | | |
| | | defaultEqualityMatchingRule = |
| | | DirectoryServer.getEqualityMatchingRule(EMR_CASE_IGNORE_OID); |
| | | if (defaultEqualityMatchingRule == null) |
| | |
| | | */ |
| | | public String getSyntaxName() |
| | | { |
| | | |
| | | return SYNTAX_SUBSTRING_ASSERTION_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getOID() |
| | | { |
| | | |
| | | return SYNTAX_SUBSTRING_ASSERTION_OID; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getDescription() |
| | | { |
| | | |
| | | return SYNTAX_SUBSTRING_ASSERTION_DESCRIPTION; |
| | | } |
| | | |
| | |
| | | */ |
| | | public EqualityMatchingRule getEqualityMatchingRule() |
| | | { |
| | | |
| | | return defaultEqualityMatchingRule; |
| | | } |
| | | |
| | |
| | | */ |
| | | public OrderingMatchingRule getOrderingMatchingRule() |
| | | { |
| | | |
| | | return defaultOrderingMatchingRule; |
| | | } |
| | | |
| | |
| | | */ |
| | | public SubstringMatchingRule getSubstringMatchingRule() |
| | | { |
| | | |
| | | return defaultSubstringMatchingRule; |
| | | } |
| | | |
| | |
| | | */ |
| | | public ApproximateMatchingRule getApproximateMatchingRule() |
| | | { |
| | | |
| | | // Approximate matching will not be allowed by default. |
| | | return null; |
| | | } |
| | |
| | | public boolean valueIsAcceptable(ByteString value, |
| | | StringBuilder invalidReason) |
| | | { |
| | | |
| | | |
| | | // Get the string representation of the value and check its length. A |
| | | // zero-length value is acceptable. A one-length value is acceptable as |
| | | // long as it is not an asterisk. For all other lengths, just ensure that |