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. |
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 resourceresource - An InputStream containing the resource to be validatedsupportingFileFilters - An optional list of filters to add
supporting files for the validation (e.g. .dslr needs .dsl)
- Returns:
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.