Class NameUniquenessChecks


  • public class NameUniquenessChecks
    extends Object
    A name uniqueness checks of form object.
    • 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 be null or empty.
        form - the form which items will be analized, can not be null.
        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 be null or empty.
        form - the form which commands will be analized, can not be null.
        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 be null or empty.
        form - the form which parameters will be analized, can not be null.
        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 be null or empty.
        form - the form which attributes will be analized, can not be null.
        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 be null or empty.
        path - the data path by which existing names of the form attributes will be analized, can not be null.
        form - the form, can not be null.
        Returns:
        true if the specified name is unique; otherwise, false.