| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.util; |
| | |
| | | new ArrayList<AttributeType>(); |
| | | private final ArrayList<MatchingRule> matchingRulesToKeep = |
| | | new ArrayList<MatchingRule>(); |
| | | private final ArrayList<AttributeSyntax> syntaxesToKeep = |
| | | new ArrayList<AttributeSyntax>(); |
| | | private final ArrayList<AttributeSyntax<?>> syntaxesToKeep = |
| | | new ArrayList<AttributeSyntax<?>>(); |
| | | |
| | | /** |
| | | * Constructor. |
| | |
| | | { |
| | | matchingRulesToKeep.add(mr); |
| | | } |
| | | for (AttributeSyntax syntax : sc.getSyntaxes().values()) |
| | | for (AttributeSyntax<?> syntax : sc.getSyntaxes().values()) |
| | | { |
| | | syntaxesToKeep.add(syntax); |
| | | } |
| | |
| | | { |
| | | schema.registerMatchingRule(mr, true); |
| | | } |
| | | for (AttributeSyntax syntax : syntaxesToKeep) |
| | | for (AttributeSyntax<?> syntax : syntaxesToKeep) |
| | | { |
| | | schema.registerSyntax(syntax, true); |
| | | } |