Class FormAttributeService

    • Constructor Detail

      • FormAttributeService

        public FormAttributeService()
    • Method Detail

      • isMainType

        public static boolean isMainType​(TypeDescription type)
        Check is main type
        Parameters:
        type - the TypeDescription
        Returns:
        true if type is main, false if is not main type
      • setMainAttribute

        public void setMainAttribute​(FormAttribute newMainAttribute,
                                     boolean value)
        The method sets main attribute
        Parameters:
        newMainAttribute - the FormAttribute
        value -
      • getDataPath

        public AbstractDataPath getDataPath​(AbstractFormAttribute attribute,
                                            Form form)
        Returns data path of the attribute.
        Parameters:
        attribute - the form attribute, cannot be null
        form - the corresponding form, cannot be null
        Returns:
        data path, never null
      • updateFormItemsType

        public void updateFormItemsType​(AbstractDataPath path,
                                        Form form)
        Updates type for all form items with the given data path.
        Parameters:
        path - the data path, cannot be null
        form - the form, cannot be null
      • removeAllColumnsOfAttribute

        public void removeAllColumnsOfAttribute​(AbstractFormAttribute attribute,
                                                boolean deletingMode)
        Method removes all columns of attribute
        Parameters:
        attribute - the attribute for which removes all children columns
        deleting - is deleting mode. If true then clears all coincidenting data path, false deletes only invalid a data path.