Apache CXF API

org.apache.cxf.tools.wadlto.jaxrs
Class SourceGenerator

java.lang.Object
  extended by org.apache.cxf.tools.wadlto.jaxrs.SourceGenerator

public class SourceGenerator
extends Object


Field Summary
static String CODE_TYPE_GRAMMAR
           
static String CODE_TYPE_PROXY
           
static String CODE_TYPE_WEB
           
static String FILE_SEP_PROPERTY
           
static String LINE_SEP_PROPERTY
           
 
Constructor Summary
SourceGenerator()
           
SourceGenerator(Map<String,String> properties)
           
 
Method Summary
 void generateMainClass(Element resourcesEl, File src)
           
 void generateSource(String wadl, File srcDir, String codeType)
           
 List<String> getGeneratedServiceClasses()
           
 List<String> getGeneratedTypeClasses()
           
 String getWadlNamespace()
           
 void setBindingFiles(List<InputSource> files)
           
 void setBus(Bus bus)
           
 void setCompilerArgs(List<String> args)
           
 void setGenerateEnums(boolean generate)
           
 void setGenerateImplementation(boolean generate)
           
 void setGenerateInterfaces(boolean generateInterfaces)
           
 void setGenerateResponseIfHeadersSet(boolean set)
           
 void setImportsComparator(Comparator<String> importsComparator)
           
 void setInheritResourceParams(boolean inherit)
           
 void setJavaTypeMap(Map<String,String> map)
           
 void setMediaTypeMap(Map<String,String> map)
           
 void setPackageName(String name)
           
 void setResourceName(String name)
           
 void setResponseMethods(Set<String> responseMethods)
           
 void setSchemaPackageFiles(List<InputSource> files)
           
 void setSchemaPackageMap(Map<String,String> map)
           
 void setSchemaTypeMap(Map<String,String> map)
           
 void setSkipSchemaGeneration(boolean skip)
           
 void setSupportMultipleXmlReps(boolean support)
           
 void setSuspendedAsyncMethods(Set<String> asyncMethods)
           
 void setUseVoidForEmptyResponses(boolean use)
           
 void setWadlNamespace(String ns)
           
 void setWadlPath(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODE_TYPE_GRAMMAR

public static final String CODE_TYPE_GRAMMAR
See Also:
Constant Field Values

CODE_TYPE_PROXY

public static final String CODE_TYPE_PROXY
See Also:
Constant Field Values

CODE_TYPE_WEB

public static final String CODE_TYPE_WEB
See Also:
Constant Field Values

LINE_SEP_PROPERTY

public static final String LINE_SEP_PROPERTY
See Also:
Constant Field Values

FILE_SEP_PROPERTY

public static final String FILE_SEP_PROPERTY
See Also:
Constant Field Values
Constructor Detail

SourceGenerator

public SourceGenerator()

SourceGenerator

public SourceGenerator(Map<String,String> properties)
Method Detail

setSupportMultipleXmlReps

public void setSupportMultipleXmlReps(boolean support)

setWadlNamespace

public void setWadlNamespace(String ns)

setUseVoidForEmptyResponses

public void setUseVoidForEmptyResponses(boolean use)

setGenerateResponseIfHeadersSet

public void setGenerateResponseIfHeadersSet(boolean set)

getWadlNamespace

public String getWadlNamespace()

setGenerateEnums

public void setGenerateEnums(boolean generate)

setSkipSchemaGeneration

public void setSkipSchemaGeneration(boolean skip)

setSuspendedAsyncMethods

public void setSuspendedAsyncMethods(Set<String> asyncMethods)

setResponseMethods

public void setResponseMethods(Set<String> responseMethods)

generateSource

public void generateSource(String wadl,
                           File srcDir,
                           String codeType)

generateMainClass

public void generateMainClass(Element resourcesEl,
                              File src)

setImportsComparator

public void setImportsComparator(Comparator<String> importsComparator)

setGenerateInterfaces

public void setGenerateInterfaces(boolean generateInterfaces)

setGenerateImplementation

public void setGenerateImplementation(boolean generate)

setPackageName

public void setPackageName(String name)

setResourceName

public void setResourceName(String name)

setWadlPath

public void setWadlPath(String name)

setBindingFiles

public void setBindingFiles(List<InputSource> files)

setSchemaPackageFiles

public void setSchemaPackageFiles(List<InputSource> files)

setCompilerArgs

public void setCompilerArgs(List<String> args)

setInheritResourceParams

public void setInheritResourceParams(boolean inherit)

setSchemaPackageMap

public void setSchemaPackageMap(Map<String,String> map)

setJavaTypeMap

public void setJavaTypeMap(Map<String,String> map)

setSchemaTypeMap

public void setSchemaTypeMap(Map<String,String> map)

setMediaTypeMap

public void setMediaTypeMap(Map<String,String> map)

setBus

public void setBus(Bus bus)

getGeneratedServiceClasses

public List<String> getGeneratedServiceClasses()

getGeneratedTypeClasses

public List<String> getGeneratedTypeClasses()

Apache CXF API

Apache CXF