Package org.eclipse.xtext.validation
Interface IResourceValidator
-
- All Known Implementing Classes:
ReducedXtextResourceValidator,ResourceValidatorImpl
public interface IResourceValidator
-
-
Field Summary
Fields Modifier and Type Field Description static IResourceValidatorNULL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Issue>validate(org.eclipse.emf.ecore.resource.Resource resource, CheckMode mode, org.eclipse.xtext.util.CancelIndicator indicator)Validates the given resource according to themode.
-
-
-
Field Detail
-
NULL
static final IResourceValidator NULL
-
-
Method Detail
-
validate
java.util.List<Issue> validate(org.eclipse.emf.ecore.resource.Resource resource, CheckMode mode, org.eclipse.xtext.util.CancelIndicator indicator) throws OperationCanceledError
Validates the given resource according to themode. An optionalCancelIndicatormay be provide to allow the method to exit early in case the long running validation was canceled by the user.- Returns:
- all issues of the underlying resources (includes syntax errors as well as semantic problems)
- Throws:
OperationCanceledError- if the validation was cancelled, the method may exit with anOperationCanceledError
-
-