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 null
IllegalArgumentException
- if the supplied schema
is null
protected 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 null
collection
- the Commons XmlSchemaCollection
object; can be null
IllegalArgumentException
- if the supplied schema
is null
public String getTargetNamespace()
XsdSchema
getTargetNamespace
in interface XsdSchema
public QName[] getElementNames()
public Source getSource()
XsdSchema
Source
of the schema.public XmlValidator createValidator()
XsdSchema
XmlValidator
based on the schema.createValidator
in interface XsdSchema
public org.apache.ws.commons.schema.XmlSchema getSchema()
XmlSchema
object.