public class Validator extends Object
| Modifier and Type | Method and Description |
|---|---|
Boolean |
isDescriptorFilePresent(String packagingType)
It validates that the mandatory descriptor files are present
|
Boolean |
isPackagingTypeValid(String packagingType)
It validates that the provided packaging types is a valid one
|
Boolean |
isProjectStructureValid(String packagingType)
It validates the project folder structure is valid
|
Boolean |
isProjectValid(String packagingType)
Ensure a project contained in the projectBaseDir is valid based on its packagin type.
|
public Validator(Path projectBaseDir)
public Boolean isProjectValid(String packagingType) throws ValidationException
packagingType - defines the package type of the project to validateValidationException - if the project is invalidpublic Boolean isPackagingTypeValid(String packagingType) throws ValidationException
packagingType - defines the package type of the project to validateValidationException - if the packaging type is unknownpublic Boolean isProjectStructureValid(String packagingType) throws ValidationException
packagingType - defines the package type of the project to validateValidationException - if the project's structure is invalidpublic Boolean isDescriptorFilePresent(String packagingType) throws ValidationException
packagingType - defines the package type of the project to validateValidationException - if the project's descriptor files are missingCopyright © 2017 MuleSoft Inc. All rights reserved.