Interface GenericValidator


  • public interface GenericValidator
    Validator capable of validating generic Kie assets (i.e those that are handled by KieBuilder)
    • Method Detail

      • validate

        List<ValidationMessage> validate​(org.uberfire.backend.vfs.Path resourcePath,
                                         String content)
        Validate an asset. Validation needs to know the Project in which the resource resides to be able to determine classes within the project's dependencies. The resourcePath is used to determine the containing project. The resourcePath is also used to determine the destination Path in Kie VFS.
        Parameters:
        resourcePath - The VFS Path of the resource
        content - An String containing the resource to be validated.
        Returns:
        Validation messages or an empty Collection if none.
      • validate

        List<ValidationMessage> validate​(org.uberfire.backend.vfs.Path resourcePath)
        Validate an asset. Validation needs to know the Project in which the resource resides to be able to determine classes within the project's dependencies. The resourcePath is used to determine the containing project. The resourcePath is also used to determine the destination Path in Kie VFS. The content of the resource is loaded from the provided Path - which is required when validating assets for which there is no transient in-memory representation; e.g. XLS decision tables.
        Parameters:
        resourcePath - The VFS Path of the resource
        Returns:
        Validation messages or an empty Collection if none.