| java.lang.Object org.apache.cocoon.components.validation.impl.AbstractValidator org.apache.cocoon.components.validation.impl.DefaultValidator org.apache.cocoon.components.validation.impl.CachingValidator
detectGrammar | protected String detectGrammar(Source source) throws IOException, SAXException, ValidatorException(Code) | | Attempt to detect the grammar language used by the schema identified
by the specified
Source .
The grammar languages detected will be cached until the
Source 's
SourceValidity declares that the schema is valid.
Parameters: source - a Source instance pointing to the schema to be analyzed. throws: IOException - if an I/O error occurred accessing the schema. throws: SAXException - if an error occurred parsing the schema. throws: ValidatorException - if the language of the schema could not be guessed. |
dispose | public void dispose()(Code) | | Dispose this component instance.
|
getSchema | public Schema getSchema(SchemaParser parser, Source source, String grammar) throws IOException, SAXException(Code) | | Return a
Schema instance from the specified
SchemaParser associated with the given
Source and grammar language.
This method will overriding the default behaviour specified by the
AbstractValidator.getSchema(SchemaParserSourceString) method,
and supports cacheability of
Schema instances through the use of
a
Store looked up using the
Store.TRANSIENT_STORE Avalon
role.
Cached
Schema instances will be retained in the configured
Store until the checks on the validity obtained calling the
Schema.getValidity method will declare that the schema is still
valid.
Parameters: parser - the SchemaParser producing the Schema. Parameters: source - the Source associated with the Schema to return. Parameters: grammar - the grammar language of the schema to produce. throws: SAXException - if a grammar error occurred parsing the schema. throws: IOException - if an I/O error occurred parsing the schema. |
initialize | public void initialize() throws Exception(Code) | | Initialize this component instance.
|
Methods inherited from org.apache.cocoon.components.validation.impl.AbstractValidator | protected String detectGrammar(Source source) throws IOException, SAXException, ValidatorException(Code)(Java Doc) public void dispose()(Code)(Java Doc) public void enableLogging(Logger logger)(Code)(Java Doc) protected Schema getSchema(SchemaParser parser, Source source, String grammar) throws IOException, SAXException(Code)(Java Doc) public ValidationHandler getValidationHandler(String uri) throws IOException, SAXException, ValidatorException(Code)(Java Doc) public ValidationHandler getValidationHandler(String uri, String grammar) throws IOException, SAXException, ValidatorException(Code)(Java Doc) public ValidationHandler getValidationHandler(String uri, ErrorHandler errorHandler) throws IOException, SAXException, ValidatorException(Code)(Java Doc) public ValidationHandler getValidationHandler(String uri, String grammar, ErrorHandler errorHandler) throws IOException, SAXException, ValidatorException(Code)(Java Doc) public ValidationHandler getValidationHandler(Source source) throws IOException, SAXException, ValidatorException(Code)(Java Doc) public ValidationHandler getValidationHandler(Source source, String grammar) throws IOException, SAXException, ValidatorException(Code)(Java Doc) public ValidationHandler getValidationHandler(Source source, ErrorHandler errorHandler) throws IOException, SAXException, ValidatorException(Code)(Java Doc) public ValidationHandler getValidationHandler(Source source, String grammar, ErrorHandler errorHandler) throws IOException, SAXException, ValidatorException(Code)(Java Doc) abstract protected SchemaParser lookupParserByGrammar(String grammar)(Code)(Java Doc) abstract protected SchemaParser lookupParserByName(String name)(Code)(Java Doc) abstract protected void releaseParser(SchemaParser parser)(Code)(Java Doc) public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)
|
|
|