org.codehaus.xfire.gen.jsr181
Class AbstractServiceGenerator

java.lang.Object
  extended by org.codehaus.xfire.gen.jsr181.AbstractPlugin
      extended by org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator
All Implemented Interfaces:
GeneratorPlugin
Direct Known Subclasses:
ServiceInterfaceGenerator, ServiceStubGenerator

public abstract class AbstractServiceGenerator
extends AbstractPlugin
implements GeneratorPlugin


Nested Class Summary
static class AbstractServiceGenerator.ParamInfo
           
 
Constructor Summary
AbstractServiceGenerator()
           
 
Method Summary
protected  void annotate(GenerationContext context, org.codehaus.xfire.service.OperationInfo op, com.sun.codemodel.JMethod method)
           
protected  void annotate(GenerationContext context, org.codehaus.xfire.service.OperationInfo op, com.sun.codemodel.JMethod method, org.codehaus.xfire.service.Binding binding)
           
protected  void annotate(GenerationContext context, org.codehaus.xfire.service.Service service, com.sun.codemodel.JDefinedClass jc, org.codehaus.xfire.service.Binding binding)
           
protected  void annotate(org.codehaus.xfire.service.MessagePartInfo part, com.sun.codemodel.JVar jvar)
           
protected  void annotate(org.codehaus.xfire.service.MessagePartInfo part, com.sun.codemodel.JVar jvar, org.codehaus.xfire.service.Binding binding)
           
protected  void annotateInOutParam(org.codehaus.xfire.service.MessagePartInfo part, com.sun.codemodel.JVar jvar, org.codehaus.xfire.service.Binding binding)
           
protected  void annotateOneWay(com.sun.codemodel.JMethod method)
           
protected  void annotateOutParam(org.codehaus.xfire.service.MessagePartInfo part, com.sun.codemodel.JVar jvar)
           
protected  void annotateOutParam(org.codehaus.xfire.service.MessagePartInfo part, com.sun.codemodel.JVar jvar, org.codehaus.xfire.service.Binding binding)
           
protected  void annotateParam(AbstractServiceGenerator.ParamInfo param, com.sun.codemodel.JVar jvar)
           
protected  void annotateReturnType(com.sun.codemodel.JMethod method, org.codehaus.xfire.service.MessagePartInfo returnPart)
           
protected  void annotateReturnType(com.sun.codemodel.JMethod method, org.codehaus.xfire.service.MessagePartInfo returnPart, org.codehaus.xfire.service.Binding binding)
           
 void generate(GenerationContext context)
           
 void generate(GenerationContext context, org.codehaus.xfire.service.Service service)
           
 void generate(GenerationContext context, org.codehaus.xfire.service.Service service, org.codehaus.xfire.service.Binding binding)
           
protected  void generateFaults(GenerationContext context, org.codehaus.xfire.service.OperationInfo op, com.sun.codemodel.JMethod method)
           
protected abstract  java.lang.String getClassName(GenerationContext context, org.codehaus.xfire.service.Service service)
           
protected abstract  com.sun.codemodel.ClassType getClassType()
           
 org.codehaus.xfire.service.Service getCurrentService()
           
protected  com.sun.codemodel.JType getHolderType(GenerationContext context, org.codehaus.xfire.service.MessagePartInfo part)
           
protected  com.sun.codemodel.JType getReturnType(GenerationContext context, SchemaSupport schema, org.codehaus.xfire.service.OperationInfo op)
          Find the return type for the operation.
protected  boolean isWritten(GenerationContext context)
           
protected  boolean overwriteClass(GenerationContext context, org.codehaus.xfire.service.Service service, java.lang.String clsName, java.io.File classFile)
           
 void setCurrentService(org.codehaus.xfire.service.Service currentService)
           
 
Methods inherited from class org.codehaus.xfire.gen.jsr181.AbstractPlugin
getPackage, getUniqueName, javify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractServiceGenerator

public AbstractServiceGenerator()
Method Detail

generate

public void generate(GenerationContext context)
              throws java.lang.Exception
Specified by:
generate in interface GeneratorPlugin
Throws:
java.lang.Exception

generate

public void generate(GenerationContext context,
                     org.codehaus.xfire.service.Service service)
              throws java.lang.Exception
Throws:
java.lang.Exception

generate

public void generate(GenerationContext context,
                     org.codehaus.xfire.service.Service service,
                     org.codehaus.xfire.service.Binding binding)
              throws java.lang.Exception
Throws:
java.lang.Exception

overwriteClass

protected boolean overwriteClass(GenerationContext context,
                                 org.codehaus.xfire.service.Service service,
                                 java.lang.String clsName,
                                 java.io.File classFile)

getCurrentService

public org.codehaus.xfire.service.Service getCurrentService()

setCurrentService

public void setCurrentService(org.codehaus.xfire.service.Service currentService)

isWritten

protected boolean isWritten(GenerationContext context)

annotateOneWay

protected void annotateOneWay(com.sun.codemodel.JMethod method)

annotateParam

protected void annotateParam(AbstractServiceGenerator.ParamInfo param,
                             com.sun.codemodel.JVar jvar)

getHolderType

protected com.sun.codemodel.JType getHolderType(GenerationContext context,
                                                org.codehaus.xfire.service.MessagePartInfo part)
                                         throws GenerationException
Throws:
GenerationException

generateFaults

protected void generateFaults(GenerationContext context,
                              org.codehaus.xfire.service.OperationInfo op,
                              com.sun.codemodel.JMethod method)
                       throws GenerationException
Throws:
GenerationException

getClassName

protected abstract java.lang.String getClassName(GenerationContext context,
                                                 org.codehaus.xfire.service.Service service)

getClassType

protected abstract com.sun.codemodel.ClassType getClassType()

annotate

protected void annotate(GenerationContext context,
                        org.codehaus.xfire.service.OperationInfo op,
                        com.sun.codemodel.JMethod method)

annotate

protected void annotate(GenerationContext context,
                        org.codehaus.xfire.service.OperationInfo op,
                        com.sun.codemodel.JMethod method,
                        org.codehaus.xfire.service.Binding binding)

annotateOutParam

protected void annotateOutParam(org.codehaus.xfire.service.MessagePartInfo part,
                                com.sun.codemodel.JVar jvar)

annotateOutParam

protected void annotateOutParam(org.codehaus.xfire.service.MessagePartInfo part,
                                com.sun.codemodel.JVar jvar,
                                org.codehaus.xfire.service.Binding binding)

annotateInOutParam

protected void annotateInOutParam(org.codehaus.xfire.service.MessagePartInfo part,
                                  com.sun.codemodel.JVar jvar,
                                  org.codehaus.xfire.service.Binding binding)

annotateReturnType

protected void annotateReturnType(com.sun.codemodel.JMethod method,
                                  org.codehaus.xfire.service.MessagePartInfo returnPart)

annotateReturnType

protected void annotateReturnType(com.sun.codemodel.JMethod method,
                                  org.codehaus.xfire.service.MessagePartInfo returnPart,
                                  org.codehaus.xfire.service.Binding binding)

annotate

protected void annotate(org.codehaus.xfire.service.MessagePartInfo part,
                        com.sun.codemodel.JVar jvar)

annotate

protected void annotate(org.codehaus.xfire.service.MessagePartInfo part,
                        com.sun.codemodel.JVar jvar,
                        org.codehaus.xfire.service.Binding binding)

getReturnType

protected com.sun.codemodel.JType getReturnType(GenerationContext context,
                                                SchemaSupport schema,
                                                org.codehaus.xfire.service.OperationInfo op)
                                         throws GenerationException
Find the return type for the operation. If there is no output message void is returned.

Throws:
GenerationException

annotate

protected void annotate(GenerationContext context,
                        org.codehaus.xfire.service.Service service,
                        com.sun.codemodel.JDefinedClass jc,
                        org.codehaus.xfire.service.Binding binding)


Copyright © 2004-2009. All Rights Reserved.