public class XsdSchemaRepository extends Object implements org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
XsdSchemaRepository() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCitrusSchema(String schemaName)
Adds Citrus message schema to repository if available on classpath.
|
void |
afterPropertiesSet() |
boolean |
canValidate(Document doc)
Find the matching schema for document using given schema mapping strategy.
|
List<String> |
getLocations()
Gets the locations.
|
String |
getName()
Gets the name.
|
XsdSchemaMappingStrategy |
getSchemaMappingStrategy()
Gets the schema mapping strategy.
|
List<org.springframework.xml.xsd.XsdSchema> |
getSchemas()
Get the list of known schemas.
|
void |
setBeanName(String name) |
void |
setLocations(List<String> locations)
Sets the locations.
|
void |
setSchemaMappingStrategy(XsdSchemaMappingStrategy schemaMappingStrategy)
Set the schema mapping strategy.
|
void |
setSchemas(List<org.springframework.xml.xsd.XsdSchema> schemas)
Set the list of known schemas.
|
public boolean canValidate(Document doc)
doc
- the document instance to validate.public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected void addCitrusSchema(String schemaName) throws IOException, SAXException, ParserConfigurationException
schemaName
- The name of the schema within the citrus schema packageIOException
SAXException
ParserConfigurationException
public List<org.springframework.xml.xsd.XsdSchema> getSchemas()
public void setSchemas(List<org.springframework.xml.xsd.XsdSchema> schemas)
schemas
- the schemas to setpublic void setSchemaMappingStrategy(XsdSchemaMappingStrategy schemaMappingStrategy)
schemaMappingStrategy
- the schemaMappingStrategy to setpublic XsdSchemaMappingStrategy getSchemaMappingStrategy()
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public String getName()
public List<String> getLocations()
Copyright © 2008–2018 ConSol Software GmbH. All rights reserved.