com.ebmwebsourcing.commons.wsdl.api.abstractElmt
Class AbstractDescriptionImpl<E>

java.lang.Object
  extended by com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractWSDLElementImpl<E>
      extended by com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractDescriptionImpl<E>
All Implemented Interfaces:
Description, WSDLElement, java.io.Serializable
Direct Known Subclasses:
DescriptionImpl, DescriptionImpl

public abstract class AbstractDescriptionImpl<E>
extends AbstractWSDLElementImpl<E>
implements Description

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

Field Summary
protected  java.net.URI baseURI
          baseURI
protected  java.util.List<Binding> bindings
          list of binding
protected  org.jdom.Document document
          the jdom document
protected  java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features
          Features
protected  java.util.List<Import> imports
          list of imports
protected  java.util.List<Include> includes
          list of includes
protected  java.util.List<InterfaceType> interfaces
          list of interface
protected  javax.xml.namespace.NamespaceContext namespaceContext
          the namespace context
protected  java.util.Map<java.lang.String,java.lang.String> schemaLocations
          schema location
protected  java.util.List<Service> services
          list of services
protected  Types types
          types
 
Fields inherited from class com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractWSDLElementImpl
documentation, model
 
Constructor Summary
AbstractDescriptionImpl(java.net.URI baseURI, E model, org.jdom.Document doc, java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
           
 
Method Summary
 void addBinding(Binding binding)
          BindingImpl operation
 void addImport(Import impt)
          ImportImpl operation
protected  void addImportElementsInAllList()
           
 void addInclude(Include incl)
          IncludeImpl operation
protected  void addIncludeElementsInAllList()
           
 void addInterface(InterfaceType itf)
          Interface operation
 void addService(Service service)
          ServiceImpl operation
 Binding getBinding(javax.xml.namespace.QName name)
          Get the specified binding.
 java.util.List<Binding> getBindings()
          Get all the bindings defined in this Definition.
 org.jdom.Document getDocument()
           
 java.net.URI getDocumentBaseURI()
          methods for baseURI
 java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> getFeatures()
           
 java.lang.Object getFeatureValue(WSDLReader.FeatureConstants feature)
           
 java.util.List<Import> getImports()
          Get a map of lists containing all the imports defined here.
 java.util.List<Import> getImports(java.lang.String namespaceUri)
          Get the list of imports for the specified namespaceURI.
 java.util.List<Include> getIncludes()
          Get a map of lists containing all the includes defined here.
 java.util.List<Include> getIncludes(java.lang.String locationUri)
          Get the list of includes for the specified locationURI.
 InterfaceType getInterface(javax.xml.namespace.QName name)
          Get the specified portType.
 java.util.List<InterfaceType> getInterfaces()
          Get all the portTypes defined in this Definition.
 javax.xml.namespace.NamespaceContext getNamespaces()
          methods for namespaces
 java.util.Map<java.lang.String,java.lang.String> getSchemaLocation()
          get the schema location
 Service getService(javax.xml.namespace.QName name)
          Get the specified service.
 java.util.List<Service> getServices()
          Get all the services defined in this Definition.
 Types getTypes()
          Get the types section.
 void setDocument(org.jdom.Document document)
           
 void setDocumentBaseURI(java.net.URI documentBaseURI)
          Set the document base URI of this definition.
 void setFeatures(java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
           
 void setTypes(Types types)
          Set the types section.
 java.lang.String toString()
           
 
Methods inherited from class com.ebmwebsourcing.commons.wsdl.api.abstractElmt.AbstractWSDLElementImpl
createDocumentation, createElementFromString, getDocumentation, getModel, getOtherAttributes, getOtherElements, setDocumentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ebmwebsourcing.commons.wsdl.api.Description
addNamespace, createBinding, createBindingFault, createBindingOperation, createEndpoint, createFault, createImport, createInput, createInterface, createOperation, createOutput, createPart, createService, createTypes, getQName, getTargetNamespace, getVersion, removeBinding, removeImport, removeInclude, removeInterface, removeNamespace, removeService, setQName, setTargetNamespace
 
Methods inherited from interface com.ebmwebsourcing.commons.wsdl.api.WSDLElement
createDocumentation, getDocumentation, getOtherAttributes, getOtherElements, setDocumentation
 

Field Detail

features

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


namespaceContext

protected javax.xml.namespace.NamespaceContext namespaceContext
the namespace context


document

protected org.jdom.Document document
the jdom document


imports

protected java.util.List<Import> imports
list of imports


includes

protected java.util.List<Include> includes
list of includes


services

protected java.util.List<Service> services
list of services


bindings

protected java.util.List<Binding> bindings
list of binding


interfaces

protected java.util.List<InterfaceType> interfaces
list of interface


types

protected Types types
types


baseURI

protected java.net.URI baseURI
baseURI


schemaLocations

protected java.util.Map<java.lang.String,java.lang.String> schemaLocations
schema location

Constructor Detail

AbstractDescriptionImpl

public AbstractDescriptionImpl(java.net.URI baseURI,
                               E model,
                               org.jdom.Document doc,
                               java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
                        throws WSDLException
Parameters:
schema -
doc -
Throws:
WSDLException
Method Detail

addImportElementsInAllList

protected void addImportElementsInAllList()

addIncludeElementsInAllList

protected void addIncludeElementsInAllList()

addImport

public void addImport(Import impt)
ImportImpl operation

Specified by:
addImport in interface Description
Parameters:
impt - the import to be added

getImports

public java.util.List<Import> getImports()
Description copied from interface: Description
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 Description

getImports

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

Specified by:
getImports in interface Description
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(Include incl)
                throws WSDLException
IncludeImpl operation

Specified by:
addInclude in interface Description
Parameters:
incl - the include to be added
Throws:
WSDLException

getIncludes

public java.util.List<Include> getIncludes()
Description copied from interface: Description
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 Description

getIncludes

public java.util.List<Include> getIncludes(java.lang.String locationUri)
Description copied from interface: Description
Get the list of includes for the specified locationURI.

Specified by:
getIncludes in interface Description
Parameters:
locationUri - the locationURI associated with the desired includes.
Returns:
a list of the corresponding includes, or null if there weren't any matching includes

addService

public void addService(Service service)
ServiceImpl operation

Specified by:
addService in interface Description
Parameters:
service - the service to be added

getServices

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

Specified by:
getServices in interface Description

getService

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

Specified by:
getService in interface Description
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(Binding binding)
BindingImpl operation

Specified by:
addBinding in interface Description
Parameters:
binding - the binding to be added

getBindings

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

Specified by:
getBindings in interface Description

getBinding

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

Specified by:
getBinding in interface Description
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(InterfaceType itf)
Interface operation

Specified by:
addInterface in interface Description
Parameters:
itf - the portType to be added

getInterfaces

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

Specified by:
getInterfaces in interface Description

getInterface

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

Specified by:
getInterface in interface Description
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 Types getTypes()
Description copied from interface: Description
Get the types section.

Specified by:
getTypes in interface Description
Returns:
the types section

setTypes

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

Specified by:
setTypes in interface Description

getDocument

public org.jdom.Document getDocument()
Returns:
the document

setDocument

public void setDocument(org.jdom.Document document)
Parameters:
document - the document to set

getNamespaces

public javax.xml.namespace.NamespaceContext getNamespaces()
methods for namespaces

Specified by:
getNamespaces in interface Description
See Also:
Description.addNamespace(String, String)

getDocumentBaseURI

public java.net.URI getDocumentBaseURI()
methods for baseURI

Specified by:
getDocumentBaseURI in interface Description
Returns:
the document base URI

setDocumentBaseURI

public void setDocumentBaseURI(java.net.URI documentBaseURI)
Description copied from interface: Description
Set the document base URI of this definition. Can be used to represent the origin of the Definition, and can be exploited when resolving relative URIs (e.g. in <import>s).

Specified by:
setDocumentBaseURI in interface Description
Parameters:
documentBaseURI - the document base URI of this definition

getSchemaLocation

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

Specified by:
getSchemaLocation in interface Description
Returns:
the schemaLocations

toString

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


Copyright © 2008 eBM WebSourcing. All Rights Reserved.