Class RootQNameSchemaMappingStrategy

java.lang.Object
org.citrusframework.xml.schema.AbstractSchemaMappingStrategy
org.citrusframework.xml.schema.RootQNameSchemaMappingStrategy
All Implemented Interfaces:
XsdSchemaMappingStrategy

public class RootQNameSchemaMappingStrategy extends AbstractSchemaMappingStrategy
Mapping strategy uses the root element local name to find matching schema instance.
Author:
Christoph Deppisch
  • Constructor Details

    • RootQNameSchemaMappingStrategy

      public RootQNameSchemaMappingStrategy()
  • Method Details

    • getSchema

      public org.springframework.xml.xsd.XsdSchema getSchema(List<org.springframework.xml.xsd.XsdSchema> schemas, String namespace, String elementName)
      Description copied from class: AbstractSchemaMappingStrategy
      Subclasses must override this method in order to detect schema for target namespace and/or root element name.
      Specified by:
      getSchema in class AbstractSchemaMappingStrategy
      Returns:
    • setMappings

      public void setMappings(Map<String,org.springframework.xml.xsd.XsdSchema> mappings)
      Sets the mappings.
      Parameters:
      mappings - the mappings to set