org.codehaus.xfire.wsdl11.builder
Class AbstractWSDL

java.lang.Object
  extended by org.codehaus.xfire.wsdl11.builder.AbstractWSDL
All Implemented Interfaces:
org.codehaus.xfire.wsdl.WSDLWriter
Direct Known Subclasses:
AbstractJavaWSDL

public abstract class AbstractWSDL
extends java.lang.Object
implements org.codehaus.xfire.wsdl.WSDLWriter

AbstractWSDL

Author:
Dan Diephouse

Field Summary
protected  org.dom4j.QName elementQ
           
protected  org.dom4j.QName schemaQ
           
protected  org.dom4j.QName xfireTypeQ
          A QName for elements which hold the schema that a WSDL type writes out.
protected  org.dom4j.Namespace xsdNs
           
 
Fields inherited from interface org.codehaus.xfire.wsdl.WSDLWriter
WSDL11_NS, WSDL11_SOAP_NS
 
Constructor Summary
AbstractWSDL(org.codehaus.xfire.service.Service service)
           
 
Method Summary
 void addDependency(org.codehaus.xfire.wsdl.SchemaType type)
           
 void addNamespace(java.lang.String prefix, java.lang.String uri)
           
 org.dom4j.Element createSchemaType(java.lang.String namespace)
          Create a shcema type element and store it to be written later on.
 javax.wsdl.Definition getDefinition()
           
 org.dom4j.Document getDocument()
           
 org.dom4j.Namespace getNamespace(java.lang.String uri)
           
protected  org.dom4j.Element getSchemaTypes()
           
 org.codehaus.xfire.service.Service getService()
           
 void setDefinition(javax.wsdl.Definition definition)
           
protected  void setSchemaTypes(org.dom4j.Element schemaTypes)
           
 void setService(org.codehaus.xfire.service.Service service)
           
 void write(java.io.OutputStream out)
           
protected  void writeComplexTypes()
           
protected  void writeDocument()
           
protected  void writeSchemaForNamespace(org.dom4j.Element schema, java.lang.String schemaNs)
          Write the schema types for a particular namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xsdNs

protected org.dom4j.Namespace xsdNs

schemaQ

protected org.dom4j.QName schemaQ

elementQ

protected org.dom4j.QName elementQ

xfireTypeQ

protected org.dom4j.QName xfireTypeQ
A QName for elements which hold the schema that a WSDL type writes out.

Constructor Detail

AbstractWSDL

public AbstractWSDL(org.codehaus.xfire.service.Service service)
             throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException
Method Detail

writeDocument

protected void writeDocument()
                      throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

writeComplexTypes

protected void writeComplexTypes()
                          throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

addDependency

public void addDependency(org.codehaus.xfire.wsdl.SchemaType type)

writeSchemaForNamespace

protected void writeSchemaForNamespace(org.dom4j.Element schema,
                                       java.lang.String schemaNs)
Write the schema types for a particular namespace.

Parameters:
schema - The schema definition for this namespace. Attach the types to this.
schemaNs - The namespace to write the types for.

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Specified by:
write in interface org.codehaus.xfire.wsdl.WSDLWriter
Throws:
java.io.IOException
See Also:
WSDLWriter.write(java.io.OutputStream)

addNamespace

public void addNamespace(java.lang.String prefix,
                         java.lang.String uri)

getNamespace

public org.dom4j.Namespace getNamespace(java.lang.String uri)

getDocument

public org.dom4j.Document getDocument()
See Also:
org.codehaus.xfire.wsdl.WSDLWriter#getDocument()

getDefinition

public javax.wsdl.Definition getDefinition()

setDefinition

public void setDefinition(javax.wsdl.Definition definition)

getService

public org.codehaus.xfire.service.Service getService()

setService

public void setService(org.codehaus.xfire.service.Service service)

createSchemaType

public org.dom4j.Element createSchemaType(java.lang.String namespace)
Create a shcema type element and store it to be written later on.

Parameters:
namespace - The namespace to create the type in.
Returns:

getSchemaTypes

protected org.dom4j.Element getSchemaTypes()

setSchemaTypes

protected void setSchemaTypes(org.dom4j.Element schemaTypes)


Copyright © 2004-2005 Codehaus. All Rights Reserved.