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

public class XsdSchemaCollection extends AbstractSchemaCollection
Schema combines multiple file resources usually with exactly the same target namespace to one single schema instance.
Author:
Christoph Deppisch
  • Field Details

    • schemas

      protected List<String> schemas
      List of schema locations loaded as schema resource instance
  • Constructor Details

    • XsdSchemaCollection

      public XsdSchemaCollection()
  • Method Details

    • loadSchemaResources

      protected Resource loadSchemaResources()
      Loads all schema resource files from schema locations.
      Specified by:
      loadSchemaResources in class AbstractSchemaCollection
    • getSchemas

      public List<String> getSchemas()
      Gets the schemas included in this collection.
      Returns:
    • setSchemas

      public void setSchemas(List<String> schemas)
      Sets the schemas in this collection.
      Parameters:
      schemas - the schema resources to set