org.apache.axis2.jaxws.description.builder
Class DescriptionBuilderComposite

java.lang.Object
  extended by org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite
All Implemented Interfaces:
TMAnnotationComposite, TMFAnnotationComposite

public class DescriptionBuilderComposite
extends java.lang.Object
implements TMAnnotationComposite, TMFAnnotationComposite


Constructor Summary
DescriptionBuilderComposite()
           
DescriptionBuilderComposite(ConfigurationContext configContext)
           
 
Method Summary
 void addCustomAnnotationInstance(CustomAnnotationInstance annotation)
           
 void addCustomAnnotationProcessor(CustomAnnotationProcessor processor)
           
 void addFieldDescriptionComposite(FieldDescriptionComposite fieldDescription)
           
 void addMethodDescriptionComposite(MethodDescriptionComposite methodDescription)
           
 void addWebServiceFeature(java.lang.annotation.Annotation a)
           
 void addWebServiceRefAnnot(WebServiceRefAnnot webServiceRefAnnot)
           
 java.util.List<WebServiceRefAnnot> getAllWebServiceRefAnnots()
           
 BindingTypeAnnot getBindingTypeAnnot()
           
 JAXWSCatalogManager getCatalogManager()
          Returns the catalog manager associated with this composite, if any.
 java.lang.ClassLoader getClassLoader()
           
 java.lang.String[] getClassModifiers()
           
 java.lang.String getClassName()
           
 ConfigurationContext getConfigurationContext()
           
 java.lang.Class getCorrespondingClass()
          Returns the corresponding class associated with this composite, if any.
 java.util.List<CustomAnnotationInstance> getCustomAnnotationInstances()
           
 java.util.Map<java.lang.String,CustomAnnotationProcessor> getCustomAnnotationProcessors()
           
 WsdlGenerator getCustomWsdlGenerator()
           
 FieldDescriptionComposite getFieldDescriptionComposite(java.lang.String fieldName)
           
 HandlerChainAnnot getHandlerChainAnnot()
           
 HandlerChainsType getHandlerChainsType()
           
 java.util.List<java.lang.String> getInterfacesList()
           
 java.util.List<MethodDescriptionComposite> getMethodDescriptionComposite(java.lang.String methodName)
          Returns a collection of all MethodDescriptionComposites that match the specified name
 MethodDescriptionComposite getMethodDescriptionComposite(java.lang.String methodName, int occurence)
          Returns the nth occurence of this MethodComposite.
 java.util.List<MethodDescriptionComposite> getMethodDescriptionsList()
           
 QName getPreferredPort()
          For a service requester, the QName of the prefered port for this service.
 QName getPreferredPort(java.lang.Object key)
           
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
           
 ServiceModeAnnot getServiceModeAnnot()
           
 SoapBindingAnnot getSoapBindingAnnot()
           
 DescriptionBuilderComposite getSparseComposite(java.lang.Object key)
           
 java.lang.String getSuperClassName()
           
 WebFaultAnnot getWebFaultAnnot()
           
 WebServiceAnnot getWebServiceAnnot()
           
 WebServiceClientAnnot getWebServiceClientAnnot()
           
 WebServiceClientAnnot getWebServiceClientAnnot(java.lang.Object key)
           
 java.util.List<java.lang.annotation.Annotation> getWebServiceFeatures()
           
 WebServiceProviderAnnot getWebServiceProviderAnnot()
           
 WebServiceRefAnnot getWebServiceRefAnnot(java.lang.String name)
           
 javax.wsdl.Definition getWsdlDefinition()
           
 java.net.URL getWsdlURL()
           
 boolean isDeprecatedServiceProviderConstruction()
          Deprecated.  
 boolean isInterface()
           
 boolean isMTOMEnabled()
           
 boolean isMTOMEnabled(java.lang.Object key)
           
 boolean isServiceProvider()
          Answer does this composite represent a service requester (aka client) or a service provider (aka server).
 void setBindingTypeAnnot(BindingTypeAnnot bindingTypeAnnot)
           
 void setCatalogManager(JAXWSCatalogManager theCatalogManager)
          Set the Catalog Manager associated with this composite.
 void setClassLoader(java.lang.ClassLoader classLoader)
           
 void setClassModifiers(java.lang.String[] classModifiers)
           
 void setClassName(java.lang.String className)
           
 void setCorrespondingClass(java.lang.Class theClass)
          Set the class associated with this composite.
 void setCustomWsdlGenerator(WsdlGenerator wsdlGenerator)
           
 void setHandlerChainAnnot(HandlerChainAnnot handlerChainAnnot)
           
 void setHandlerChainsType(HandlerChainsType handlerChainsType)
           
 void setInterfacesList(java.util.List<java.lang.String> interfacesList)
           
 void setIsDeprecatedServiceProviderConstruction(boolean value)
          Deprecated.  
 void setIsInterface(boolean isInterface)
           
 void setIsMTOMEnabled(boolean isMTOMEnabled)
           
 void setIsServiceProvider(boolean value)
          Set the indication of whether this composite represents a service requester (aka client) or a service provider (aka server).
 void setPreferredPort(QName preferredPort)
          For a service requester, set the QName of the preferred port for this service.
 void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
           
 void setServiceModeAnnot(ServiceModeAnnot serviceModeAnnot)
           
 void setSoapBindingAnnot(SoapBindingAnnot soapBindingAnnot)
           
 void setSparseComposite(java.lang.Object key, DescriptionBuilderComposite sparseComposite)
           
 void setSuperClassName(java.lang.String extendsClass)
           
 void setWebFaultAnnot(WebFaultAnnot webFaultAnnot)
           
 void setWebServiceAnnot(WebServiceAnnot webServiceAnnot)
           
 void setWebServiceClientAnnot(WebServiceClientAnnot webServiceClientAnnot)
           
 void setWebServiceFeatures(java.util.List<java.lang.annotation.Annotation> list)
           
 void setWebServiceProviderAnnot(WebServiceProviderAnnot webServiceProviderAnnot)
           
 void setWebServiceRefAnnot(WebServiceRefAnnot webServiceRefAnnot)
           
 void setWsdlDefinition(javax.wsdl.Definition wsdlDef)
           
 void setwsdlURL(java.net.URL wsdlURL)
           
 java.lang.String toString()
          Convenience method for unit testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescriptionBuilderComposite

public DescriptionBuilderComposite()

DescriptionBuilderComposite

public DescriptionBuilderComposite(ConfigurationContext configContext)
Method Detail

setSparseComposite

public void setSparseComposite(java.lang.Object key,
                               DescriptionBuilderComposite sparseComposite)

getSparseComposite

public DescriptionBuilderComposite getSparseComposite(java.lang.Object key)

setPreferredPort

public void setPreferredPort(QName preferredPort)
For a service requester, set the QName of the preferred port for this service. This indicates which port (i.e. which EndpointDescription) should be returned if a port QName isn't specified. This may be null, indicating the first valid port in the WSDL should be returned.

Parameters:
preferredPort -

getPreferredPort

public QName getPreferredPort()
For a service requester, the QName of the prefered port for this service. This indicates which port should be returned if a port QName wasn't specified. This may be null, indicating the first valid port in the WSDL should be returned.

Returns:

getPreferredPort

public QName getPreferredPort(java.lang.Object key)

setIsMTOMEnabled

public void setIsMTOMEnabled(boolean isMTOMEnabled)

isMTOMEnabled

public boolean isMTOMEnabled()

isMTOMEnabled

public boolean isMTOMEnabled(java.lang.Object key)

getWebServiceAnnot

public WebServiceAnnot getWebServiceAnnot()

getClassModifiers

public java.lang.String[] getClassModifiers()
Returns:
Returns the classModifiers.

getClassName

public java.lang.String getClassName()
Returns:
Returns the className.

getSuperClassName

public java.lang.String getSuperClassName()
Returns:
Returns the super class name.

getInterfacesList

public java.util.List<java.lang.String> getInterfacesList()
Returns:
Returns the list of implemented interfaces.

getHandlerChainAnnot

public HandlerChainAnnot getHandlerChainAnnot()
Returns:
Returns the handlerChainAnnotImpl.

getServiceModeAnnot

public ServiceModeAnnot getServiceModeAnnot()
Returns:
Returns the serviceModeAnnot.

getSoapBindingAnnot

public SoapBindingAnnot getSoapBindingAnnot()
Returns:
Returns the soapBindingAnnot.

getWebFaultAnnot

public WebFaultAnnot getWebFaultAnnot()
Returns:
Returns the webFaultAnnot.

getWebServiceClientAnnot

public WebServiceClientAnnot getWebServiceClientAnnot()
Returns:
Returns the webServiceClientAnnot.

getWebServiceClientAnnot

public WebServiceClientAnnot getWebServiceClientAnnot(java.lang.Object key)

getWebServiceProviderAnnot

public WebServiceProviderAnnot getWebServiceProviderAnnot()
Returns:
Returns the webServiceProviderAnnot.

getAllWebServiceRefAnnots

public java.util.List<WebServiceRefAnnot> getAllWebServiceRefAnnots()
Returns:
Returns the webServiceRefAnnot list.

getWebServiceRefAnnot

public WebServiceRefAnnot getWebServiceRefAnnot(java.lang.String name)
Returns:
Returns the webServiceRefAnnot.

getBindingTypeAnnot

public BindingTypeAnnot getBindingTypeAnnot()
Returns:
Returns the webServiceRefAnnot.

getWebServiceFeatures

public java.util.List<java.lang.annotation.Annotation> getWebServiceFeatures()

setWebServiceFeatures

public void setWebServiceFeatures(java.util.List<java.lang.annotation.Annotation> list)

addWebServiceFeature

public void addWebServiceFeature(java.lang.annotation.Annotation a)

getWsdlDefinition

public javax.wsdl.Definition getWsdlDefinition()
Returns:
Returns the wsdlDefinition

getWsdlURL

public java.net.URL getWsdlURL()
Returns:
Returns the wsdlURL

getMethodDescriptionComposite

public java.util.List<MethodDescriptionComposite> getMethodDescriptionComposite(java.lang.String methodName)
Returns a collection of all MethodDescriptionComposites that match the specified name


getMethodDescriptionComposite

public MethodDescriptionComposite getMethodDescriptionComposite(java.lang.String methodName,
                                                                int occurence)
Returns the nth occurence of this MethodComposite. Since method names are not unique, we have to account for multiple occurrences

Parameters:
methodName -
occurence - The nth occurance to return; not this is NOT 0 based
Returns:
Returns the methodDescriptionComposite

getMethodDescriptionsList

public java.util.List<MethodDescriptionComposite> getMethodDescriptionsList()

getFieldDescriptionComposite

public FieldDescriptionComposite getFieldDescriptionComposite(java.lang.String fieldName)
Returns:
Returns the methodDescriptionComposite..null if not found

getCustomWsdlGenerator

public WsdlGenerator getCustomWsdlGenerator()
Returns:
Returns the ModuleClassType.

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns:
Returns the ClassLoader.

isInterface

public boolean isInterface()
Returns:
Returns true if this is an interface

setWebServiceAnnot

public void setWebServiceAnnot(WebServiceAnnot webServiceAnnot)

setClassModifiers

public void setClassModifiers(java.lang.String[] classModifiers)
Parameters:
classModifiers - The classModifiers to set.

setClassName

public void setClassName(java.lang.String className)
Parameters:
className - The className to set.

setSuperClassName

public void setSuperClassName(java.lang.String extendsClass)
Parameters:
extendsClass - The name of the super class to set.

setInterfacesList

public void setInterfacesList(java.util.List<java.lang.String> interfacesList)
Parameters:
interfacesList - The interfacesList to set.

setHandlerChainAnnot

public void setHandlerChainAnnot(HandlerChainAnnot handlerChainAnnot)
Specified by:
setHandlerChainAnnot in interface TMFAnnotationComposite
Parameters:
handlerChainAnnot - The handlerChainAnnot to set.

setServiceModeAnnot

public void setServiceModeAnnot(ServiceModeAnnot serviceModeAnnot)
Parameters:
serviceModeAnnot - The serviceModeAnnot to set.

setSoapBindingAnnot

public void setSoapBindingAnnot(SoapBindingAnnot soapBindingAnnot)
Specified by:
setSoapBindingAnnot in interface TMAnnotationComposite
Parameters:
soapBindingAnnot - The soapBindingAnnot to set.

setWebFaultAnnot

public void setWebFaultAnnot(WebFaultAnnot webFaultAnnot)
Parameters:
webFaultAnnot - The webFaultAnnot to set.

setWebServiceClientAnnot

public void setWebServiceClientAnnot(WebServiceClientAnnot webServiceClientAnnot)
Parameters:
webServiceClientAnnot - The webServiceClientAnnot to set.

setWebServiceProviderAnnot

public void setWebServiceProviderAnnot(WebServiceProviderAnnot webServiceProviderAnnot)
Parameters:
webServiceProviderAnnot - The webServiceProviderAnnot to set.

addWebServiceRefAnnot

public void addWebServiceRefAnnot(WebServiceRefAnnot webServiceRefAnnot)
Parameters:
webServiceRefAnnot - The webServiceRefAnnot to add to the list.

setWebServiceRefAnnot

public void setWebServiceRefAnnot(WebServiceRefAnnot webServiceRefAnnot)
Specified by:
setWebServiceRefAnnot in interface TMFAnnotationComposite

addCustomAnnotationProcessor

public void addCustomAnnotationProcessor(CustomAnnotationProcessor processor)

getCustomAnnotationProcessors

public java.util.Map<java.lang.String,CustomAnnotationProcessor> getCustomAnnotationProcessors()

addCustomAnnotationInstance

public void addCustomAnnotationInstance(CustomAnnotationInstance annotation)

getCustomAnnotationInstances

public java.util.List<CustomAnnotationInstance> getCustomAnnotationInstances()

setWsdlDefinition

public void setWsdlDefinition(javax.wsdl.Definition wsdlDef)
Parameters:
wsdlDefinition - The wsdlDefinition to set.

setwsdlURL

public void setwsdlURL(java.net.URL wsdlURL)
Parameters:
wsdlURL - The wsdlURL to set.

setBindingTypeAnnot

public void setBindingTypeAnnot(BindingTypeAnnot bindingTypeAnnot)
Parameters:
BindingTypeAnnot - The BindingTypeAnnot to set.

setIsInterface

public void setIsInterface(boolean isInterface)
Parameters:
isInterface - Sets whether this composite represents a class or interface

addMethodDescriptionComposite

public void addMethodDescriptionComposite(MethodDescriptionComposite methodDescription)
Parameters:
methodDescription - The methodDescription to add to the set.

addFieldDescriptionComposite

public void addFieldDescriptionComposite(FieldDescriptionComposite fieldDescription)
Parameters:
methodDescription - The methodDescription to add to the set.

setCustomWsdlGenerator

public void setCustomWsdlGenerator(WsdlGenerator wsdlGenerator)

setClassLoader

public void setClassLoader(java.lang.ClassLoader classLoader)

getHandlerChainsType

public HandlerChainsType getHandlerChainsType()

setHandlerChainsType

public void setHandlerChainsType(HandlerChainsType handlerChainsType)

isServiceProvider

public boolean isServiceProvider()
Answer does this composite represent a service requester (aka client) or a service provider (aka server).

Returns:
true if this is a service provider (aka an endpoint or a service implementation or a server)

setIsServiceProvider

public void setIsServiceProvider(boolean value)
Set the indication of whether this composite represents a service requester (aka client) or a service provider (aka server).


setCorrespondingClass

public void setCorrespondingClass(java.lang.Class theClass)
Set the class associated with this composite. For a service requester, this could be the Service class or the SEI class. For a service provider this will be null (unless the deprecated service construction logic in DescriptionFactory is used)

Parameters:
theClass -

getCorrespondingClass

public java.lang.Class getCorrespondingClass()
Returns the corresponding class associated with this composite, if any.

Returns:

setCatalogManager

public void setCatalogManager(JAXWSCatalogManager theCatalogManager)
Set the Catalog Manager associated with this composite.

Parameters:
theCatalogManger -

getCatalogManager

public JAXWSCatalogManager getCatalogManager()
Returns the catalog manager associated with this composite, if any.

Returns:

isDeprecatedServiceProviderConstruction

public boolean isDeprecatedServiceProviderConstruction()
Deprecated. 

Answer if this composite represents a service provider that was constructed using the deprecated path (used for testing only and being removed). Once that deprecated path is removed, this method and all code blocks referencing it can be removed.

Returns:
true if the this was constructed with the deprecated logic
See Also:
org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescriptionFromServiceImpl

setIsDeprecatedServiceProviderConstruction

public void setIsDeprecatedServiceProviderConstruction(boolean value)
Deprecated. 

Parameters:
value -

setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties()

toString

public java.lang.String toString()
Convenience method for unit testing. We will print all of the data members here.

Overrides:
toString in class java.lang.Object

getConfigurationContext

public ConfigurationContext getConfigurationContext()


Copyright © 2007 Apache Web Services Project. All Rights Reserved.