| | |
| | | import org.forgerock.i18n.LocalizableMessageBuilder; |
| | | import org.opends.server.api.ApproximateMatchingRule; |
| | | import org.opends.server.api.AttributeSyntax; |
| | | import org.opends.server.api.EqualityMatchingRule; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | | import org.opends.server.api.SubstringMatchingRule; |
| | |
| | | { |
| | | approximateElements.add(matchingRule); |
| | | } |
| | | else if (matchingRule instanceof EqualityMatchingRule) |
| | | else if (matchingRule instanceof MatchingRule) |
| | | { |
| | | equalityElements.add(matchingRule); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | private EqualityMatchingRule getEqualityMatchingRule() |
| | | private MatchingRule getEqualityMatchingRule() |
| | | { |
| | | if (equality.getSelectedIndex() == 0) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | return (EqualityMatchingRule)equality.getSelectedItem(); |
| | | return (MatchingRule)equality.getSelectedItem(); |
| | | } |
| | | } |
| | | |