com.consol.citrus.xml.schema
Class MultiResourceXsdSchema

java.lang.Object
  extended by org.springframework.xml.xsd.SimpleXsdSchema
      extended by com.consol.citrus.xml.schema.MultiResourceXsdSchema
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.xml.xsd.XsdSchema

public class MultiResourceXsdSchema
extends org.springframework.xml.xsd.SimpleXsdSchema
implements org.springframework.beans.factory.InitializingBean

Schema combines multiple file resources usually with exactly the same target namespace to one single schema instance.

Author:
Christoph Deppisch

Field Summary
static String W3C_XML_SCHEMA_NS_URI
           
 
Constructor Summary
MultiResourceXsdSchema()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.xml.validation.XmlValidator createValidator()
           
 void setSchemas(org.springframework.core.io.Resource[] schemas)
           
 
Methods inherited from class org.springframework.xml.xsd.SimpleXsdSchema
getSource, getTargetNamespace, setXsd, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

W3C_XML_SCHEMA_NS_URI

public static final String W3C_XML_SCHEMA_NS_URI
See Also:
Constant Field Values
Constructor Detail

MultiResourceXsdSchema

public MultiResourceXsdSchema()
Method Detail

createValidator

public org.springframework.xml.validation.XmlValidator createValidator()
                                                                throws IOException
Specified by:
createValidator in interface org.springframework.xml.xsd.XsdSchema
Overrides:
createValidator in class org.springframework.xml.xsd.SimpleXsdSchema
Throws:
IOException

afterPropertiesSet

public void afterPropertiesSet()
                        throws ParserConfigurationException,
                               IOException,
                               SAXException
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.xml.xsd.SimpleXsdSchema
Throws:
ParserConfigurationException
IOException
SAXException

setSchemas

public void setSchemas(org.springframework.core.io.Resource[] schemas)
Parameters:
schemas - the schema resources to set


Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.