|
Spring Web Services Framework | |||||||||
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(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(ResourceLoader resourceLoader)
|
void |
setUriResolver(URIResolver uriResolver)
Sets the WS-Commons uri resolver to use when resolving (relative) schemas. |
void |
setValidationEventHandler(ValidationEventHandler validationEventHandler)
Sets the WS-Commons validation event handler to use while parsing schemas. |
void |
setXsds(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(Resource[] resources)
CommonsXsdSchemaCollection
based on the given resources.
resources
- the schema resources to loadMethod Detail |
---|
public void setXsds(Resource[] xsdResources)
xsdResources
- the schema resources to be loadedpublic void setInline(boolean inline)
false
.
public void setValidationEventHandler(ValidationEventHandler validationEventHandler)
public void setUriResolver(URIResolver uriResolver)
DefaultURIResolver
which correctly handles schemas on the classpath.
public void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader
in interface ResourceLoaderAware
public void afterPropertiesSet() throws IOException
afterPropertiesSet
in interface InitializingBean
IOException
public XsdSchema[] getXsdSchemas()
XsdSchemaCollection
getXsdSchemas
in interface XsdSchemaCollection
public XmlValidator createValidator() throws IOException
XsdSchemaCollection
XmlValidator
based on the schemas contained in this collection.
createValidator
in interface XsdSchemaCollection
IOException
- in case of I/O errorspublic String toString()
toString
in class Object
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |