Package org.apache.jasper.compiler
Class Validator
- java.lang.Object
-
- org.apache.jasper.compiler.Validator
-
class Validator extends java.lang.Object
Performs validation on the page elements. Attributes are checked for mandatory presence, entry value validity, and consistency. As a side effect, some page global value (such as those from page directives) are stored, for later use.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Validator.DirectiveVisitor
A visitor to validate and extract page directive info(package private) static class
Validator.TagExtraInfoVisitor
A visitor for validating TagExtraInfo classes of all tags(package private) static class
Validator.ValidateVisitor
A visitor for validating nodes other than page directives
-
Constructor Summary
Constructors Constructor Description Validator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
validate(Compiler compiler, Node.Nodes page)
private static void
validateXmlView(PageData xmlView, Compiler compiler)
Validate XML view against the TagLibraryValidator classes of all imported tag libraries.
-
-
-
Method Detail
-
validate
public static void validate(Compiler compiler, Node.Nodes page) throws JasperException
- Throws:
JasperException
-
validateXmlView
private static void validateXmlView(PageData xmlView, Compiler compiler) throws JasperException
Validate XML view against the TagLibraryValidator classes of all imported tag libraries.- Throws:
JasperException
-
-