org.apache.camel.component.validator.jing
Class JingValidator

java.lang.Object
  extended by 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)
           
 
Method Summary
 InputSource getInputSource()
           
 String getResourceUri()
           
 com.thaiopensource.validate.Schema getSchema()
           
 com.thaiopensource.relaxng.SchemaFactory getSchemaFactory()
           
 String getSchemaNamespace()
           
 boolean isCompactSyntax()
           
 void process(org.apache.camel.Exchange exchange)
           
 void setCompactSyntax(boolean compactSyntax)
           
 void setInputSource(InputSource inputSource)
           
 void setResourceUri(String resourceUri)
           
 void setSchema(com.thaiopensource.validate.Schema schema)
           
 void setSchemaFactory(com.thaiopensource.relaxng.SchemaFactory schemaFactory)
           
 void setSchemaNamespace(String schemaNamespace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JingValidator

public JingValidator(org.apache.camel.CamelContext camelContext)
Method Detail

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