public class ThemeStyleNameValidator
extends org.eclipse.birt.report.model.validators.AbstractElementValidator
Theme
.Constructor and Description |
---|
ThemeStyleNameValidator() |
Modifier and Type | Method and Description |
---|---|
static ThemeStyleNameValidator |
getInstance()
Returns the singleton validator instance.
|
java.util.List<SemanticException> |
validate(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
Validates the given element which is in report.
|
java.util.List<SemanticException> |
validateForAddingStyle(AbstractThemeHandle theme,
java.lang.String styleName)
Validates whether the style with the given name can be added into the
given theme element.
|
java.util.List<SemanticException> |
validateForRenamingStyle(AbstractThemeHandle theme,
StyleHandle style,
java.lang.String styleName)
Validates whether the style can be renamed to the given name.
|
public static ThemeStyleNameValidator getInstance()
public java.util.List<SemanticException> validateForAddingStyle(AbstractThemeHandle theme, java.lang.String styleName)
theme
- the theme elementstyleName
- name of the style to addSemanticException
.public java.util.List<SemanticException> validateForRenamingStyle(AbstractThemeHandle theme, StyleHandle style, java.lang.String styleName)
theme
- the theme elementstyle
- the style to renamestyleName
- the new name of the style to addSemanticException
.public java.util.List<SemanticException> validate(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
org.eclipse.birt.report.model.validators.AbstractElementValidator
validate
in class org.eclipse.birt.report.model.validators.AbstractElementValidator
module
- the moduleelement
- the given element to validateSemanticException
.Copyright © 2008 Actuate Corp. All rights reserved.