Guvnor - Services API 6.2.0.CR4

org.guvnor.common.services.backend.validation
Interface GenericValidator


public interface GenericValidator

Validator capable of validating generic Kie assets (i.e those that are handled by KieBuilder)


Method Summary
 List<ValidationMessage> validate(org.uberfire.backend.vfs.Path resourcePath, InputStream resource, org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path>... supportingFileFilters)
          Validate an asset.
 

Method Detail

validate

List<ValidationMessage> validate(org.uberfire.backend.vfs.Path resourcePath,
                                 InputStream resource,
                                 org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path>... supportingFileFilters)
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
resource - An InputStream containing the resource to be validated
supportingFileFilters - An optional list of filters to add supporting files for the validation (e.g. .dslr needs .dsl)
Returns:

Guvnor - Services API 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.