Package com.consol.citrus.xml.schema
Class SchemaMappingStrategyChain
- java.lang.Object
-
- com.consol.citrus.xml.schema.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 Summary
Constructors Constructor Description SchemaMappingStrategyChain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.xml.xsd.XsdSchemagetSchema(List<org.springframework.xml.xsd.XsdSchema> schemas, Document doc)Gets the schema for given namespace or root element name.voidsetStrategies(List<XsdSchemaMappingStrategy> strategies)Sets the strategies.
-
-
-
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:
getSchemain interfaceXsdSchemaMappingStrategy- 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
-
-