Java Doc for DefaultSchemaGenerator.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » description » java2wsdl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services AXIS2 » kernal » org.apache.axis2.description.java2wsdl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator

All known Subclasses:   org.apache.axis2.description.java2wsdl.DocLitBareSchemaGenerator,
DefaultSchemaGenerator
public class DefaultSchemaGenerator implements Java2WSDLConstants,SchemaGenerator(Code)


Field Summary
final public static  StringNAME_SPACE_PREFIX
    
protected  StringattrFormDefault
    
protected  ClassLoaderclassLoader
    
protected  StringclassName
    
protected  StringelementFormDefault
    
protected  ArrayListexcludeMethods
    
protected  ArrayListextraClasses
    
protected  booleangenerateBaseException
    
protected  MethodTablemethodTable
    
protected  JMethodmethods
    
protected  ArrayListnonRpcMethods
    
protected  NamespaceGeneratornsGen
    
protected  Mappkg2nsmap
    
protected  MapschemaMap
    
protected  StringschemaTargetNameSpace
    
protected  Stringschema_namespace_prefix
    
protected  AxisServiceservice
    
protected  ClassserviceClass
    
protected  StringtargetNamespace
    
protected  MaptargetNamespacePrefixMap
    
protected  TypeTabletypeTable
    
protected  booleanuseWSDLTypesNamespace
    
protected  XmlSchemaCollectionxmlSchemaCollection
    

Constructor Summary
public  DefaultSchemaGenerator(ClassLoader loader, String className, String schematargetNamespace, String schematargetNamespacePrefix, AxisService service)
    

Method Summary
protected  voidaddContentToMethodSchemaType(XmlSchemaSequence sequence, QName schemaTypeName, String paraName, boolean isArray)
    
protected  voidaddImport(XmlSchema xmlSchema, QName schemaTypeName)
    
protected  StringgeneratePrefix()
    
public  CollectiongenerateSchema()
     Generates schema for all the parameters in method.
protected  voidgenerateSchemaforFieldsandProperties(XmlSchema xmlSchema, XmlSchemaSequence sequence, JClass type, String name, boolean isArryType)
    
public  StringgetAttrFormDefault()
    
protected  XmlSchemaFormgetAttrFormDefaultSetting()
    
protected  XmlSchemaComplexTypegetComplexTypeForElement(XmlSchema xmlSchema, QName name)
    
public static  StringgetCorrectName(String wrongName)
    
public  StringgetElementFormDefault()
    
protected  XmlSchemaFormgetElementFormDefaultSetting()
    
public  ArrayListgetExtraClasses()
    
public  JMethod[]getMethods()
    
public  NamespaceGeneratorgetNsGen()
    
public  MapgetPkg2nsmap()
    
protected  StringgetQualifiedName(JMethod method)
    
protected  StringgetQualifiedName(JClass type)
    
protected  StringgetQualifiedName(JProperty peroperty)
    
protected  StringgetQualifiedName(JParameter parameter)
    
protected  StringgetQualifiedName(JPackage packagez)
    
public  StringgetSchemaTargetNameSpace()
    
protected  StringgetSimpleName(JMethod method)
    
protected  StringgetSimpleName(JClass type)
    
protected  StringgetSimpleName(JProperty peroperty)
    
protected  StringgetSimpleName(JParameter parameter)
    
public  StringgetTargetNamespace()
    
public  TypeTablegetTypeTable()
    
protected  booleanisDataHandler(JClass clazz)
    
public  booleanisUseWSDLTypesNamespace()
    
protected  voidprocessException(JMethod jMethod, AxisOperation axisOperation)
    
protected  JMethod[]processMethods(JMethod[] declaredMethods)
    
protected  StringresolveSchemaNamespace(String packageName)
    
public  voidsetAttrFormDefault(String attrFormDefault)
    
public  voidsetAxisService(AxisService service)
    
public  voidsetElementFormDefault(String elementFormDefault)
    
public  voidsetExcludeMethods(ArrayList excludeMethods)
    
public  voidsetExtraClasses(ArrayList extraClasses)
    
public  voidsetNonRpcMethods(ArrayList nonRpcMethods)
    
public  voidsetNsGen(NamespaceGenerator nsGen)
    
public  voidsetPkg2nsmap(Map pkg2nsmap)
    
public  voidsetUseWSDLTypesNamespace(boolean useWSDLTypesNamespace)
    

Field Detail
NAME_SPACE_PREFIX
final public static String NAME_SPACE_PREFIX(Code)



attrFormDefault
protected String attrFormDefault(Code)



classLoader
protected ClassLoader classLoader(Code)



className
protected String className(Code)



elementFormDefault
protected String elementFormDefault(Code)



excludeMethods
protected ArrayList excludeMethods(Code)



extraClasses
protected ArrayList extraClasses(Code)



generateBaseException
protected boolean generateBaseException(Code)



methodTable
protected MethodTable methodTable(Code)



methods
protected JMethod methods(Code)



nonRpcMethods
protected ArrayList nonRpcMethods(Code)



nsGen
protected NamespaceGenerator nsGen(Code)



pkg2nsmap
protected Map pkg2nsmap(Code)



schemaMap
protected Map schemaMap(Code)



schemaTargetNameSpace
protected String schemaTargetNameSpace(Code)



schema_namespace_prefix
protected String schema_namespace_prefix(Code)



service
protected AxisService service(Code)



serviceClass
protected Class serviceClass(Code)



targetNamespace
protected String targetNamespace(Code)



targetNamespacePrefixMap
protected Map targetNamespacePrefixMap(Code)



typeTable
protected TypeTable typeTable(Code)



useWSDLTypesNamespace
protected boolean useWSDLTypesNamespace(Code)



xmlSchemaCollection
protected XmlSchemaCollection xmlSchemaCollection(Code)




Constructor Detail
DefaultSchemaGenerator
public DefaultSchemaGenerator(ClassLoader loader, String className, String schematargetNamespace, String schematargetNamespacePrefix, AxisService service) throws Exception(Code)




Method Detail
addContentToMethodSchemaType
protected void addContentToMethodSchemaType(XmlSchemaSequence sequence, QName schemaTypeName, String paraName, boolean isArray)(Code)



addImport
protected void addImport(XmlSchema xmlSchema, QName schemaTypeName)(Code)



generatePrefix
protected String generatePrefix()(Code)



generateSchema
public Collection generateSchema() throws Exception(Code)
Generates schema for all the parameters in method. First generates schema for all different parameter type and later refers to them. Returns XmlSchema.
throws:
  Exception -



generateSchemaforFieldsandProperties
protected void generateSchemaforFieldsandProperties(XmlSchema xmlSchema, XmlSchemaSequence sequence, JClass type, String name, boolean isArryType) throws Exception(Code)



getAttrFormDefault
public String getAttrFormDefault()(Code)



getAttrFormDefaultSetting
protected XmlSchemaForm getAttrFormDefaultSetting()(Code)



getComplexTypeForElement
protected XmlSchemaComplexType getComplexTypeForElement(XmlSchema xmlSchema, QName name)(Code)



getCorrectName
public static String getCorrectName(String wrongName)(Code)
JAM convert first name of an attribute into UpperCase as an example if there is a instance variable called foo in a bean , then Jam give that as Foo so this method is to correct that error
Parameters:
  wrongName - the right name, using english as the locale for case conversion



getElementFormDefault
public String getElementFormDefault()(Code)



getElementFormDefaultSetting
protected XmlSchemaForm getElementFormDefaultSetting()(Code)



getExtraClasses
public ArrayList getExtraClasses()(Code)



getMethods
public JMethod[] getMethods()(Code)



getNsGen
public NamespaceGenerator getNsGen() throws Exception(Code)



getPkg2nsmap
public Map getPkg2nsmap()(Code)



getQualifiedName
protected String getQualifiedName(JMethod method)(Code)



getQualifiedName
protected String getQualifiedName(JClass type)(Code)



getQualifiedName
protected String getQualifiedName(JProperty peroperty)(Code)



getQualifiedName
protected String getQualifiedName(JParameter parameter)(Code)



getQualifiedName
protected String getQualifiedName(JPackage packagez)(Code)



getSchemaTargetNameSpace
public String getSchemaTargetNameSpace()(Code)



getSimpleName
protected String getSimpleName(JMethod method)(Code)



getSimpleName
protected String getSimpleName(JClass type)(Code)



getSimpleName
protected String getSimpleName(JProperty peroperty)(Code)



getSimpleName
protected String getSimpleName(JParameter parameter)(Code)



getTargetNamespace
public String getTargetNamespace()(Code)



getTypeTable
public TypeTable getTypeTable()(Code)



isDataHandler
protected boolean isDataHandler(JClass clazz)(Code)



isUseWSDLTypesNamespace
public boolean isUseWSDLTypesNamespace()(Code)



processException
protected void processException(JMethod jMethod, AxisOperation axisOperation) throws Exception(Code)
This method will generate Schema element for all the excetion types in a given JMethod - No matter what it will generate Schema element for java.lang.Exception so that for other exception which extend java.lang.Excetion can use as the base class type



processMethods
protected JMethod[] processMethods(JMethod[] declaredMethods) throws Exception(Code)



resolveSchemaNamespace
protected String resolveSchemaNamespace(String packageName) throws Exception(Code)



setAttrFormDefault
public void setAttrFormDefault(String attrFormDefault)(Code)



setAxisService
public void setAxisService(AxisService service)(Code)



setElementFormDefault
public void setElementFormDefault(String elementFormDefault)(Code)



setExcludeMethods
public void setExcludeMethods(ArrayList excludeMethods)(Code)



setExtraClasses
public void setExtraClasses(ArrayList extraClasses)(Code)



setNonRpcMethods
public void setNonRpcMethods(ArrayList nonRpcMethods)(Code)



setNsGen
public void setNsGen(NamespaceGenerator nsGen)(Code)



setPkg2nsmap
public void setPkg2nsmap(Map pkg2nsmap)(Code)



setUseWSDLTypesNamespace
public void setUseWSDLTypesNamespace(boolean useWSDLTypesNamespace)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.