public interface Schema
org.apache.ws.commons.schema.XmlSchema
.
For applications that use other representations for XML Schema content,
it also provides a reference to the org.apache.woden.XMLElement
object that wraps the underlying <xs:schema> or <xs:import>
element.
It also indicates whether the schema is 'referenceable' by the surrounding
WSDL document, as defined by the schema referenceability rules in the
WSDL 2.0 spec.
NOTE: non-XML type systems like DTD are not handled by this interface. They must be
handled by WSDL 2.0 extension mechanisms.
TODO Need to determine if this interface is suitable for use with other xml-based
schema types like Relax NG or if some type of schema extension mechanism is required.
Modifier and Type | Method and Description |
---|---|
URI |
getNamespace()
Returns a URI representing the
targetNamespace attribute of a
<xs:schema> element or the namespace attribute of a
<xs:import> element. |
org.apache.ws.commons.schema.XmlSchema |
getSchemaDefinition()
Returns an
XmlSchema representing the schema definition inlined by
a <xs:schema> element or imported by a <xs:import> element. |
XMLElement |
getXMLElement()
Returns the XMLElement representing the
xs:schema or xs:import
element within the wsdl:types element. |
void |
setNamespace(URI namespace)
Set the
targetNamespace attribute of a <xs:schema> element
or the namespace attribute of a <xs:import> element. |
void |
setSchemaDefinition(org.apache.ws.commons.schema.XmlSchema schemaDef)
Sets the schema definition for an inlined schema or schema import to the specified
XmlSchema . |
void |
setXMLElement(XMLElement xsdElement)
Sets the XMLElement representing the underlying
xs:schema or xs:import
element. |
URI getNamespace()
targetNamespace
attribute of a
<xs:schema> element or the namespace
attribute of a
<xs:import> element.void setNamespace(URI namespace)
targetNamespace
attribute of a <xs:schema> element
or the namespace
attribute of a <xs:import> element.namespace
- org.apache.ws.commons.schema.XmlSchema getSchemaDefinition()
XmlSchema
representing the schema definition inlined by
a <xs:schema> element or imported by a <xs:import> element.XmlSchema
representing schema definition.void setSchemaDefinition(org.apache.ws.commons.schema.XmlSchema schemaDef)
XmlSchema
.schemaDef
- the XmlSchema
representing this schemaXMLElement getXMLElement()
xs:schema
or xs:import
element within the wsdl:types
element. This provides an 'wrapper' to the
underlying XML Schema infoset for applications that need schema processing alternatives to
Apache WS Commons XmlSchema.void setXMLElement(XMLElement xsdElement)
xs:schema
or xs:import
element.xsdElement
- the XMLElementCopyright © 2005–2014 Apache Software Foundation. All rights reserved.