edu.uga.cs.lsdis.sawsdl.extensions.schema
Interface Schema

All Superinterfaces:
javax.wsdl.extensions.ExtensibilityElement, javax.wsdl.extensions.schema.Schema, java.io.Serializable

public interface Schema
extends javax.wsdl.extensions.schema.Schema

Modified schema extension that support the extraction of the model references

Author:
: Ajith Ranabahu, : Zixin Wu, : Karthik Gomadam, : Doug Brewer

Method Summary
 void addLiftingMapping(org.w3c.dom.Element startElement, java.lang.String path, java.lang.String liftingMapping, Definition def)
          add a single lifting schema mapping on the element located by the given path.
 void addLoweringMapping(org.w3c.dom.Element startElement, java.lang.String path, java.lang.String liftingMapping, Definition def)
          add a single lifting schema mapping on the element located by the given path.
 void addModelReference(org.w3c.dom.Element startElement, java.lang.String path, ModelReference modelReference)
          Set the modelReference on the element located by the given path.
 java.util.Set<java.lang.String> getLiftingMappings(org.w3c.dom.Element startElement, java.lang.String path, Definition def)
          Get the lifting schema mappings pertaining to the schema construct given by the xpath (path)
 java.util.Set<java.lang.String> getLoweringMappings(org.w3c.dom.Element startElement, java.lang.String path, Definition def)
          Get the lowering schema mappings pertaining to the schema construct given by the xpath (path)
 ModelReference getModelReference(org.w3c.dom.Element startElement, java.lang.String path, Definition def)
          Get the model references pertaining to the schema construct given by the xpath (path)
 java.util.Set<ModelReference> getModelReferences(org.w3c.dom.Element startElement, java.lang.String path, Definition def)
          Get the model references pertaining to the schema construct given by the xpath (path)
 void setLiftingMappings(org.w3c.dom.Element startElement, java.lang.String path, java.util.Set<java.lang.String> mappings)
          Set the lifting schema mappings to the element (type) given by the Xpath (path)
 void setLoweringMappings(org.w3c.dom.Element startElement, java.lang.String path, java.util.Set<java.lang.String> mappings)
          Set the lowering schema mappings to the element (type) given by the Xpath (path) This operation will *remove* any existing schema mappings
 void setModelReferences(org.w3c.dom.Element startElement, java.lang.String path, java.util.Set<ModelReference> refs)
          Set the model reference to the element (type) given by the Xpath (path)
 
Methods inherited from interface javax.wsdl.extensions.schema.Schema
addImport, addInclude, addRedefine, createImport, createInclude, createRedefine, getDocumentBaseURI, getElement, getImports, getIncludes, getRedefines, setDocumentBaseURI, setElement
 
Methods inherited from interface javax.wsdl.extensions.ExtensibilityElement
getElementType, getRequired, setElementType, setRequired
 

Method Detail

addModelReference

void addModelReference(org.w3c.dom.Element startElement,
                       java.lang.String path,
                       ModelReference modelReference)
                       throws WSDLSException
Set the modelReference on the element located by the given path.

Parameters:
startElement - The starting element of the path
path -
modelReference - The desired modelReference
Throws:
WSDLSException

getModelReferences

java.util.Set<ModelReference> getModelReferences(org.w3c.dom.Element startElement,
                                                 java.lang.String path,
                                                 Definition def)
                                                 throws WSDLSException,
                                                        java.net.URISyntaxException
Get the model references pertaining to the schema construct given by the xpath (path)

Parameters:
startElement - Root of the XPath
path - XPath expression that returns a schema construct
def -
Returns:
a list of model references
Throws:
WSDLSException
java.net.URISyntaxException

getModelReference

ModelReference getModelReference(org.w3c.dom.Element startElement,
                                 java.lang.String path,
                                 Definition def)
                                 throws WSDLSException,
                                        java.net.URISyntaxException
Get the model references pertaining to the schema construct given by the xpath (path)

Parameters:
startElement - Root of the XPath
path - XPath expression that returns a schema construct
def -
Returns:
a single model reference
Throws:
WSDLSException
java.net.URISyntaxException

setModelReferences

void setModelReferences(org.w3c.dom.Element startElement,
                        java.lang.String path,
                        java.util.Set<ModelReference> refs)
                        throws WSDLSException
Set the model reference to the element (type) given by the Xpath (path)

Parameters:
startElement -
path - (a valid xpath expression)
refs -
Throws:
WSDLSException

addLiftingMapping

void addLiftingMapping(org.w3c.dom.Element startElement,
                       java.lang.String path,
                       java.lang.String liftingMapping,
                       Definition def)
                       throws WSDLSException,
                              java.net.URISyntaxException
add a single lifting schema mapping on the element located by the given path. if there is already a mapping this mapping will be added to the list

Parameters:
startElement - The starting element of the path
path - (a valid xpath expression)
liftingMapping - The desired lifting mapping
def -
Throws:
WSDLSException
java.net.URISyntaxException

getLiftingMappings

java.util.Set<java.lang.String> getLiftingMappings(org.w3c.dom.Element startElement,
                                                   java.lang.String path,
                                                   Definition def)
                                                   throws WSDLSException,
                                                          java.net.URISyntaxException
Get the lifting schema mappings pertaining to the schema construct given by the xpath (path)

Parameters:
startElement - Root of the XPath
path - XPath expression that returns a schema construct
def -
Returns:
a list of strings
Throws:
WSDLSException
java.net.URISyntaxException

setLiftingMappings

void setLiftingMappings(org.w3c.dom.Element startElement,
                        java.lang.String path,
                        java.util.Set<java.lang.String> mappings)
                        throws WSDLSException
Set the lifting schema mappings to the element (type) given by the Xpath (path)

Parameters:
startElement -
path - (a valid xpath expression)
mappings -
Throws:
WSDLSException

addLoweringMapping

void addLoweringMapping(org.w3c.dom.Element startElement,
                        java.lang.String path,
                        java.lang.String liftingMapping,
                        Definition def)
                        throws WSDLSException,
                               java.net.URISyntaxException
add a single lifting schema mapping on the element located by the given path. if there is already a mapping this mapping will be added to the list

Parameters:
startElement - The starting element of the path
path - (a valid xpath expression)
liftingMapping - The desired lifting mapping
def -
Throws:
WSDLSException
java.net.URISyntaxException

getLoweringMappings

java.util.Set<java.lang.String> getLoweringMappings(org.w3c.dom.Element startElement,
                                                    java.lang.String path,
                                                    Definition def)
                                                    throws WSDLSException,
                                                           java.net.URISyntaxException
Get the lowering schema mappings pertaining to the schema construct given by the xpath (path)

Parameters:
startElement - Root of the XPath
path - XPath expression that returns a schema construct
def -
Returns:
a list of strings
Throws:
WSDLSException
java.net.URISyntaxException

setLoweringMappings

void setLoweringMappings(org.w3c.dom.Element startElement,
                         java.lang.String path,
                         java.util.Set<java.lang.String> mappings)
                         throws WSDLSException
Set the lowering schema mappings to the element (type) given by the Xpath (path) This operation will *remove* any existing schema mappings

Parameters:
startElement -
path - (a valid xpath expression)
mappings -
Throws:
WSDLSException


Copyright © 2007. All Rights Reserved.