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) throws IOException, SAXException
doc - the document instance to validate.IOExceptionSAXExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected void addCitrusSchema(String schemaName) throws IOException, SAXException, ParserConfigurationException
schemaName - IOExceptionSAXExceptionParserConfigurationExceptionpublic 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.BeanNameAwarepublic String getName()
public List<String> getLocations()
Copyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.