| 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 | |
Method Summary | |
protected void | comment(Localizable msg) | protected void | commentWarning(Localizable msg) | protected Type | convertJavaTypeToType(JavaType type) Convert JavaType into the a Type which the stub will use. | protected boolean | forceNillable(JavaType javatype, String methodName) | protected void | genMakeFaults(Operation operation, String fdeVar, String fdeNameVar, Map usedNames) Generate code to convert a JAXRPCException into service
specific exceptions. | protected String | genMakeInputObject(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 void | genMakeOutputObject(String objName, boolean objNameIsArray, String resultName, JavaType type, Map usedNames) Generate code to convert an Object[] into a java bean graph. | protected void | genMakeOutputObject(String objName, boolean objNameIsArray, String resultName, JavaStructureMember jsm, int elementNum, int membersCount, Map usedNames) | protected void | generate() | protected void | generateClass() | protected void | generateFaultHandler() Generate code for the implementation of FaultDetailHandler. | protected void | generateInitTypes() Generate code to initialize all of the Type's used by the stub. | protected void | generateProperties() | protected void | generateQNameVars() Generate code to define each QName used in the stub. | protected void | generateUserMethods(Port port) | protected void | generateUserMethods(Operation operation, JavaInterface portInterface) | protected ComplexType | getComplexType(JavaType type, List elements) | protected ComplexType | getComplexType(String name, List elements) | protected Element | getElement(QName name, Type type) | protected Element | getElement(QName name, Type type, int minOccurs, int maxOccurs, boolean nillable) | protected Element | getElement(QName name, Type type, boolean isArray, boolean nillable, boolean optional) | protected String | getFullClassName() | protected String | getQNameVar(QName name) | protected File | getSourceFile() | protected String | getSourceFileType() | public boolean | isValid(Operation operation, Map usedTypes) Check all types associated with an Operation and make sure they are
all valid. | public boolean | isValid(String contextInfo, JavaType type, Map usedTypes) | public void | perform(Model model, Configuration config, Properties options) | public void | setOriginalTypes(Map originalTypes) | protected String | styleToString(com.sun.xml.rpc.wsdl.document.soap.SOAPStyle style) | protected String | useToString(com.sun.xml.rpc.wsdl.document.soap.SOAPUse use) | protected void | writeImports() |
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) | | |
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) | | |
useWSIBasicProfile | protected boolean useWSIBasicProfile(Code) | | |
varNameToQNames | protected Map varNameToQNames(Code) | | |
StubGenerator | public StubGenerator()(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) | | |
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.
|
generateQNameVars | protected void generateQNameVars() throws IOException(Code) | | Generate code to define each QName used in the stub.
|
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) | | |
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) | | |
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)
|
|
|