Package com.stimulsoft.report
Class StiNameCreation
java.lang.Object
com.stimulsoft.report.StiNameCreation
Describes the class that used for report names creation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateName(StiReport report, String baseName) Creates a name from the base name which is correct for the report.static StringcreateName(StiReport report, String baseName, boolean addOne, boolean removeIncorrectSymbols) static StringcreateName(StiReport report, String baseName, boolean addOne, boolean removeIncorrectSymbols, boolean forceAdvancedNamingRule) Creates a name from the base name which is correct for the report.static StringcreateRelationName(StiReport report, StiDataRelation dataRelation, String baseName) static StringcreateResourceName(StiReport report, String baseName) static StringcreateSimpleName(StiReport report, String baseName) static StringgenerateName(StiComponent component) Returns a name for the component.static StringgenerateName(StiDataSource dataSource) Returns a name for the datasource.static StringgenerateName(StiDataRelation relation) Returns a name for the relation.static StringgenerateName(StiReport report, String localizedName, Class<?> type) Returns a name of the component.static StringgenerateName(StiReport report, String localizedName, String name) Returns a name of the component.static StiNamingRulestatic ObjectgetObjectWithName(Object checkedObject, StiReport report, String name) static booleanisRelationExists(StiReport report, StiDataRelation dataRelation, String name) static booleanisResourceNameExists(StiReport report, String name) static booleanisValidName(StiReport report, String name) Checks whether the name of the report is correct.static voidsetNamingRule(StiNamingRule value)
-
Method Details
-
getNamingRule
-
setNamingRule
-
createSimpleName
-
createRelationName
public static String createRelationName(StiReport report, StiDataRelation dataRelation, String baseName) -
isRelationExists
-
createName
Creates a name from the base name which is correct for the report.- Parameters:
report- Report.baseName- The type to form a name.
-
createName
-
createName
public static String createName(StiReport report, String baseName, boolean addOne, boolean removeIncorrectSymbols, boolean forceAdvancedNamingRule) Creates a name from the base name which is correct for the report.- Parameters:
report- Report.baseName- The type to form a name.- Returns:
-
isValidName
Checks whether the name of the report is correct.- Parameters:
name- Checked name.- Returns:
- Result of checking.
-
getObjectWithName
-
generateName
Returns a name of the component.- Parameters:
localizedName- Localized component name.name- Did not localized component name.- Returns:
- Component name.
-
generateName
Returns a name of the component.- Parameters:
localizedName- Localized component name.type- Type of component.- Returns:
- Component name.
-
generateName
Returns a name for the component.- Parameters:
component- Component for which a name is created.- Returns:
- Component name.
-
generateName
Returns a name for the relation.- Parameters:
relation- Relation for which a name is created.- Returns:
- Relation name.
-
generateName
Returns a name for the datasource.- Parameters:
dataSource- Datasource for which a name is created.- Returns:
- Datasource name.
-
createResourceName
-
isResourceNameExists
-