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 SummaryConstructorsModifierConstructorDescriptionprotectedCommonsXsdSchema(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 SummaryModifier 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- 
CommonsXsdSchemaprotected CommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema) Create a new instance of theCommonsXsdSchemaclass with the specifiedXmlSchemareference.- Parameters:
- schema- the Commons- XmlSchemaobject; must not be- null
- Throws:
- IllegalArgumentException- if the supplied- schemais- null
 
- 
CommonsXsdSchemaprotected 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 Commons- XmlSchemaobject; must not be- null
- collection- the Commons- XmlSchemaCollectionobject; can be- null
- Throws:
- IllegalArgumentException- if the supplied- schemais- null
 
 
- 
- 
Method Details- 
getTargetNamespaceDescription copied from interface:XsdSchemaReturns the target namespace of this schema.- Specified by:
- getTargetNamespacein interface- XsdSchema
- Returns:
- the target namespace
 
- 
getElementNames
- 
getSourceDescription copied from interface:XsdSchemaReturns theSourceof the schema.
- 
createValidatorDescription copied from interface:XsdSchemaCreates aXmlValidatorbased on the schema.- Specified by:
- createValidatorin interface- XsdSchema
- Returns:
- a validator for this schema
 
- 
getSchemapublic org.apache.ws.commons.schema.XmlSchema getSchema()Returns the wrapped CommonsXmlSchemaobject.
- 
toString
 
-