edu.uga.cs.lsdis.sawsdl.impl.extensions.schema
Class SchemaImpl

java.lang.Object
  extended by com.ibm.wsdl.extensions.schema.SchemaImpl
      extended by edu.uga.cs.lsdis.sawsdl.impl.extensions.schema.SchemaImpl
All Implemented Interfaces:
java.io.Serializable, javax.wsdl.extensions.ExtensibilityElement, javax.wsdl.extensions.schema.Schema

public class SchemaImpl
extends com.ibm.wsdl.extensions.schema.SchemaImpl
implements Schema

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.wsdl.extensions.schema.SchemaImpl
element, elementType, required, serialVersionUID
 
Constructor Summary
SchemaImpl()
           
 
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 loweringMapping, 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.
protected  java.util.Set<java.lang.String> getAttValueAsSet(org.w3c.dom.Element startElement, java.lang.String path, java.lang.String attNameToGet, Definition def)
          Convenience method that is shared between get methods only for lifting and lowering mappings though
 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 modelReference on the element located by the given path.
 java.util.Set<ModelReference> getModelReferences(org.w3c.dom.Element startElement, java.lang.String path, Definition def)
          Get the list of model references
protected  org.w3c.dom.Element getXSDElement(org.w3c.dom.Element startElement, java.lang.String path)
          Return an XML Schema Element by locating it from the XSD Element startElement and using the path.
protected  boolean setAttValueAsSet(org.w3c.dom.Element startElement, java.lang.String path, java.lang.String attNameToSet, java.util.Set<java.lang.String> values)
          Convenience method that is shared between set methods
 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)
           
 
Methods inherited from class com.ibm.wsdl.extensions.schema.SchemaImpl
addImport, addInclude, addRedefine, createImport, createInclude, createRedefine, getDocumentBaseURI, getElement, getElementType, getImports, getIncludes, getRedefines, getRequired, setDocumentBaseURI, setElement, setElementType, setRequired, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

SchemaImpl

public SchemaImpl()
Method Detail

getModelReference

public ModelReference getModelReference(org.w3c.dom.Element startElement,
                                        java.lang.String path,
                                        Definition def)
                                 throws WSDLSException,
                                        java.net.URISyntaxException
Get the modelReference on the element located by the given path.

Parameters:
startElement - The starting element of the path
path - Xpath expression representing the element
Returns:
The modelReference
Throws:
WSDLSException
java.net.URISyntaxException

addModelReference

public 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 element for the Xpath to start
path - Xpath expression representing the element
modelReference - The desired modelReference
Throws:
WSDLSException

getXSDElement

protected org.w3c.dom.Element getXSDElement(org.w3c.dom.Element startElement,
                                            java.lang.String path)
                                     throws WSDLSException
Return an XML Schema Element by locating it from the XSD Element startElement and using the path.

Parameters:
startElement - Root element to start
path - Xpath expression representing the element
Returns:
an XML Schema Element
Throws:
WSDLSException - in any case of exceptional behavior

getModelReferences

public java.util.Set<ModelReference> getModelReferences(org.w3c.dom.Element startElement,
                                                        java.lang.String path,
                                                        Definition def)
                                                 throws WSDLSException,
                                                        java.net.URISyntaxException
Get the list of model references

Parameters:
startElement - The element for the Xpath to start
path - Xpath expression representing the element
def - WSDL definition object
Returns:
a list of model references
Throws:
WSDLSException
java.net.URISyntaxException

setModelReferences

public void setModelReferences(org.w3c.dom.Element startElement,
                               java.lang.String path,
                               java.util.Set<ModelReference> refs)
                        throws WSDLSException
Parameters:
startElement - The element for the Xpath to start
path - Xpath expression representing the element
refs - a list of model references
Throws:
WSDLSException

addLiftingMapping

public 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

public 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

public 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 - The element for the Xpath to start
path - Xpath expression representing the element
mappings - list of strings
Throws:
WSDLSException

addLoweringMapping

public void addLoweringMapping(org.w3c.dom.Element startElement,
                               java.lang.String path,
                               java.lang.String loweringMapping,
                               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)
loweringMapping - The desired lifting mapping
def -
Throws:
WSDLSException
java.net.URISyntaxException

getLoweringMappings

public 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:
list of strings
Throws:
WSDLSException
java.net.URISyntaxException

setLoweringMappings

public 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 - The element for the Xpath to start
path - (a valid xpath expression)
mappings - list of mappings as strings
Throws:
WSDLSException

getAttValueAsSet

protected java.util.Set<java.lang.String> getAttValueAsSet(org.w3c.dom.Element startElement,
                                                           java.lang.String path,
                                                           java.lang.String attNameToGet,
                                                           Definition def)
                                                    throws WSDLSException,
                                                           java.net.URISyntaxException
Convenience method that is shared between get methods only for lifting and lowering mappings though

Parameters:
startElement - The element for the Xpath to start
path - Xpath expression representing the element
attNameToGet - name of the attribute to extract
Returns:
a list of strings
Throws:
WSDLSException - in any case of exceptional behavior
java.net.URISyntaxException

setAttValueAsSet

protected boolean setAttValueAsSet(org.w3c.dom.Element startElement,
                                   java.lang.String path,
                                   java.lang.String attNameToSet,
                                   java.util.Set<java.lang.String> values)
                            throws WSDLSException
Convenience method that is shared between set methods

Parameters:
startElement - The element for the Xpath to start
path - Xpath expression representing the element
attNameToSet - name of the attribute to set the value
values - A list of string values to set as the values
Returns:
a boolean indicating the success/failure of the operation
Throws:
WSDLSException - in any case of exceptional behavior


Copyright © 2007. All Rights Reserved.