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 java.lang.Object
implements org.apache.camel.Processor

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

Version:
$Revision$

Constructor Summary
JingValidator()
           
 
Method Summary
 org.xml.sax.InputSource getInputSource()
           
 com.thaiopensource.validate.Schema getSchema()
           
 com.thaiopensource.relaxng.SchemaFactory getSchemaFactory()
           
 java.lang.String getSchemaNamespace()
           
 org.springframework.core.io.Resource getSchemaResource()
           
 boolean isCompactSyntax()
           
 void process(org.apache.camel.Exchange exchange)
           
 void setCompactSyntax(boolean compactSyntax)
           
 void setInputSource(org.xml.sax.InputSource inputSource)
           
 void setSchema(com.thaiopensource.validate.Schema schema)
           
 void setSchemaFactory(com.thaiopensource.relaxng.SchemaFactory schemaFactory)
           
 void setSchemaNamespace(java.lang.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(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