org.apache.tuscany.sca.xsd
Interface XSDefinition

All Superinterfaces:
Base
All Known Implementing Classes:
XSDefinitionImpl

public interface XSDefinition
extends Base

Represents an XML Schema definition.


Method Summary
 java.util.List<XSDefinition> getAggregatedDefinitions()
          Get the aggregated definitions for a facade XSDefinition
 org.w3c.dom.Document getDocument()
          Get the DOM representation of the XSD
 java.net.URI getLocation()
          Get the location of the XSD
 java.lang.String getNamespace()
          Returns the namespace of this XmlSchema definition.
 XmlSchema getSchema()
          Returns the XmlSchema definition model
 XmlSchemaCollection getSchemaCollection()
           
 XmlSchemaElement getXmlSchemaElement(javax.xml.namespace.QName name)
          Get an XSD element by QName
 XmlSchemaType getXmlSchemaType(javax.xml.namespace.QName name)
          Get an XSD type by QName
 void setAggregatedDefinitions(java.util.List<XSDefinition> definitions)
          Set the aggregated definitions for a facade XSDefinition
 void setDocument(org.w3c.dom.Document document)
          Set the DOM representation of the XSD
 void setLocation(java.net.URI uri)
          Set the location of the XSD
 void setNamespace(java.lang.String namespace)
          Sets the namespace of this XmlSchema definition.
 void setSchema(XmlSchema definition)
          Sets the XmlSchema definition model
 void setSchemaCollection(XmlSchemaCollection schemaCollection)
           
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 

Method Detail

getSchemaCollection

XmlSchemaCollection getSchemaCollection()

setSchemaCollection

void setSchemaCollection(XmlSchemaCollection schemaCollection)

getSchema

XmlSchema getSchema()
Returns the XmlSchema definition model

Returns:
the XmlSchema definition model

setSchema

void setSchema(XmlSchema definition)
Sets the XmlSchema definition model

Parameters:
definition - the XmlSchema definition model

getNamespace

java.lang.String getNamespace()
Returns the namespace of this XmlSchema definition.

Returns:
the namespace of this XmlSchema definition

setNamespace

void setNamespace(java.lang.String namespace)
Sets the namespace of this XmlSchema definition.

Parameters:
namespace - the namespace of this XmlSchema definition

getLocation

java.net.URI getLocation()
Get the location of the XSD

Returns:

setLocation

void setLocation(java.net.URI uri)
Set the location of the XSD

Parameters:
uri -

getDocument

org.w3c.dom.Document getDocument()
Get the DOM representation of the XSD

Returns:

setDocument

void setDocument(org.w3c.dom.Document document)
Set the DOM representation of the XSD

Parameters:
document -

getXmlSchemaElement

XmlSchemaElement getXmlSchemaElement(javax.xml.namespace.QName name)
Get an XSD element by QName

Parameters:
name - The element name
Returns:
The XSD element

getXmlSchemaType

XmlSchemaType getXmlSchemaType(javax.xml.namespace.QName name)
Get an XSD type by QName

Parameters:
name - The type name
Returns:
The XSD type

getAggregatedDefinitions

java.util.List<XSDefinition> getAggregatedDefinitions()
Get the aggregated definitions for a facade XSDefinition

Returns:
The aggregated definitions, or null if not a facade

setAggregatedDefinitions

void setAggregatedDefinitions(java.util.List<XSDefinition> definitions)
Set the aggregated definitions for a facade XSDefinition

Parameters:
name - The aggregated definitions