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 java.lang.Object
- implements org.apache.camel.Processor
A validator which uses the Jing library to
validate XML against RelaxNG
- Version:
- $Revision$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JingValidator
public JingValidator()
process
public void process(org.apache.camel.Exchange exchange)
throws java.lang.Exception
- Specified by:
process in interface org.apache.camel.Processor
- Throws:
java.lang.Exception
getSchema
public com.thaiopensource.validate.Schema getSchema()
throws java.io.IOException,
com.thaiopensource.validate.IncorrectSchemaException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
com.thaiopensource.validate.IncorrectSchemaException
org.xml.sax.SAXException
setSchema
public void setSchema(com.thaiopensource.validate.Schema schema)
getInputSource
public org.xml.sax.InputSource getInputSource()
throws java.io.IOException
- Throws:
java.io.IOException
setInputSource
public void setInputSource(org.xml.sax.InputSource inputSource)
getSchemaFactory
public com.thaiopensource.relaxng.SchemaFactory getSchemaFactory()
setSchemaFactory
public void setSchemaFactory(com.thaiopensource.relaxng.SchemaFactory schemaFactory)
getSchemaResource
public org.springframework.core.io.Resource getSchemaResource()
setSchemaResource
public void setSchemaResource(org.springframework.core.io.Resource schemaResource)
getSchemaNamespace
public java.lang.String getSchemaNamespace()
setSchemaNamespace
public void setSchemaNamespace(java.lang.String schemaNamespace)
isCompactSyntax
public boolean isCompactSyntax()
setCompactSyntax
public void setCompactSyntax(boolean compactSyntax)
Apache CAMEL