Class NameUniquenessChecks
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.naming.NameUniquenessChecks
-
public class NameUniquenessChecks extends Object
A name uniqueness checks of form object.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isUniqueAttributeName(String name, AbstractDataPath path, Form form, IDataSourceInfoAssociationService associationService)
Checks the specified name has already used by one of the form attribute by data path.static boolean
isUniqueAttributeName(String name, Form form)
Checks the specified name has already used by one of the form attribute.static boolean
isUniqueCommandName(String name, Form form)
Checks the specified name has already used by one of the form command.static boolean
isUniqueItemName(String name, Form form)
Checks the specified name has already used by one of the form item.static boolean
isUniqueParameterName(String name, Form form)
Checks the specified name has already used by one of the form parameter.
-
-
-
Method Detail
-
isUniqueItemName
public static boolean isUniqueItemName(String name, Form form)
Checks the specified name has already used by one of the form item.- Parameters:
name
- the name to check, can not benull
or empty.form
- the form which items will be analized, can not benull
.- Returns:
true
if the specified name is unique; otherwise,false
.
-
isUniqueCommandName
public static boolean isUniqueCommandName(String name, Form form)
Checks the specified name has already used by one of the form command.- Parameters:
name
- the name to check, can not benull
or empty.form
- the form which commands will be analized, can not benull
.- Returns:
true
if the specified name is unique; otherwise,false
.
-
isUniqueParameterName
public static boolean isUniqueParameterName(String name, Form form)
Checks the specified name has already used by one of the form parameter.- Parameters:
name
- the name to check, can not benull
or empty.form
- the form which parameters will be analized, can not benull
.- Returns:
true
if the specified name is unique; otherwise,false
.
-
isUniqueAttributeName
public static boolean isUniqueAttributeName(String name, Form form)
Checks the specified name has already used by one of the form attribute.- Parameters:
name
- the name to check, can not benull
or empty.form
- the form which attributes will be analized, can not benull
.- Returns:
true
if the specified name is unique; otherwise,false
.
-
isUniqueAttributeName
public static boolean isUniqueAttributeName(String name, AbstractDataPath path, Form form, IDataSourceInfoAssociationService associationService)
Checks the specified name has already used by one of the form attribute by data path.- Parameters:
name
- the name to check, can not benull
or empty.path
- the data path by which existing names of the form attributes will be analized, can not benull
.form
- the form, can not benull
.- Returns:
true
if the specified name is unique; otherwise,false
.
-
-