|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.components.validation.impl.AbstractSchemaParser
org.apache.cocoon.components.validation.jing.JingSchemaParser
A SchemaParser
implementation for the RELAX NG grammar using the
JING validation
engine.
Field Summary |
Fields inherited from class org.apache.cocoon.components.validation.impl.AbstractSchemaParser |
entityResolver, logger, serviceManager, sourceResolver |
Fields inherited from interface org.apache.cocoon.components.validation.SchemaParser |
ROLE |
Constructor Summary | |
JingSchemaParser()
Create a new JingSchemaParser instance. |
Method Summary | |
String[] |
getSupportedGrammars()
Return an array of String s containing all schema grammars
supported by this SchemaParser . |
Schema |
parseSchema(Source source,
String grammar)
Parse the specified Source and return a new Schema . |
Methods inherited from class org.apache.cocoon.components.validation.impl.AbstractSchemaParser |
dispose, enableLogging, initialize, service |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JingSchemaParser()
Create a new JingSchemaParser
instance.
Method Detail |
public Schema parseSchema(Source source, String grammar) throws SAXException, IOException
Parse the specified Source
and return a new Schema
.
The returned Schema
must be able to validate multiple documents
via multiple invocations of Schema.createValidator(ErrorHandler)
.
parseSchema
in interface SchemaParser
source
- the Source
associated with the Schema
to return.
Schema
instance.
SAXException
- if a grammar error occurred parsing the schema.
IOException
- if an I/O error occurred parsing the schema.
IllegalArgumentException
- if the specified grammar type is not one
of the grammar types returned by the
getSupportedGrammars()
method.public String[] getSupportedGrammars()
Return an array of String
s containing all schema grammars
supported by this SchemaParser
.
The JingSchemaParser
supports only the
RELAX NG
grammar.
getSupportedGrammars
in interface SchemaParser
String
s.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |