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
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema) Create a new instance of theCommonsXsdSchemaclass with the specifiedXmlSchemareference.protectedCommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema, org.apache.ws.commons.schema.XmlSchemaCollection collection) Create a new instance of theCommonsXsdSchemaclass with the specifiedXmlSchemaandXmlSchemaCollectionreference. -
Method Summary
Modifier and TypeMethodDescriptionCreates aXmlValidatorbased on the schema.QName[]org.apache.ws.commons.schema.XmlSchemaReturns the wrapped CommonsXmlSchemaobject.Returns theSourceof 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 theCommonsXsdSchemaclass with the specifiedXmlSchemareference.- Parameters:
schema- the CommonsXmlSchemaobject; must not benull- Throws:
IllegalArgumentException- if the suppliedschemaisnull
-
CommonsXsdSchema
protected CommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema, org.apache.ws.commons.schema.XmlSchemaCollection collection) Create a new instance of theCommonsXsdSchemaclass with the specifiedXmlSchemaandXmlSchemaCollectionreference.- Parameters:
schema- the CommonsXmlSchemaobject; must not benullcollection- the CommonsXmlSchemaCollectionobject; can benull- Throws:
IllegalArgumentException- if the suppliedschemaisnull
-
-
Method Details
-
getTargetNamespace
Description copied from interface:XsdSchemaReturns the target namespace of this schema.- Specified by:
getTargetNamespacein interfaceXsdSchema- Returns:
- the target namespace
-
getElementNames
-
getSource
Description copied from interface:XsdSchemaReturns theSourceof the schema. -
createValidator
Description copied from interface:XsdSchemaCreates aXmlValidatorbased on the schema.- Specified by:
createValidatorin interfaceXsdSchema- Returns:
- a validator for this schema
-
getSchema
public org.apache.ws.commons.schema.XmlSchema getSchema()Returns the wrapped CommonsXmlSchemaobject. -
toString
-