Class CommonsXsdSchema
java.lang.Object
org.springframework.xml.xsd.commons.CommonsXsdSchema
- All Implemented Interfaces:
XsdSchema
Implementation of the
XsdSchema
interface that uses Apache WS-Commons XML Schema.- Since:
- 1.5.0
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
CommonsXsdSchema
(org.apache.ws.commons.schema.XmlSchema schema) Create a new instance of theCommonsXsdSchema
class with the specifiedXmlSchema
reference.protected
CommonsXsdSchema
(org.apache.ws.commons.schema.XmlSchema schema, org.apache.ws.commons.schema.XmlSchemaCollection collection) Create a new instance of theCommonsXsdSchema
class with the specifiedXmlSchema
andXmlSchemaCollection
reference. -
Method Summary
Modifier and TypeMethodDescriptionCreates aXmlValidator
based on the schema.QName[]
org.apache.ws.commons.schema.XmlSchema
Returns the wrapped CommonsXmlSchema
object.Returns theSource
of the schema.Returns the target namespace of this schema.toString()
-
Constructor Details
-
CommonsXsdSchema
protected CommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema) Create a new instance of theCommonsXsdSchema
class with the specifiedXmlSchema
reference.- Parameters:
schema
- the CommonsXmlSchema
object; must not benull
- Throws:
IllegalArgumentException
- if the suppliedschema
isnull
-
CommonsXsdSchema
protected CommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema, org.apache.ws.commons.schema.XmlSchemaCollection collection) Create a new instance of theCommonsXsdSchema
class with the specifiedXmlSchema
andXmlSchemaCollection
reference.- Parameters:
schema
- the CommonsXmlSchema
object; must not benull
collection
- the CommonsXmlSchemaCollection
object; can benull
- Throws:
IllegalArgumentException
- if the suppliedschema
isnull
-
-
Method Details
-
getTargetNamespace
Description copied from interface:XsdSchema
Returns the target namespace of this schema.- Specified by:
getTargetNamespace
in interfaceXsdSchema
- Returns:
- the target namespace
-
getElementNames
-
getSource
Description copied from interface:XsdSchema
Returns theSource
of the schema. -
createValidator
Description copied from interface:XsdSchema
Creates aXmlValidator
based on the schema.- Specified by:
createValidator
in interfaceXsdSchema
- Returns:
- a validator for this schema
-
getSchema
public org.apache.ws.commons.schema.XmlSchema getSchema()Returns the wrapped CommonsXmlSchema
object. -
toString
-