Package org.citrusframework.xml.schema
Class AbstractSchemaCollection
java.lang.Object
org.springframework.xml.xsd.SimpleXsdSchema
org.citrusframework.xml.schema.AbstractSchemaCollection
- All Implemented Interfaces:
InitializingPhase,org.springframework.beans.factory.InitializingBean,org.springframework.xml.xsd.XsdSchema
- Direct Known Subclasses:
WsdlXsdSchema,XsdSchemaCollection
public abstract class AbstractSchemaCollection
extends org.springframework.xml.xsd.SimpleXsdSchema
implements InitializingPhase
- Since:
- 2.4
- Author:
- Christoph Deppisch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddImportedSchemas(javax.wsdl.extensions.schema.Schema schema) Recursively add all imported schemas as schema resource.protected voidaddIncludedSchemas(javax.wsdl.extensions.schema.Schema schema) Recursively add all included schemas as schema resource.org.springframework.xml.validation.XmlValidatorGets the schema resources.voidprotected abstract ResourceLoads all schema resource files from schema locations.static org.springframework.core.io.ResourcetoSpringResource(Resource resource) Methods inherited from class org.springframework.xml.xsd.SimpleXsdSchema
afterPropertiesSet, getSource, getTargetNamespace, setXsd, toString
-
Field Details
-
schemaResources
List of schema resources -
importedSchemas
Imported schemas -
WWW_W3_ORG_2000_XMLNS
Official xmlns namespace- See Also:
-
W3C_XML_SCHEMA_NS_URI
- See Also:
-
-
Constructor Details
-
AbstractSchemaCollection
public AbstractSchemaCollection()
-
-
Method Details
-
createValidator
public org.springframework.xml.validation.XmlValidator createValidator()- Specified by:
createValidatorin interfaceorg.springframework.xml.xsd.XsdSchema- Overrides:
createValidatorin classorg.springframework.xml.xsd.SimpleXsdSchema
-
toSpringResource
-
addImportedSchemas
protected void addImportedSchemas(javax.wsdl.extensions.schema.Schema schema) throws javax.wsdl.WSDLException, IOException, TransformerException, TransformerFactoryConfigurationError Recursively add all imported schemas as schema resource. This is necessary when schema import are located in jar files. If they are not added immediately the reference to them is lost.- Parameters:
schema-- Throws:
javax.wsdl.WSDLExceptionIOExceptionTransformerExceptionTransformerFactoryConfigurationError
-
addIncludedSchemas
protected void addIncludedSchemas(javax.wsdl.extensions.schema.Schema schema) throws javax.wsdl.WSDLException, IOException, TransformerException, TransformerFactoryConfigurationError Recursively add all included schemas as schema resource.- Throws:
javax.wsdl.WSDLExceptionIOExceptionTransformerExceptionTransformerFactoryConfigurationError
-
initialize
public void initialize()- Specified by:
initializein interfaceInitializingPhase
-
loadSchemaResources
Loads all schema resource files from schema locations. -
getSchemaResources
Gets the schema resources.- Returns:
-