Package org.citrusframework.xml.schema
Class RootQNameSchemaMappingStrategy
java.lang.Object
org.citrusframework.xml.schema.AbstractSchemaMappingStrategy
org.citrusframework.xml.schema.RootQNameSchemaMappingStrategy
- All Implemented Interfaces:
XsdSchemaMappingStrategy
Mapping strategy uses the root element local name to find matching schema
instance.
- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.xml.xsd.XsdSchemagetSchema(List<org.springframework.xml.xsd.XsdSchema> schemas, String namespace, String elementName) Subclasses must override this method in order to detect schema for target namespace and/or root element name.voidsetMappings(Map<String, org.springframework.xml.xsd.XsdSchema> mappings) Sets the mappings.Methods inherited from class org.citrusframework.xml.schema.AbstractSchemaMappingStrategy
getSchema
-
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:AbstractSchemaMappingStrategySubclasses must override this method in order to detect schema for target namespace and/or root element name.- Specified by:
getSchemain classAbstractSchemaMappingStrategy- Returns:
-
setMappings
Sets the mappings.- Parameters:
mappings- the mappings to set
-