Class SingleSourceGenerator
- java.lang.Object
-
- org.apache.activemq.openwire.tool.OpenWireGenerator
-
- org.apache.activemq.openwire.tool.SingleSourceGenerator
-
- Direct Known Subclasses:
CHeadersGenerator
public abstract class SingleSourceGenerator extends OpenWireGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected String
baseClass
protected String
className
protected File
destFile
protected org.codehaus.jam.JClass
jclass
protected Set<String>
manuallyMaintainedClasses
protected String
simpleName
protected List<org.codehaus.jam.JClass>
sortedClasses
protected org.codehaus.jam.JClass
superclass
-
Fields inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
filePostFix, jam, openwireVersion
-
-
Constructor Summary
Constructors Constructor Description SingleSourceGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
generateFile(PrintWriter out)
protected void
generateSetup(PrintWriter out)
protected void
generateTearDown(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
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)
Object
run()
void
setBaseClass(String baseClass)
void
setClassName(String className)
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)
protected List<org.codehaus.jam.JClass>
sort(List<org.codehaus.jam.JClass> classes)
-
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
-
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
-
sortedClasses
protected List<org.codehaus.jam.JClass> sortedClasses
-
-
Method Detail
-
run
public Object run()
-
generateTearDown
protected void generateTearDown(PrintWriter out)
-
generateSetup
protected void generateSetup(PrintWriter out)
-
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)
-
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)
-
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)
-
-