Class MultiSourceGenerator
- java.lang.Object
-
- org.apache.activemq.openwire.tool.OpenWireGenerator
-
- org.apache.activemq.openwire.tool.MultiSourceGenerator
-
- Direct Known Subclasses:
CppClassesGenerator
,CSharpClassesGenerator
,JavaMarshallingGenerator
,JavaTestsGenerator
public abstract class MultiSourceGenerator extends OpenWireGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected String
baseClass
protected StringBuffer
buffer
protected String
className
protected File
destDir
protected File
destFile
protected org.codehaus.jam.JClass
jclass
protected Set<String>
manuallyMaintainedClasses
protected String
simpleName
protected org.codehaus.jam.JClass
superclass
-
Fields inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
filePostFix, jam, openwireVersion
-
-
Constructor Summary
Constructors Constructor Description MultiSourceGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
generateFile(PrintWriter out)
String
getAbstractClassText()
String
getBaseClass()
protected String
getBaseClassName(org.codehaus.jam.JClass jclass)
String
getClassName()
protected String
getClassName(org.codehaus.jam.JClass jclass)
File
getDestDir()
File
getDestFile()
org.codehaus.jam.JClass
getJclass()
Set<String>
getManuallyMaintainedClasses()
List<org.codehaus.jam.JProperty>
getProperties()
Returns all the valid properties available on the current classString
getSimpleName()
org.codehaus.jam.JClass
getSuperclass()
protected void
initialiseManuallyMaintainedClasses()
boolean
isAbstractClass()
boolean
isMarshallerAware()
protected boolean
isValidClass(org.codehaus.jam.JClass jclass)
protected void
processClass(org.codehaus.jam.JClass jclass)
Object
run()
void
setBaseClass(String baseClass)
void
setClassName(String className)
void
setDestDir(File destDir)
void
setDestFile(File destFile)
void
setJclass(org.codehaus.jam.JClass jclass)
void
setManuallyMaintainedClasses(Set<String> manuallyMaintainedClasses)
void
setSimpleName(String simpleName)
void
setSuperclass(org.codehaus.jam.JClass superclass)
-
Methods inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
capitalize, decapitalize, getClasses, getJam, getOpenWireOpCode, getOpenwireVersion, isAbstract, isCachedProperty, isMarshallAware, isThrowable, isValidProperty, setJam, setOpenwireVersion, stringValue, stringValue, toCSharpType
-
-
-
-
Field Detail
-
destDir
protected File destDir
-
destFile
protected File destFile
-
jclass
protected org.codehaus.jam.JClass jclass
-
superclass
protected org.codehaus.jam.JClass superclass
-
simpleName
protected String simpleName
-
className
protected String className
-
baseClass
protected String baseClass
-
buffer
protected StringBuffer buffer
-
-
Method Detail
-
run
public Object run()
-
getProperties
public List<org.codehaus.jam.JProperty> getProperties()
Returns all the valid properties available on the current class
-
isValidClass
protected boolean isValidClass(org.codehaus.jam.JClass jclass)
-
processClass
protected void processClass(org.codehaus.jam.JClass jclass)
-
generateFile
protected abstract void generateFile(PrintWriter out) throws Exception
- Throws:
Exception
-
getBaseClassName
protected String getBaseClassName(org.codehaus.jam.JClass jclass)
-
getClassName
protected String getClassName(org.codehaus.jam.JClass jclass)
-
isAbstractClass
public boolean isAbstractClass()
-
getAbstractClassText
public String getAbstractClassText()
-
isMarshallerAware
public boolean isMarshallerAware()
-
initialiseManuallyMaintainedClasses
protected void initialiseManuallyMaintainedClasses()
-
getBaseClass
public String getBaseClass()
-
setBaseClass
public void setBaseClass(String baseClass)
-
getClassName
public String getClassName()
-
setClassName
public void setClassName(String className)
-
getDestDir
public File getDestDir()
-
setDestDir
public void setDestDir(File destDir)
-
getDestFile
public File getDestFile()
-
setDestFile
public void setDestFile(File destFile)
-
getJclass
public org.codehaus.jam.JClass getJclass()
-
setJclass
public void setJclass(org.codehaus.jam.JClass jclass)
-
setManuallyMaintainedClasses
public void setManuallyMaintainedClasses(Set<String> manuallyMaintainedClasses)
-
getSimpleName
public String getSimpleName()
-
setSimpleName
public void setSimpleName(String simpleName)
-
getSuperclass
public org.codehaus.jam.JClass getSuperclass()
-
setSuperclass
public void setSuperclass(org.codehaus.jam.JClass superclass)
-
-