org.apache.woden.internal
Class DOMWSDLWriter

java.lang.Object
  extended by org.apache.woden.internal.BaseWSDLWriter
      extended by org.apache.woden.internal.DOMWSDLWriter
All Implemented Interfaces:
WSDLWriter

public class DOMWSDLWriter
extends BaseWSDLWriter

This is a concrete class derived from BaseWSDLWriter class and implements method to serialize each WSDL2.0 element based on DOM and also WriteWSDL() methods of the WSDLWriter interface .

Author:
Sagara Gunathunga (sagara.gunathunga@gmail.com)

Field Summary
 
Fields inherited from class org.apache.woden.internal.BaseWSDLWriter
features, fWsdlContext
 
Constructor Summary
DOMWSDLWriter(WSDLContext wsdlContext)
           
 
Method Summary
protected  void printBindingFaults(BindingFaultElement[] faults, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the BindingFaultElements of the WSDL element model.
protected  void printBindingOperations(BindingOperationElement[] operations, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the BindingOperationElements of the WSDL element model.
protected  void printBindings(BindingElement[] bindings, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the printBindings of the WSDL element model.
protected  void printDescription(DescriptionElement desEle, java.io.PrintWriter pw)
          Write the specified WSDL DescriptionElement and it's child elements to the specified Writer.
protected  void printDocumentation(DocumentationElement[] docEles, DescriptionElement def, java.io.PrintWriter pw)
          Serialize the DocumentationElements of the WSDL element model.
protected  void printEndpoints(EndpointElement[] endpoints, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the EndpointElements of the WSDL element model.
protected  void printExtensibilityAttributes(XMLAttr[] attrExts, WSDLElement ownerElem, java.io.PrintWriter pw)
          Serialize the printExtensibilityAttributess of the WSDL element model.
protected  void printExtensibilityElements(java.lang.Class parentType, ExtensionElement[] extensibilityElements, DescriptionElement def, java.io.PrintWriter pw)
          Serialize the ExtensibilityElements of the WSDL element model.
protected  void printFaults(InterfaceFaultElement[] faulEles, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the InterfaceInterfaceFaultElement of the WSDL element model.
protected  void printImportedSchemas(ImportedSchema[] importedSchema, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the ImportedSchemas of the WSDL element model.
protected  void printImports(ImportElement[] imports, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the ImportElements of the WSDL element model.
protected  void printIncludes(IncludeElement[] includes, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the IncludeElements of the WSDL element model.
protected  void printInlinedSchemas(InlinedSchema[] inlinedSchema, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the InlinedSchemas of the WSDL element model.
protected  void printInterfaceFaultReferences(InterfaceFaultReferenceElement[] faulRefs, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the InterfaceFaultReferenceElements of the WSDL element model.
protected  void printInterfaceMessageReferences(InterfaceMessageReferenceElement[] msgrefs, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the InterfaceMessageReferenceElements of the WSDL element model.
protected  void printInterfaces(InterfaceElement[] intrfaces, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the InterfaceElements of the WSDL element model.
protected  void printNamespaceDeclarations(NamespaceDeclaration[] namespaces, java.io.PrintWriter pw)
          Serialize the namespace declarations of the WSDL Description.
protected  void printOperations(InterfaceOperationElement[] operations, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the InterfaceOperationElements of the WSDL element model.
protected  void printServices(ServiceElement[] services, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the ServiceElements of the WSDL element model.
protected  void printTypes(TypesElement types, DescriptionElement des, java.io.PrintWriter pw)
          Serialize the TypesElements of the WSDL element model.
 void writeWSDL(DescriptionElement wsdlDes, java.io.OutputStream sink)
          This method write the specified WSDL Description to the specified Writer.
 void writeWSDL(DescriptionElement wsdlDes, java.io.Writer sink)
          This method write the specified WSDL Description to the specified Writer.
 
Methods inherited from class org.apache.woden.internal.BaseWSDLWriter
getErrorReporter, getExtensionRegistry, getFactory, getFactoryImplName, getFeature, getProperty, setExtensionRegistry, setFactoryImplName, setFeature, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMWSDLWriter

public DOMWSDLWriter(WSDLContext wsdlContext)
Method Detail

writeWSDL

public void writeWSDL(DescriptionElement wsdlDes,
                      java.io.Writer sink)
               throws WSDLException
This method write the specified WSDL Description to the specified Writer.

Parameters:
wsdlDes - the WSDL Description to be written.
sink - the Writer to write the xml to.
Throws:
WSDLException

writeWSDL

public void writeWSDL(DescriptionElement wsdlDes,
                      java.io.OutputStream sink)
               throws WSDLException
This method write the specified WSDL Description to the specified Writer.

Parameters:
wsdlDes - the WSDL Description to be written.
sink - the OutputStream to write the xml to.
Throws:
WSDLException

printDescription

protected void printDescription(DescriptionElement desEle,
                                java.io.PrintWriter pw)
                         throws WSDLException
Write the specified WSDL DescriptionElement and it's child elements to the specified Writer.

Parameters:
desEle - the WSDL Description to be written.
sink - the Writer to write the xml to.
Throws:
WSDLException

printNamespaceDeclarations

protected void printNamespaceDeclarations(NamespaceDeclaration[] namespaces,
                                          java.io.PrintWriter pw)
                                   throws WSDLException
Serialize the namespace declarations of the WSDL Description.

Parameters:
namespaces - a java.util.Map contains namespace of WSDL Description.
pw - the Writer to write the xml to.
Throws:
WSDLException

printImports

protected void printImports(ImportElement[] imports,
                            DescriptionElement des,
                            java.io.PrintWriter pw)
                     throws WSDLException
Serialize the ImportElements of the WSDL element model.

Parameters:
imports - an array of ImportElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printIncludes

protected void printIncludes(IncludeElement[] includes,
                             DescriptionElement des,
                             java.io.PrintWriter pw)
                      throws WSDLException
Serialize the IncludeElements of the WSDL element model.

Parameters:
imports - an array of IncludeElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printInterfaces

protected void printInterfaces(InterfaceElement[] intrfaces,
                               DescriptionElement des,
                               java.io.PrintWriter pw)
                        throws WSDLException
Serialize the InterfaceElements of the WSDL element model.

Parameters:
intrfaces - an array of intrfacesElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printOperations

protected void printOperations(InterfaceOperationElement[] operations,
                               DescriptionElement des,
                               java.io.PrintWriter pw)
                        throws WSDLException
Serialize the InterfaceOperationElements of the WSDL element model.

Parameters:
operations - an array of InterfaceOperationElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printInterfaceMessageReferences

protected void printInterfaceMessageReferences(InterfaceMessageReferenceElement[] msgrefs,
                                               DescriptionElement des,
                                               java.io.PrintWriter pw)
                                        throws WSDLException
Serialize the InterfaceMessageReferenceElements of the WSDL element model.

Parameters:
msgrefs - an array of InterfaceMessageReferenceElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printInterfaceFaultReferences

protected void printInterfaceFaultReferences(InterfaceFaultReferenceElement[] faulRefs,
                                             DescriptionElement des,
                                             java.io.PrintWriter pw)
                                      throws WSDLException
Serialize the InterfaceFaultReferenceElements of the WSDL element model.

Parameters:
faulRefs - an array of InterfaceFaultReferenceElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printFaults

protected void printFaults(InterfaceFaultElement[] faulEles,
                           DescriptionElement des,
                           java.io.PrintWriter pw)
                    throws WSDLException
Serialize the InterfaceInterfaceFaultElement of the WSDL element model.

Parameters:
faulEles - an array of InterfaceFaultElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printBindings

protected void printBindings(BindingElement[] bindings,
                             DescriptionElement des,
                             java.io.PrintWriter pw)
                      throws WSDLException
Serialize the printBindings of the WSDL element model.

Parameters:
bindings - an array of printBindings.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printBindingFaults

protected void printBindingFaults(BindingFaultElement[] faults,
                                  DescriptionElement des,
                                  java.io.PrintWriter pw)
                           throws WSDLException
Serialize the BindingFaultElements of the WSDL element model.

Parameters:
faults - an array of BindingFaultElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printBindingOperations

protected void printBindingOperations(BindingOperationElement[] operations,
                                      DescriptionElement des,
                                      java.io.PrintWriter pw)
                               throws WSDLException
Serialize the BindingOperationElements of the WSDL element model.

Parameters:
operations - an array of BindingOperationElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printServices

protected void printServices(ServiceElement[] services,
                             DescriptionElement des,
                             java.io.PrintWriter pw)
                      throws WSDLException
Serialize the ServiceElements of the WSDL element model.

Parameters:
services - an array of ServiceElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printEndpoints

protected void printEndpoints(EndpointElement[] endpoints,
                              DescriptionElement des,
                              java.io.PrintWriter pw)
                       throws WSDLException
Serialize the EndpointElements of the WSDL element model.

Parameters:
endpoints - an array of IncludeElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printTypes

protected void printTypes(TypesElement types,
                          DescriptionElement des,
                          java.io.PrintWriter pw)
                   throws WSDLException
Serialize the TypesElements of the WSDL element model.

Parameters:
types - an array of TypesElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printInlinedSchemas

protected void printInlinedSchemas(InlinedSchema[] inlinedSchema,
                                   DescriptionElement des,
                                   java.io.PrintWriter pw)
                            throws WSDLException
Serialize the InlinedSchemas of the WSDL element model.

Parameters:
inlinedSchema - an array of InlinedSchemas.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printImportedSchemas

protected void printImportedSchemas(ImportedSchema[] importedSchema,
                                    DescriptionElement des,
                                    java.io.PrintWriter pw)
                             throws WSDLException
Serialize the ImportedSchemas of the WSDL element model.

Parameters:
importedSchema - an array of ImportedSchemas.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printExtensibilityElements

protected void printExtensibilityElements(java.lang.Class parentType,
                                          ExtensionElement[] extensibilityElements,
                                          DescriptionElement def,
                                          java.io.PrintWriter pw)
                                   throws WSDLException
Serialize the ExtensibilityElements of the WSDL element model.

Parameters:
parentType - parent class of the ExtensibilityElements.
extensibilityElements - an array of ExtensibilityElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printExtensibilityAttributes

protected void printExtensibilityAttributes(XMLAttr[] attrExts,
                                            WSDLElement ownerElem,
                                            java.io.PrintWriter pw)
                                     throws WSDLException
Serialize the printExtensibilityAttributess of the WSDL element model.

Parameters:
attrExts - an array of XMLAttrs.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException

printDocumentation

protected void printDocumentation(DocumentationElement[] docEles,
                                  DescriptionElement def,
                                  java.io.PrintWriter pw)
                           throws WSDLException
Serialize the DocumentationElements of the WSDL element model.

Parameters:
docEles - an array of DocumentationElements.
des - corresponding DescriptionElement.
pw - the Writer to write the xml to.
Throws:
WSDLException


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.