Class SchemaMappingStrategyChain

  • All Implemented Interfaces:
    XsdSchemaMappingStrategy

    public class SchemaMappingStrategyChain
    extends Object
    implements XsdSchemaMappingStrategy
    Special schema mapping strategy delegating to several other strategies in a mapping chain. The first mapping strategy finding a proper schema wins.
    Author:
    Christoph Deppisch
    • Constructor Detail

      • SchemaMappingStrategyChain

        public SchemaMappingStrategyChain()
    • Method Detail

      • getSchema

        public org.springframework.xml.xsd.XsdSchema getSchema​(List<org.springframework.xml.xsd.XsdSchema> schemas,
                                                               Document doc)
        Gets the schema for given namespace or root element name.
        Specified by:
        getSchema in interface XsdSchemaMappingStrategy
        Parameters:
        schemas - list of available schemas.
        doc - document instance to validate.
        Returns:
      • setStrategies

        public void setStrategies​(List<XsdSchemaMappingStrategy> strategies)
        Sets the strategies.
        Parameters:
        strategies - the strategies to set