Guvnor - Services API 6.0.0.CR2

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.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path>... supportingFileFilters)
          Validate an asset.
 

Method Detail

validate

List<ValidationMessage> validate(org.uberfire.backend.vfs.Path resourcePath,
                                 InputStream resource,
                                 org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.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.0.0.CR2

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