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.xml.impl.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, AbsItfDescription<S,Ep,B,I,Incl,Impt,T>, WSDLElement, org.ow2.easywsdl.xml.api.XMLElement
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.net.URI baseURI
          baseURI
protected  java.util.List<B> 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<Impt> imports
          list of imports
protected  java.util.List<Incl> includes
          list of includes
protected  java.util.List<I> 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<S> services
          list of services
protected  T types
          types
 
Fields inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl
documentation
 
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
model, parent
 
Constructor Summary
AbstractDescriptionImpl()
           
AbstractDescriptionImpl(java.net.URI baseURI, E model, org.jdom.Document doc, 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 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.
 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<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.
 java.util.List<Incl> getIncludes()
          Get a map of lists containing all the includes defined here.
 java.util.List<Incl> getIncludes(java.lang.String locationUri)
          Get the list of includes for the specified locationURI.
 I getInterface(javax.xml.namespace.QName name)
          Get the specified portType.
 java.util.List<I> 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
 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 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(T types)
          Set the types section.
 java.lang.String toString()
           
 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl
createDocumentation, createElementFromString, getDocumentation, getModel, getOtherAttributes, getOtherElements, setDocumentation
 
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
getParent, getSchema, getTopParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription
addNamespace, createBinding, createDefaultSoapBinding, createImport, createInterface, createService, createTypes, getQName, getTargetNamespace, getVersion, removeBinding, removeImport, removeInclude, removeInterface, removeNamespace, removeService, setQName, setTargetNamespace
 
Methods inherited from interface org.ow2.easywsdl.xml.api.XMLElement
getOtherElements
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, getDocumentation, getOtherAttributes, 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<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


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

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>

getIncludes

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

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>
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(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>

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 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)

getDocumentBaseURI

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

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 documentBaseURI)
Description copied from interface: AbsItfDescription
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 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:
documentBaseURI - the document base URI of this definition

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>

toString

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


Copyright © 2008 eBM WebSourcing. All Rights Reserved.