Class ConfigurableFlowValidatable

    • Constructor Detail

      • ConfigurableFlowValidatable

        public ConfigurableFlowValidatable​(ConfigurableFlowController controller,
                                           org.zkoss.zk.ui.Component parent)
    • Method Detail

      • getContainer

        public org.zkoss.zk.ui.Component getContainer()
        Description copied from interface: ValidatableContainer
        Container component
        Returns:
        component containing fields
      • getCurrentObject

        public java.lang.Object getCurrentObject​(java.lang.String fullPathQualifier)
        Description copied from interface: ValidatableContainer
        Gets a full object that was validated for specified violation path
        Parameters:
        fullPathQualifier - path of violation
        Returns:
        object that was validated or null if no object matches provided path
      • isRootPath

        public boolean isRootPath​(java.lang.String path)
        Description copied from interface: ValidatableContainer
        Checks whether provided path should be treated as root path.

        Any validation path that matches containers restrictions, yet does not specify any particular attribute/qualifier (i.e. points exactly to one of validated objects) should be considered as root path. In general, if a path is validated by container or is a parent of validated path, but does not point any particular attribute, then it is a root path. Empty string should always be considered as root path, cause they are always a kind of parent of validated path.

        Returns:
        true if path is validated by container (or is a parent path of such) and does not point any attribute
      • getCurrentPrefix

        public java.lang.String getCurrentPrefix​(java.lang.String fullPathQualifier)
      • getCurrentObjectPath

        public java.lang.String getCurrentObjectPath​(java.lang.String path)
        Description copied from interface: ValidatableContainer
        Alters provided path (that comes from violation) so that is relative to current object
        Parameters:
        path - violation path
        Returns:
        path relative to validated object, empty string if path points directly to validated object or null if path does not match any validated objects
      • getCurrentValidationResult

        public ValidationResult getCurrentValidationResult​(java.lang.String path)
        Description copied from interface: ValidatableContainer
        Gets validation results of container related to provided path (relative to container).

        Returned container may be editable and notify listeners about changes. If a returned container is a wrapper of other container, then any changes made to the wrapper should be propagated to wrapped one and all listeners should be notified. It is not sure that changes made to wrapped one will be propagated to the wrapper. Also notifications of wrapped container may not be transferred to listeners of a wrapper.

        Returns:
        validation results found or ValidationResult.EMPTY if no violations found for specified path