Java Doc for StubGenerator.java in  » 6.0-JDK-Modules » j2me » com » sun » j2mews » sg » 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 » 6.0 JDK Modules » j2me » com.sun.j2mews.sg 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j2mews.sg.AbstractGenerator
      com.sun.j2mews.sg.StubGenerator

StubGenerator
public class StubGenerator extends AbstractGenerator implements ProcessorAction(Code)
We'll generate the Java client stub/proxy for JSR-172. This is intended

Inner Class :protected static class QNameComparator implements Comparator
Inner Class :protected static class Type
Inner Class :protected static class Element extends Type
Inner Class :protected static class ComplexType extends Type

Field Summary
final public static  intUNBOUNDED
    
protected  booleancldc1_0InfoAlready
    
protected  booleancldc1_0InfoAlreadyConverted
    
protected  booleanfaultDetailHandlerIsInnerClass
    
protected  MapfaultNames
    
protected  booleanfloatDoubleWarning
    
protected  booleangenDebug
    
protected  booleanhasUserExceptions
    
protected  StringjavaxMicroeditionXmlRpc
     The package name to use for the basic 172 runtime types.
protected  MapmethodNames
     This table lists all methods in the Stub generated from WSDL Operations.
protected  MaporiginalTypes
    
protected  StringprepOperationMethodName
    
protected  Mapqnames
    
protected  MaptypeNames
    
protected  LinkedHashMaptypes
    
protected  booleanuseWSIBasicProfile
    
protected  MapusedTypes
    
protected  MapvarNameToQNames
    

Constructor Summary
public  StubGenerator()
    

Method Summary
protected  voidcomment(Localizable msg)
    
protected  voidcommentWarning(Localizable msg)
    
protected  TypeconvertJavaTypeToType(JavaType type)
     Convert JavaType into the a Type which the stub will use.
protected  booleanforceNillable(JavaType javatype, String methodName)
    
protected  voidgenMakeFaults(Operation operation, String fdeVar, String fdeNameVar, Map usedNames)
     Generate code to convert a JAXRPCException into service specific exceptions.
protected  StringgenMakeInputObject(JavaType type, Map usedNames, String inputExpr)
     Generate code to convert a java bean graph (most likely from the formal parameter) into an Object[] as the spec defines.
protected  voidgenMakeOutputObject(String objName, boolean objNameIsArray, String resultName, JavaType type, Map usedNames)
     Generate code to convert an Object[] into a java bean graph.
protected  voidgenMakeOutputObject(String objName, boolean objNameIsArray, String resultName, JavaStructureMember jsm, int elementNum, int membersCount, Map usedNames)
    
protected  voidgenerate()
    
protected  voidgenerateClass()
    
protected  voidgenerateFaultHandler()
     Generate code for the implementation of FaultDetailHandler.
protected  voidgenerateInitTypes()
     Generate code to initialize all of the Type's used by the stub.
protected  voidgenerateProperties()
    
protected  voidgenerateQNameVars()
     Generate code to define each QName used in the stub.
protected  voidgenerateUserMethods(Port port)
    
protected  voidgenerateUserMethods(Operation operation, JavaInterface portInterface)
    
protected  ComplexTypegetComplexType(JavaType type, List elements)
    
protected  ComplexTypegetComplexType(String name, List elements)
    
protected  ElementgetElement(QName name, Type type)
    
protected  ElementgetElement(QName name, Type type, int minOccurs, int maxOccurs, boolean nillable)
    
protected  ElementgetElement(QName name, Type type, boolean isArray, boolean nillable, boolean optional)
    
protected  StringgetFullClassName()
    
protected  StringgetQNameVar(QName name)
    
protected  FilegetSourceFile()
    
protected  StringgetSourceFileType()
    
public  booleanisValid(Operation operation, Map usedTypes)
     Check all types associated with an Operation and make sure they are all valid.
public  booleanisValid(String contextInfo, JavaType type, Map usedTypes)
    
public  voidperform(Model model, Configuration config, Properties options)
    
public  voidsetOriginalTypes(Map originalTypes)
    
protected  StringstyleToString(com.sun.xml.rpc.wsdl.document.soap.SOAPStyle style)
    
protected  StringuseToString(com.sun.xml.rpc.wsdl.document.soap.SOAPUse use)
    
protected  voidwriteImports()
    

Field Detail
UNBOUNDED
final public static int UNBOUNDED(Code)



cldc1_0InfoAlready
protected boolean cldc1_0InfoAlready(Code)



cldc1_0InfoAlreadyConverted
protected boolean cldc1_0InfoAlreadyConverted(Code)



faultDetailHandlerIsInnerClass
protected boolean faultDetailHandlerIsInnerClass(Code)



faultNames
protected Map faultNames(Code)



floatDoubleWarning
protected boolean floatDoubleWarning(Code)



genDebug
protected boolean genDebug(Code)



hasUserExceptions
protected boolean hasUserExceptions(Code)



javaxMicroeditionXmlRpc
protected String javaxMicroeditionXmlRpc(Code)
The package name to use for the basic 172 runtime types.



methodNames
protected Map methodNames(Code)
This table lists all methods in the Stub generated from WSDL Operations.



originalTypes
protected Map originalTypes(Code)



prepOperationMethodName
protected String prepOperationMethodName(Code)



qnames
protected Map qnames(Code)



typeNames
protected Map typeNames(Code)



types
protected LinkedHashMap types(Code)



useWSIBasicProfile
protected boolean useWSIBasicProfile(Code)



usedTypes
protected Map usedTypes(Code)



varNameToQNames
protected Map varNameToQNames(Code)




Constructor Detail
StubGenerator
public StubGenerator()(Code)




Method Detail
comment
protected void comment(Localizable msg) throws IOException(Code)



commentWarning
protected void commentWarning(Localizable msg) throws IOException(Code)



convertJavaTypeToType
protected Type convertJavaTypeToType(JavaType type) throws IOException(Code)
Convert JavaType into the a Type which the stub will use.



forceNillable
protected boolean forceNillable(JavaType javatype, String methodName)(Code)



genMakeFaults
protected void genMakeFaults(Operation operation, String fdeVar, String fdeNameVar, Map usedNames) throws IOException(Code)
Generate code to convert a JAXRPCException into service specific exceptions.



genMakeInputObject
protected String genMakeInputObject(JavaType type, Map usedNames, String inputExpr) throws IOException(Code)
Generate code to convert a java bean graph (most likely from the formal parameter) into an Object[] as the spec defines. See Section 8.2.4.



genMakeOutputObject
protected void genMakeOutputObject(String objName, boolean objNameIsArray, String resultName, JavaType type, Map usedNames) throws IOException(Code)
Generate code to convert an Object[] into a java bean graph. See Section 8.2.6.



genMakeOutputObject
protected void genMakeOutputObject(String objName, boolean objNameIsArray, String resultName, JavaStructureMember jsm, int elementNum, int membersCount, Map usedNames) throws IOException(Code)



generate
protected void generate() throws java.io.IOException(Code)



generateClass
protected void generateClass() throws java.io.IOException(Code)



generateFaultHandler
protected void generateFaultHandler() throws IOException(Code)
Generate code for the implementation of FaultDetailHandler.



generateInitTypes
protected void generateInitTypes() throws IOException(Code)
Generate code to initialize all of the Type's used by the stub.



generateProperties
protected void generateProperties() throws IOException(Code)



generateQNameVars
protected void generateQNameVars() throws IOException(Code)
Generate code to define each QName used in the stub.



generateUserMethods
protected void generateUserMethods(Port port) throws java.io.IOException(Code)



generateUserMethods
protected void generateUserMethods(Operation operation, JavaInterface portInterface) throws java.io.IOException(Code)



getComplexType
protected ComplexType getComplexType(JavaType type, List elements)(Code)



getComplexType
protected ComplexType getComplexType(String name, List elements)(Code)



getElement
protected Element getElement(QName name, Type type)(Code)



getElement
protected Element getElement(QName name, Type type, int minOccurs, int maxOccurs, boolean nillable)(Code)



getElement
protected Element getElement(QName name, Type type, boolean isArray, boolean nillable, boolean optional)(Code)



getFullClassName
protected String getFullClassName()(Code)



getQNameVar
protected String getQNameVar(QName name)(Code)



getSourceFile
protected File getSourceFile()(Code)



getSourceFileType
protected String getSourceFileType()(Code)



isValid
public boolean isValid(Operation operation, Map usedTypes)(Code)
Check all types associated with an Operation and make sure they are all valid.



isValid
public boolean isValid(String contextInfo, JavaType type, Map usedTypes)(Code)



perform
public void perform(Model model, Configuration config, Properties options)(Code)



setOriginalTypes
public void setOriginalTypes(Map originalTypes)(Code)

Parameters:
  originalTypes - Map maps all JavaType's thatwere replaced (@see MakeCldc1_0), and keeps a copy of the originaljava class name as the value.



styleToString
protected String styleToString(com.sun.xml.rpc.wsdl.document.soap.SOAPStyle style)(Code)



useToString
protected String useToString(com.sun.xml.rpc.wsdl.document.soap.SOAPUse use)(Code)



writeImports
protected void writeImports() throws IOException(Code)



Fields inherited from com.sun.j2mews.sg.AbstractGenerator
final public static String EXPAND_ARGUMENTS(Code)(Java Doc)
final public static String FLOAT_DOUBLE_TO_STRING(Code)(Java Doc)
final public static String OPTIMIZE(Code)(Java Doc)
final public static String SHOW_ALL_CLDC1_0_INFO(Code)(Java Doc)
protected String className(Code)(Java Doc)
protected com.sun.xml.rpc.processor.util.ProcessorEnvironment env(Code)(Java Doc)
protected boolean expandArguments(Code)(Java Doc)
protected String fullClassName(Code)(Java Doc)
protected JavaWriter jw(Code)(Java Doc)
protected Localizer localizer(Code)(Java Doc)
protected LocalizableMessageFactory messageFactory(Code)(Java Doc)
protected boolean optimize(Code)(Java Doc)
protected String packageName(Code)(Java Doc)
protected Port port(Code)(Java Doc)
protected Service service(Code)(Java Doc)
protected boolean showCldc1_0Info(Code)(Java Doc)
protected File sourceDir(Code)(Java Doc)

Methods inherited from com.sun.j2mews.sg.AbstractGenerator
protected static String baseName(String fullName)(Code)(Java Doc)
public void generate(Service service) throws IOException(Code)(Java Doc)
protected void generate() throws java.io.IOException(Code)(Java Doc)
abstract protected void generateClass() throws java.io.IOException(Code)(Java Doc)
protected List getExpandedParametersList(JavaMethod method)(Code)(Java Doc)
protected JavaType getExpandedReturnType(JavaMethod method)(Code)(Java Doc)
abstract protected String getFullClassName()(Code)(Java Doc)
protected Localizable getMessage(String key)(Code)(Java Doc)
protected Localizable getMessage(String key, String arg)(Code)(Java Doc)
protected Localizable getMessage(String key, String arg1, String arg2)(Code)(Java Doc)
protected Localizable getMessage(String key, String arg1, String arg2, String arg3)(Code)(Java Doc)
protected Localizable getMessage(String key, Localizable l)(Code)(Java Doc)
protected Localizable getMessage(String key, Object[] args)(Code)(Java Doc)
abstract protected File getSourceFile()(Code)(Java Doc)
abstract protected String getSourceFileType()(Code)(Java Doc)
protected String instanceOf(JavaType type, String suffix, Map usedNames)(Code)(Java Doc)
protected String instanceOf(JavaType type, Map usedNames)(Code)(Java Doc)
protected String instanceOf(QName name, String suffix, Map usedNames)(Code)(Java Doc)
protected String instanceOf(String name, String suffix, Map usedNames)(Code)(Java Doc)
public static boolean isValidType(String type)(Code)(Java Doc)
protected String javaTypeToString(JavaType type)(Code)(Java Doc)
protected String localize(Localizable msg)(Code)(Java Doc)
protected void log(String msg)(Code)(Java Doc)
protected String makeUniq(String name, Map usedNames)(Code)(Java Doc)
protected String makeVarName(QName name, String prefix, Map usedNames)(Code)(Java Doc)
protected void onError(Localizable msg)(Code)(Java Doc)
protected void onInfo(Localizable msg)(Code)(Java Doc)
protected void onWarning(Localizable msg)(Code)(Java Doc)
public void perform(Model model, Configuration config, Properties options)(Code)(Java Doc)
public void setEnvironment(com.sun.xml.rpc.processor.util.ProcessorEnvironment e)(Code)(Java Doc)
protected void setFullClassName(String name)(Code)(Java Doc)
public void setLocalizer(Localizer l)(Code)(Java Doc)
protected void writeImports() throws IOException(Code)(Java Doc)
protected void writeOutGeneratedFile() throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.