com.sun.tools.ws.wsdl.document
Class Definitions

java.lang.Object
  extended by com.sun.tools.ws.wsdl.framework.Entity
      extended by com.sun.tools.ws.wsdl.document.Definitions
All Implemented Interfaces:
TWSDLExtensible, Defining, Elemental

public class Definitions
extends Entity
implements Defining, TWSDLExtensible

Entity corresponding to the "definitions" WSDL element.


Field Summary
 
Fields inherited from class com.sun.tools.ws.wsdl.framework.Entity
errorReceiver
 
Constructor Summary
Definitions(AbstractDocument document, Locator locator)
           
 
Method Summary
 void accept(WSDLDocumentVisitor visitor)
           
 void add(Binding b)
           
 void add(Import i)
           
 void add(Message m)
           
 void add(PortType p)
           
 void add(Service s)
           
 void addExtension(TWSDLExtension e)
          An TWSDLExtensionHandler will call this method to add an TWSDLExtension object
 void addServiceOveride(Service s)
           
 Iterator bindings()
           
 Iterable<TWSDLExtension> extensions()
          Gives iterator over TWSDLExtensions
 Documentation getDocumentation()
           
 QName getElementName()
           
 String getName()
           
 String getNamespaceURI()
          Gives namespace URI of a wsdl extensibility element.
 String getNameValue()
          Gives the wsdl extensiblity element's name attribute value.
 TWSDLExtensible getParent()
          wsdl:definition is the root hence no parent so return null.
 String getTargetNamespaceURI()
           
 Types getTypes()
           
 QName getWSDLElementName()
          Gives the WSDL element or WSDL extensibility element name
 Iterator imports()
           
 Iterator messages()
           
 Iterator portTypes()
           
 Iterator<Service> services()
           
 void setDocumentation(Documentation d)
           
 void setName(String s)
           
 void setTargetNamespaceURI(String s)
           
 void setTypes(Types t)
           
 void validateThis()
           
 void withAllSubEntitiesDo(EntityAction action)
           
 
Methods inherited from class com.sun.tools.ws.wsdl.framework.Entity
failValidation, failValidation, getLocator, getProperty, removeProperty, setErrorReceiver, setProperty, withAllEntityReferencesDo, withAllQNamesDo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.tools.ws.wsdl.framework.Elemental
getLocator
 

Constructor Detail

Definitions

public Definitions(AbstractDocument document,
                   Locator locator)
Method Detail

getName

public String getName()

setName

public void setName(String s)

getTargetNamespaceURI

public String getTargetNamespaceURI()
Specified by:
getTargetNamespaceURI in interface Defining

setTargetNamespaceURI

public void setTargetNamespaceURI(String s)

setTypes

public void setTypes(Types t)

getTypes

public Types getTypes()

add

public void add(Message m)

add

public void add(PortType p)

add

public void add(Binding b)

add

public void add(Service s)

addServiceOveride

public void addServiceOveride(Service s)

add

public void add(Import i)

imports

public Iterator imports()

messages

public Iterator messages()

portTypes

public Iterator portTypes()

bindings

public Iterator bindings()

services

public Iterator<Service> services()

getNameValue

public String getNameValue()
Description copied from interface: TWSDLExtensible
Gives the wsdl extensiblity element's name attribute value. It can be null as @name on some of the wsdl extensibility elements are optinal such as wsdl:input

Specified by:
getNameValue in interface TWSDLExtensible

getNamespaceURI

public String getNamespaceURI()
Description copied from interface: TWSDLExtensible
Gives namespace URI of a wsdl extensibility element.

Specified by:
getNamespaceURI in interface TWSDLExtensible

getWSDLElementName

public QName getWSDLElementName()
Description copied from interface: TWSDLExtensible
Gives the WSDL element or WSDL extensibility element name

Specified by:
getWSDLElementName in interface TWSDLExtensible

getDocumentation

public Documentation getDocumentation()

setDocumentation

public void setDocumentation(Documentation d)

addExtension

public void addExtension(TWSDLExtension e)
Description copied from interface: TWSDLExtensible
An TWSDLExtensionHandler will call this method to add an TWSDLExtension object

Specified by:
addExtension in interface TWSDLExtensible
Parameters:
e - non-null extension object

extensions

public Iterable<TWSDLExtension> extensions()
Description copied from interface: TWSDLExtensible
Gives iterator over TWSDLExtensions

Specified by:
extensions in interface TWSDLExtensible

getParent

public TWSDLExtensible getParent()
wsdl:definition is the root hence no parent so return null.

Specified by:
getParent in interface TWSDLExtensible
Returns:
null if the TWSDLExtensible has no parent, root of wsdl document - wsdl:definition.

withAllSubEntitiesDo

public void withAllSubEntitiesDo(EntityAction action)
Overrides:
withAllSubEntitiesDo in class Entity

accept

public void accept(WSDLDocumentVisitor visitor)
            throws Exception
Throws:
Exception

validateThis

public void validateThis()
Specified by:
validateThis in class Entity

getElementName

public QName getElementName()
Specified by:
getElementName in interface Elemental