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

java.lang.Object
  extended by org.apache.camel.component.validator.jing.JingValidator
All Implemented Interfaces:
Processor

public class JingValidator
extends Object
implements Processor

A validator which uses the Jing library to validate XML against RelaxNG

Version:

Constructor Summary
JingValidator()
           
 
Method Summary
 InputSource getInputSource()
           
 com.thaiopensource.validate.Schema getSchema()
           
 com.thaiopensource.relaxng.SchemaFactory getSchemaFactory()
           
 String getSchemaNamespace()
           
 org.springframework.core.io.Resource getSchemaResource()
           
 boolean isCompactSyntax()
           
 void process(Exchange exchange)
          Processes the message exchange
 void setCompactSyntax(boolean compactSyntax)
           
 void setInputSource(InputSource inputSource)
           
 void setSchema(com.thaiopensource.validate.Schema schema)
           
 void setSchemaFactory(com.thaiopensource.relaxng.SchemaFactory schemaFactory)
           
 void setSchemaNamespace(String schemaNamespace)
           
 void setSchemaResource(org.springframework.core.io.Resource schemaResource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JingValidator

public JingValidator()
Method Detail

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Specified by:
process in interface Processor
Parameters:
exchange - the message exchange
Throws:
Exception - if an internal processing error has occurred.

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)

getSchemaResource

public org.springframework.core.io.Resource getSchemaResource()

setSchemaResource

public void setSchemaResource(org.springframework.core.io.Resource schemaResource)

getSchemaNamespace

public String getSchemaNamespace()

setSchemaNamespace

public void setSchemaNamespace(String schemaNamespace)

isCompactSyntax

public boolean isCompactSyntax()

setCompactSyntax

public void setCompactSyntax(boolean compactSyntax)


Apache CAMEL