org.apache.axis.wsdlgen
Class Types

java.lang.Object
  |
  +--org.apache.axis.wsdlgen.Types

public class Types
extends java.lang.Object

Description:

This class is used to recursively serializes a Java Class into an XML Schema representation. It has utility methods to create a schema node, assosiate namespaces to the various types

Author:
unascribed

Constructor Summary
Types(javax.wsdl.Definition def, TypeMappingRegistry reg, Namespaces namespaces, java.lang.String targetNamespace)
          This class serailizes a Class to XML Schema.
 
Method Summary
 void insertTypesFragment(org.w3c.dom.Document doc)
          Inserts the type fragment into the given wsdl document
 javax.wsdl.QName writePartType(java.lang.Class type)
          Serialize the Class as XML schema to the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Types

public Types(javax.wsdl.Definition def,
             TypeMappingRegistry reg,
             Namespaces namespaces,
             java.lang.String targetNamespace)
This class serailizes a Class to XML Schema. The constructor provides the context for the streamed node within the WSDL document
Parameters:
def - WSDL Definition Element to declare namespaces
doc - Document element of the WSDL used to create child elements
reg - TypeMappingRegistry to handle known types
namespaces - user defined or autogenerated namespace and prefix maps
targetNamespace - targetNamespace of the document
Method Detail

writePartType

public javax.wsdl.QName writePartType(java.lang.Class type)
                               throws java.lang.Exception
Serialize the Class as XML schema to the document. Create a types node for the WSDL if one doesn't exist Create a schema node for the Class namespace, if one doesn't exist In case of a primitive type, no need to stream out anything, just return the QName of the primitive type
Parameters:
param - Class to generate the XML Schema info for
Returns:
the QName of the generated Schema type, null if void

insertTypesFragment

public void insertTypesFragment(org.w3c.dom.Document doc)
Inserts the type fragment into the given wsdl document
Parameters:
doc -  


Copyright © 2001 Apache XML Project. All Rights Reserved.