|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.xml.xsd.commons.CommonsXsdSchemaCollection
public class CommonsXsdSchemaCollection
Implementation of the XsdSchemaCollection that uses Apache WS-Commons XML Schema.
inline flag to true will result in all referenced schemas
(included and imported) being merged into the referred schema. When including the schemas into a WSDL, this greatly
simplifies the deloyment of the schemas.
| Constructor Summary | |
|---|---|
CommonsXsdSchemaCollection()
Constructs a new, empty instance of the CommonsXsdSchemaCollection. |
|
CommonsXsdSchemaCollection(org.springframework.core.io.Resource[] resources)
Constructs a new instance of the CommonsXsdSchemaCollection based on the given resources. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
XmlValidator |
createValidator()
Creates a XmlValidator based on the schemas contained in this collection. |
XsdSchema[] |
getXsdSchemas()
Returns all schemas contained in this collection. |
void |
setInline(boolean inline)
Defines whether included schemas should be inlinded into the including schema. |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
|
void |
setUriResolver(org.apache.ws.commons.schema.resolver.URIResolver uriResolver)
Sets the WS-Commons uri resolver to use when resolving (relative) schemas. |
void |
setValidationEventHandler(org.apache.ws.commons.schema.ValidationEventHandler validationEventHandler)
Sets the WS-Commons validation event handler to use while parsing schemas. |
void |
setXsds(org.springframework.core.io.Resource[] xsdResources)
Sets the schema resources to be loaded. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommonsXsdSchemaCollection()
CommonsXsdSchemaCollection.
A subsequent call to the setXsds(Resource[]) is required.
public CommonsXsdSchemaCollection(org.springframework.core.io.Resource[] resources)
CommonsXsdSchemaCollection based on the given resources.
resources - the schema resources to load| Method Detail |
|---|
public void setXsds(org.springframework.core.io.Resource[] xsdResources)
xsdResources - the schema resources to be loadedpublic void setInline(boolean inline)
false.
public void setValidationEventHandler(org.apache.ws.commons.schema.ValidationEventHandler validationEventHandler)
public void setUriResolver(org.apache.ws.commons.schema.resolver.URIResolver uriResolver)
DefaultURIResolver which correctly handles schemas on the classpath.
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAware
public void afterPropertiesSet()
throws IOException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIOExceptionpublic XsdSchema[] getXsdSchemas()
XsdSchemaCollection
getXsdSchemas in interface XsdSchemaCollection
public XmlValidator createValidator()
throws IOException
XsdSchemaCollectionXmlValidator based on the schemas contained in this collection.
createValidator in interface XsdSchemaCollectionIOException - in case of I/O errorspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||