org.ow2.easywsdl.wsdl.api.abstractElmt
Class AbstractDescriptionImpl<E,S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

java.lang.Object
  extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl<E>
      extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractXMLElementImpl<E>
          extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl<E>
              extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractDescriptionImpl<E,S,Ep,B,I,Incl,Impt,T>
All Implemented Interfaces:
java.io.Serializable, org.ow2.easywsdl.schema.api.SchemaElement, org.ow2.easywsdl.schema.api.XMLElement, AbsItfDescription<S,Ep,B,I,Incl,Impt,T>, WSDLElement
Direct Known Subclasses:
DescriptionImpl, DescriptionImpl

public abstract class AbstractDescriptionImpl<E,S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
extends AbstractWSDLElementImpl<E>
implements AbsItfDescription<S,Ep,B,I,Incl,Impt,T>

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription
AbsItfDescription.WSDLVersionConstants
 
Field Summary
protected  java.util.List<B> bindings
          list of binding
protected  java.net.URI documentURI
          baseURI
protected  java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features
          Features
protected  java.util.List<Impt> imports
          list of imports
protected  java.util.List<Incl> includes
          list of includes
protected  java.util.List<I> interfaces
          list of interface
protected  org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl namespaceMapper
          the namespace context
protected  java.util.List<S> services
          list of services
protected  T types
          types
 
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
documentation, model, parent
 
Constructor Summary
AbstractDescriptionImpl()
           
AbstractDescriptionImpl(java.net.URI baseURI, E model, org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl namespaceMapper, org.ow2.easywsdl.schema.api.extensions.SchemaLocatorImpl schemaLocator, java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
           
 
Method Summary
 void addBinding(B binding)
          BindingImpl operation
 void addImport(Impt impt)
          ImportImpl operation
protected  void addImportElementsInAllList()
           
 void addInclude(Incl incl)
          IncludeImpl operation
protected  void addIncludeElementsInAllList()
           
 void addInterface(I itf)
          Interface operation
 void addNamespace(java.lang.String prefix, java.lang.String namespaceURI)
          This is a way to add a namespace association to a definition.
 void addService(S service)
          ServiceImpl operation
 java.util.List<Ep> findEndpointsImplementingInterface(I itf)
           
 B getBinding(javax.xml.namespace.QName name)
          Get the specified binding.
 java.util.List<B> getBindings()
          Get all the bindings defined in this Definition.
 java.net.URI getDocumentBaseURI()
          Get the document base URI of this definition.
 java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> getFeatures()
           
 java.lang.Object getFeatureValue(WSDLReader.FeatureConstants feature)
           
 java.util.List<Impt> getImports()
          Get a map of lists containing all the imports defined here.
 java.util.List<Impt> getImports(java.lang.String namespaceUri)
          Get the list of imports for the specified namespaceURI.
 Incl getInclude(java.net.URI locationUri)
          Get the include of the specified locationURI.
 java.util.List<Incl> getIncludes()
          Get a map of lists containing all the includes defined here.
 I getInterface(javax.xml.namespace.QName name)
          Get the specified portType.
 java.util.List<I> getInterfaces()
          Get all the portTypes defined in this Definition.
 org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl getNamespaces()
          methods for namespaces
 java.util.Map<java.lang.String,java.lang.String> getSchemaLocation()
          get the schema location
 org.ow2.easywsdl.schema.api.extensions.SchemaLocatorImpl getSchemaLocator()
           
 S getService(javax.xml.namespace.QName name)
          Get the specified service.
 java.util.List<S> getServices()
          Get all the services defined in this Definition.
 T getTypes()
          Get the types section.
 void setDocumentBaseURI(java.net.URI documentURI)
          Set the document base URI of this definition.
 void setFeatures(java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
           
 void setTypes(T types)
          Set the types section.
 java.lang.String toString()
           
 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl
addOtherElements, createDocumentation, getDocumentation, getModel, getOtherAttributes, getOtherElements, setDocumentation
 
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
equals, getParent, getSchema, getTopParent, hashCode, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription
createBinding, createDefaultSoapBinding, createImport, createInterface, createService, createTypes, getQName, getTargetNamespace, getVersion, removeBinding, removeImport, removeInclude, removeInterface, removeNamespace, removeService, setQName, setTargetNamespace
 
Methods inherited from interface org.ow2.easywsdl.schema.api.XMLElement
addOtherElements, getOtherElements
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
 

Field Detail

features

protected java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features
Features


namespaceMapper

protected org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl namespaceMapper
the namespace context


imports

protected java.util.List<Impt extends AbsItfImport<? extends AbsItfDescription>> imports
list of imports


includes

protected java.util.List<Incl extends AbsItfInclude<? extends AbsItfDescription>> includes
list of includes


services

protected java.util.List<S extends AbsItfService<I,? extends AbsItfEndpoint>> services
list of services


bindings

protected java.util.List<B extends AbsItfBinding> bindings
list of binding


interfaces

protected java.util.List<I extends AbsItfInterfaceType<? extends AbsItfOperation>> interfaces
list of interface


types

protected T extends AbsItfTypes types
types


documentURI

protected java.net.URI documentURI
baseURI

Constructor Detail

AbstractDescriptionImpl

public AbstractDescriptionImpl(java.net.URI baseURI,
                               E model,
                               org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl namespaceMapper,
                               org.ow2.easywsdl.schema.api.extensions.SchemaLocatorImpl schemaLocator,
                               java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
                        throws WSDLException
Parameters:
internalObject -
doc -
Throws:
WSDLException

AbstractDescriptionImpl

public AbstractDescriptionImpl()
                        throws WSDLException
Throws:
WSDLException
Method Detail

addImportElementsInAllList

protected void addImportElementsInAllList()

addIncludeElementsInAllList

protected void addIncludeElementsInAllList()

addImport

public void addImport(Impt impt)
ImportImpl operation

Specified by:
addImport in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
impt - the import to be added

getImports

public java.util.List<Impt> getImports()
Description copied from interface: AbsItfDescription
Get a map of lists containing all the imports defined here. The map's keys are the namespaceURIs, and the map's values are lists. There is one list for each namespaceURI for which imports have been defined.

Specified by:
getImports in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

getImports

public java.util.List<Impt> getImports(java.lang.String namespaceUri)
Description copied from interface: AbsItfDescription
Get the list of imports for the specified namespaceURI.

Specified by:
getImports in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
namespaceUri - the namespaceURI associated with the desired imports.
Returns:
a list of the corresponding imports, or null if there weren't any matching imports

addInclude

public void addInclude(Incl incl)
                throws WSDLException
IncludeImpl operation

Specified by:
addInclude in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
incl - the include to be added
Throws:
WSDLException

getIncludes

public java.util.List<Incl> getIncludes()
Description copied from interface: AbsItfDescription
Get a map of lists containing all the includes defined here. The map's keys are the namespaceURIs, and the map's values are lists. There is one list for each locationURI for which imports have been defined.

Specified by:
getIncludes in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

getInclude

public Incl getInclude(java.net.URI locationUri)
Get the include of the specified locationURI.

Specified by:
getInclude in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
locationUri - the locationURI associated with the desired includes.
Returns:
the corresponding include, or null if there weren't any matching includes

addService

public void addService(S service)
ServiceImpl operation

Specified by:
addService in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
service - the service to be added

getServices

public java.util.List<S> getServices()
Description copied from interface: AbsItfDescription
Get all the services defined in this Definition.

Specified by:
getServices in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

getService

public S getService(javax.xml.namespace.QName name)
Description copied from interface: AbsItfDescription
Get the specified service. Also checks imported documents.

Specified by:
getService in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
name - the name of the desired service.
Returns:
the corresponding service, or null if there wasn't any matching service

addBinding

public void addBinding(B binding)
BindingImpl operation

Specified by:
addBinding in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
binding - the binding to be added

getBindings

public java.util.List<B> getBindings()
Description copied from interface: AbsItfDescription
Get all the bindings defined in this Definition.

Specified by:
getBindings in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

getBinding

public B getBinding(javax.xml.namespace.QName name)
Description copied from interface: AbsItfDescription
Get the specified binding. Also checks imported documents.

Specified by:
getBinding in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
name - the name of the desired binding.
Returns:
the corresponding binding, or null if there wasn't any matching binding

addInterface

public void addInterface(I itf)
Interface operation

Specified by:
addInterface in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

getInterfaces

public java.util.List<I> getInterfaces()
Description copied from interface: AbsItfDescription
Get all the portTypes defined in this Definition.

Specified by:
getInterfaces in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

getInterface

public I getInterface(javax.xml.namespace.QName name)
Description copied from interface: AbsItfDescription
Get the specified portType. Also checks imported documents.

Specified by:
getInterface in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
name - the name of the desired portType.
Returns:
the corresponding portType, or null if there wasn't any matching portType

getFeatures

public java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> getFeatures()
Returns:
the features

getFeatureValue

public java.lang.Object getFeatureValue(WSDLReader.FeatureConstants feature)
Returns:
the feature value

setFeatures

public void setFeatures(java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
Parameters:
features - the features to set

getTypes

public T getTypes()
Description copied from interface: AbsItfDescription
Get the types section.

Specified by:
getTypes in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Returns:
the types section

setTypes

public void setTypes(T types)
Description copied from interface: AbsItfDescription
Set the types section.

Specified by:
setTypes in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

getNamespaces

public org.ow2.easywsdl.schema.api.extensions.NamespaceMapperImpl getNamespaces()
methods for namespaces

Specified by:
getNamespaces in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
See Also:
AbsItfDescription.addNamespace(String, String)

addNamespace

public void addNamespace(java.lang.String prefix,
                         java.lang.String namespaceURI)
Description copied from interface: AbsItfDescription
This is a way to add a namespace association to a definition. It is similar to adding a namespace prefix declaration to the top of a <wsdl:definition> element. This has nothing to do with the <wsdl:import> element; there are separate methods for dealing with information described by <wsdl:import> elements.

Specified by:
addNamespace in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Parameters:
prefix - the prefix to use for this namespace (when rendering this information as XML). Use null or an empty string to describe the default namespace (i.e. xmlns="...").
namespaceURI - the namespace URI to associate the prefix with. If you use null, the namespace association will be removed.

getDocumentBaseURI

public java.net.URI getDocumentBaseURI()
Get the document base URI of this definition.

Specified by:
getDocumentBaseURI in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Returns:
the document base URI.

setDocumentBaseURI

public void setDocumentBaseURI(java.net.URI documentURI)
Set the document base URI of this definition.

Specified by:
setDocumentBaseURI in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

getSchemaLocation

public java.util.Map<java.lang.String,java.lang.String> getSchemaLocation()
Description copied from interface: AbsItfDescription
get the schema location

Specified by:
getSchemaLocation in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>
Returns:
the schemaLocations

findEndpointsImplementingInterface

public java.util.List<Ep> findEndpointsImplementingInterface(I itf)
Specified by:
findEndpointsImplementingInterface in interface AbsItfDescription<S extends AbsItfService<I,? extends AbsItfEndpoint>,Ep extends AbsItfEndpoint,B extends AbsItfBinding,I extends AbsItfInterfaceType<? extends AbsItfOperation>,Incl extends AbsItfInclude<? extends AbsItfDescription>,Impt extends AbsItfImport<? extends AbsItfDescription>,T extends AbsItfTypes>

getSchemaLocator

public org.ow2.easywsdl.schema.api.extensions.SchemaLocatorImpl getSchemaLocator()

toString

public java.lang.String toString()
Overrides:
toString in class AbstractWSDLElementImpl<E>


Copyright © 2008-2010 Petals Link (previously EBM WebSourcing). All Rights Reserved.