Package org.citrusframework.xml.schema
Class XsdSchemaCollection
java.lang.Object
org.springframework.xml.xsd.SimpleXsdSchema
org.citrusframework.xml.schema.AbstractSchemaCollection
org.citrusframework.xml.schema.XsdSchemaCollection
- All Implemented Interfaces:
InitializingPhase,org.springframework.beans.factory.InitializingBean,org.springframework.xml.xsd.XsdSchema
Schema combines multiple file resources usually with exactly the same target namespace to
one single schema instance.
- Author:
- Christoph Deppisch
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of schema locations loaded as schema resource instanceFields inherited from class org.citrusframework.xml.schema.AbstractSchemaCollection
importedSchemas, schemaResources, W3C_XML_SCHEMA_NS_URI, WWW_W3_ORG_2000_XMLNS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the schemas included in this collection.protected ResourceLoads all schema resource files from schema locations.voidsetSchemas(List<String> schemas) Sets the schemas in this collection.Methods inherited from class org.citrusframework.xml.schema.AbstractSchemaCollection
addImportedSchemas, addIncludedSchemas, createValidator, getSchemaResources, initialize, toSpringResourceMethods inherited from class org.springframework.xml.xsd.SimpleXsdSchema
afterPropertiesSet, getSource, getTargetNamespace, setXsd, toString
-
Field Details
-
schemas
List of schema locations loaded as schema resource instance
-
-
Constructor Details
-
XsdSchemaCollection
public XsdSchemaCollection()
-
-
Method Details
-
loadSchemaResources
Loads all schema resource files from schema locations.- Specified by:
loadSchemaResourcesin classAbstractSchemaCollection
-
getSchemas
Gets the schemas included in this collection.- Returns:
-
setSchemas
Sets the schemas in this collection.- Parameters:
schemas- the schema resources to set
-