public class CommonsXsdSchema extends Object implements XsdSchema
XsdSchema interface that uses Apache WS-Commons XML Schema.| Modifier | Constructor and Description |
|---|---|
protected |
CommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema)
Create a new instance of the
CommonsXsdSchema class with the specified XmlSchema reference. |
protected |
CommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema,
org.apache.ws.commons.schema.XmlSchemaCollection collection)
Create a new instance of the
CommonsXsdSchema class with the specified XmlSchema and XmlSchemaCollection reference. |
| Modifier and Type | Method and Description |
|---|---|
XmlValidator |
createValidator()
Creates a
XmlValidator based on the schema. |
QName[] |
getElementNames() |
org.apache.ws.commons.schema.XmlSchema |
getSchema()
Returns the wrapped Commons
XmlSchema object. |
Source |
getSource()
Returns the
Source of the schema. |
String |
getTargetNamespace()
Returns the target namespace of this schema.
|
String |
toString() |
protected CommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema)
CommonsXsdSchema class with the specified XmlSchema reference.schema - the Commons XmlSchema object; must not be nullIllegalArgumentException - if the supplied schema is nullprotected CommonsXsdSchema(org.apache.ws.commons.schema.XmlSchema schema,
org.apache.ws.commons.schema.XmlSchemaCollection collection)
CommonsXsdSchema class with the specified XmlSchema and XmlSchemaCollection reference.schema - the Commons XmlSchema object; must not be nullcollection - the Commons XmlSchemaCollection object; can be nullIllegalArgumentException - if the supplied schema is nullpublic String getTargetNamespace()
XsdSchemagetTargetNamespace in interface XsdSchemapublic QName[] getElementNames()
public Source getSource()
XsdSchemaSource of the schema.public XmlValidator createValidator()
XsdSchemaXmlValidator based on the schema.createValidator in interface XsdSchemapublic org.apache.ws.commons.schema.XmlSchema getSchema()
XmlSchema object.