Package org.citrusframework.xml.schema
Class AbstractSchemaMappingStrategy
java.lang.Object
org.citrusframework.xml.schema.AbstractSchemaMappingStrategy
- All Implemented Interfaces:
XsdSchemaMappingStrategy
- Direct Known Subclasses:
RootQNameSchemaMappingStrategy,TargetNamespaceSchemaMappingStrategy
public abstract class AbstractSchemaMappingStrategy
extends Object
implements XsdSchemaMappingStrategy
Abstract schema mapping strategy extracts target namespace and root element name
for subclasses.
- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.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.org.springframework.xml.xsd.XsdSchemaGets the schema for given namespace or root element name.
-
Constructor Details
-
AbstractSchemaMappingStrategy
public AbstractSchemaMappingStrategy()
-
-
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:
-
getSchema
public abstract org.springframework.xml.xsd.XsdSchema getSchema(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.- Parameters:
schemas-namespace-elementName-- Returns:
-