Package org.citrusframework.xml.schema
Class SchemaMappingStrategyChain
java.lang.Object
org.citrusframework.xml.schema.SchemaMappingStrategyChain
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.xml.xsd.XsdSchemaGets the schema for given namespace or root element name.voidsetStrategies(List<XsdSchemaMappingStrategy> strategies) Sets the strategies.
-
Constructor Details
-
SchemaMappingStrategyChain
public SchemaMappingStrategyChain()
-
-
Method Details
-
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
Sets the strategies.- Parameters:
strategies- the strategies to set
-