org.apache.camel.component.validator.jing
Class JingValidator
java.lang.Object
org.apache.camel.component.validator.jing.JingValidator
- All Implemented Interfaces:
- org.apache.camel.Processor
public class JingValidator
- extends Object
- implements org.apache.camel.Processor
A validator which uses the Jing library to
validate XML against RelaxNG
- Version:
Constructor Summary |
JingValidator(org.apache.camel.CamelContext camelContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JingValidator
public JingValidator(org.apache.camel.CamelContext camelContext)
process
public void process(org.apache.camel.Exchange exchange)
throws Exception
- Specified by:
process
in interface org.apache.camel.Processor
- Throws:
Exception
getResourceUri
public String getResourceUri()
setResourceUri
public void setResourceUri(String resourceUri)
getSchema
public com.thaiopensource.validate.Schema getSchema()
throws IOException,
com.thaiopensource.validate.IncorrectSchemaException,
SAXException
- Throws:
IOException
com.thaiopensource.validate.IncorrectSchemaException
SAXException
setSchema
public void setSchema(com.thaiopensource.validate.Schema schema)
getInputSource
public InputSource getInputSource()
throws IOException
- Throws:
IOException
setInputSource
public void setInputSource(InputSource inputSource)
getSchemaFactory
public com.thaiopensource.relaxng.SchemaFactory getSchemaFactory()
setSchemaFactory
public void setSchemaFactory(com.thaiopensource.relaxng.SchemaFactory schemaFactory)
getSchemaNamespace
public String getSchemaNamespace()
setSchemaNamespace
public void setSchemaNamespace(String schemaNamespace)
isCompactSyntax
public boolean isCompactSyntax()
setCompactSyntax
public void setCompactSyntax(boolean compactSyntax)
Apache Camel