Bug 188027 PasteAction is diabled
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/validators/ThemeStyleNameValidator.java
*******************************************************************************/
package org.eclipse.birt.report.model.api.validators;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.eclipse.birt.report.model.api.StyleHandle;
import org.eclipse.birt.report.model.api.ThemeHandle;
import org.eclipse.birt.report.model.api.command.NameException;
import org.eclipse.birt.report.model.core.ContainerSlot;
import org.eclipse.birt.report.model.core.DesignElement;
import org.eclipse.birt.report.model.core.Module;
import org.eclipse.birt.report.model.core.StyleElement;
import org.eclipse.birt.report.model.elements.Theme;
import org.eclipse.birt.report.model.elements.interfaces.IThemeModel;
import org.eclipse.birt.report.model.validators.AbstractElementValidator;
/**
 * Validates the ducplicat style name in the theme.
 * 
 * <h3>Rule</h3>
 * The rule is that one theme element doesn't allow duplicate style name to
 * appear in this element.
 * 
 * <h3>Applicability</h3>
 * This validator is only applied to <code>Theme</code>.
 * 
 */
public class ThemeStyleNameValidator extends AbstractElementValidator