Class SimpleXsdSchema

java.lang.Object
org.springframework.xml.xsd.SimpleXsdSchema
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, XsdSchema

public class SimpleXsdSchema extends Object implements XsdSchema, org.springframework.beans.factory.InitializingBean
The default XsdSchema implementation.

Allows a XSD to be set by the setXsd(Resource), or directly in the constructor.

Since:
1.5.0
Author:
Mark LaFond, Arjen Poutsma, Greg Turnquist
  • Constructor Details

    • SimpleXsdSchema

      public SimpleXsdSchema()
      Create a new instance of the SimpleXsdSchema class.

      A subsequent call to the setXsd(Resource) method is required.

    • SimpleXsdSchema

      public SimpleXsdSchema(org.springframework.core.io.Resource xsdResource)
      Create a new instance of the SimpleXsdSchema class with the specified resource.
      Parameters:
      xsdResource - the XSD resource; must not be null
      Throws:
      IllegalArgumentException - if the supplied xsdResource is null
  • Method Details