edu.uga.cs.lsdis.sawsdl.impl
Class DefinitionImpl

java.lang.Object
  extended by com.ibm.wsdl.AbstractWSDLElement
      extended by com.ibm.wsdl.DefinitionImpl
          extended by edu.uga.cs.lsdis.sawsdl.impl.DefinitionImpl
All Implemented Interfaces:
java.io.Serializable, javax.wsdl.Definition, javax.wsdl.extensions.AttributeExtensible, javax.wsdl.extensions.ElementExtensible, javax.wsdl.WSDLElement

public class DefinitionImpl
extends com.ibm.wsdl.DefinitionImpl
implements Definition

This class represents a SAWSDL definition. This is a direct extension of the wsdl4j definition

Author:
: Ajith Ranabahu, : Zixin Wu, : Karthik Gomadam, : Doug Brewer
See Also:
Serialized Form

Field Summary
protected  java.util.List modelReferenceList
           
protected  java.util.List ontologyNamespaces
           
 
Fields inherited from class com.ibm.wsdl.DefinitionImpl
bindings, documentBaseURI, extReg, imports, messages, name, namespaces, nativeAttributeNames, portTypes, serialVersionUID, services, targetNamespace, types
 
Fields inherited from class com.ibm.wsdl.AbstractWSDLElement
docEl, extElements, extensionAttributes
 
Fields inherited from interface javax.wsdl.extensions.AttributeExtensible
LIST_OF_QNAMES_TYPE, LIST_OF_STRINGS_TYPE, NO_DECLARED_TYPE, QNAME_TYPE, STRING_TYPE
 
Constructor Summary
DefinitionImpl()
           
 
Method Summary
 void addMessage(Message message)
          Add a semantically annotated message to this WSDL description.
 void addPortType(PortType portType)
          Add a sawsdl portType to this WSDL description.
 javax.wsdl.Message createMessage()
          Create a new message.
 ModelReference createModelReference()
          Create a new modelReference.
 Operation createOperation()
          Create a new operation.
 Part createPart()
          Create a new part.
 PortType createPortType()
          Create a new port type.
 java.util.List getOperationsByModelReference(java.net.URI namespace, java.lang.String concept)
          Get all the Operations which has a modelReference with the specified namespace and concept.
 java.util.List getPartsByModelReference(java.net.URI namespace, java.lang.String concept)
          Get all the Parts which has a modelReference with the specified namespace and concept.
 Message getSemanticMessage(javax.xml.namespace.QName name)
          Get the specified message as a semantically annotated message object.
 PortType getSemanticPortType(javax.xml.namespace.QName name)
          Get the specified portType.
 java.util.List getXSDComplexTypeByModelReference(java.net.URI namespace, java.lang.String concept)
          Get all the XSD ComplexTypes which has a modelReference with the specified namespace and concept.
 java.util.List getXSDElementsByModelReference(java.net.URI namespace, java.lang.String concept)
          Get all the XSD Elements which has a modelReference with the specified namespace and concept.
 Message removeSemanticMessage(javax.xml.namespace.QName name)
          Remove the specified message from this definition.
 
Methods inherited from class com.ibm.wsdl.DefinitionImpl
addBinding, addImport, addMessage, addNamespace, addPortType, addService, createBinding, createBindingFault, createBindingInput, createBindingOperation, createBindingOutput, createFault, createImport, createInput, createOutput, createPort, createService, createTypes, getAllBindings, getAllPortTypes, getAllServices, getBinding, getBindings, getDocumentBaseURI, getExtensionRegistry, getImports, getImports, getMessage, getMessages, getNamespace, getNamespaces, getNativeAttributeNames, getPortType, getPortTypes, getPrefix, getQName, getService, getServices, getTargetNamespace, getTypes, removeBinding, removeImport, removeMessage, removeNamespace, removePortType, removeService, setDocumentBaseURI, setExtensionRegistry, setQName, setTargetNamespace, setTypes, toString
 
Methods inherited from class com.ibm.wsdl.AbstractWSDLElement
addExtensibilityElement, getDocumentationElement, getExtensibilityElements, getExtensionAttribute, getExtensionAttributes, removeExtensibilityElement, setDocumentationElement, setExtensionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.wsdl.Definition
addBinding, addImport, addMessage, addNamespace, addPortType, addService, createBinding, createBindingFault, createBindingInput, createBindingOperation, createBindingOutput, createFault, createImport, createInput, createOutput, createPort, createService, createTypes, getAllBindings, getAllPortTypes, getAllServices, getBinding, getBindings, getDocumentBaseURI, getExtensionRegistry, getImports, getImports, getMessage, getMessages, getNamespace, getNamespaces, getPortType, getPortTypes, getPrefix, getQName, getService, getServices, getTargetNamespace, getTypes, removeBinding, removeImport, removeMessage, removeNamespace, removePortType, removeService, setDocumentBaseURI, setExtensionRegistry, setQName, setTargetNamespace, setTypes
 
Methods inherited from interface javax.wsdl.WSDLElement
getDocumentationElement, setDocumentationElement
 
Methods inherited from interface javax.wsdl.extensions.AttributeExtensible
getExtensionAttribute, getExtensionAttributes, getNativeAttributeNames, setExtensionAttribute
 
Methods inherited from interface javax.wsdl.extensions.ElementExtensible
addExtensibilityElement, getExtensibilityElements, removeExtensibilityElement
 

Field Detail

modelReferenceList

protected java.util.List modelReferenceList

ontologyNamespaces

protected java.util.List ontologyNamespaces
Constructor Detail

DefinitionImpl

public DefinitionImpl()
Method Detail

getPartsByModelReference

public java.util.List getPartsByModelReference(java.net.URI namespace,
                                               java.lang.String concept)
Get all the Parts which has a modelReference with the specified namespace and concept.

Parameters:
namespace - The namespace of the modelReference
concept - The concept of the modelReference
Returns:
All the Parts which has a modelReference with the specified namespace and concept.

getOperationsByModelReference

public java.util.List getOperationsByModelReference(java.net.URI namespace,
                                                    java.lang.String concept)
Get all the Operations which has a modelReference with the specified namespace and concept.

Parameters:
namespace - The namespace of the modelReference
concept - The concept of the modelReference
Returns:
All the Operations which has a modelReference with the specified namespace and concept.

getXSDElementsByModelReference

public java.util.List getXSDElementsByModelReference(java.net.URI namespace,
                                                     java.lang.String concept)
Get all the XSD Elements which has a modelReference with the specified namespace and concept.

Parameters:
namespace - The namespace of the modelReference
concept - The concept of the modelReference
Returns:
All the XSD Elements which has a modelReference with the specified namespace and concept.

getXSDComplexTypeByModelReference

public java.util.List getXSDComplexTypeByModelReference(java.net.URI namespace,
                                                        java.lang.String concept)
Get all the XSD ComplexTypes which has a modelReference with the specified namespace and concept.

Parameters:
namespace - The namespace of the modelReference
concept - The concept of the modelReference
Returns:
All the XSD ComplexTypes which has a modelReference with the specified namespace and concept.

createModelReference

public ModelReference createModelReference()
Create a new modelReference.

Returns:
the newly created modelReference.

createOperation

public Operation createOperation()
Create a new operation.

Specified by:
createOperation in interface javax.wsdl.Definition
Overrides:
createOperation in class com.ibm.wsdl.DefinitionImpl
Returns:
the newly created operation

createPart

public Part createPart()
Create a new part.

Specified by:
createPart in interface javax.wsdl.Definition
Overrides:
createPart in class com.ibm.wsdl.DefinitionImpl
Returns:
the newly created part

createPortType

public PortType createPortType()
Create a new port type.

Specified by:
createPortType in interface javax.wsdl.Definition
Overrides:
createPortType in class com.ibm.wsdl.DefinitionImpl
Returns:
the newly created port type

getSemanticPortType

public PortType getSemanticPortType(javax.xml.namespace.QName name)
Get the specified portType. Also checks imported documents. note that this method returns the semantically annotated portType

Parameters:
name - the name of the desired portType.
Returns:
the corresponding portType, or null if there wasn't any matching portType. This

addPortType

public void addPortType(PortType portType)
Add a sawsdl portType to this WSDL description.

Parameters:
portType - the portType to be added

addMessage

public void addMessage(Message message)
Add a semantically annotated message to this WSDL description. overloaded version of the addMessage method

Parameters:
message - the message to be added
See Also:
Definition.addMessage(javax.wsdl.Message)

getSemanticMessage

public Message getSemanticMessage(javax.xml.namespace.QName name)
Get the specified message as a semantically annotated message object. Also checks imported documents.

Parameters:
name - the name of the desired message.
Returns:
the corresponding message, or null if there wasn't any matching message
See Also:
Definition.getMessage(javax.xml.namespace.QName)

removeSemanticMessage

public Message removeSemanticMessage(javax.xml.namespace.QName name)
Remove the specified message from this definition.

Parameters:
name - the name of the message to remove
Returns:
the message previously associated with this qname, if there was one; may return null
See Also:
Definition.removeMessage(javax.xml.namespace.QName)

createMessage

public javax.wsdl.Message createMessage()
Create a new message. This message is a semantically annotated message object

Specified by:
createMessage in interface javax.wsdl.Definition
Overrides:
createMessage in class com.ibm.wsdl.DefinitionImpl
Returns:
the newly created message


Copyright © 2007. All Rights Reserved.