org.apache.activemq.openwire.tool
Class MultiSourceGenerator

java.lang.Object
  extended by org.apache.activemq.openwire.tool.OpenWireGenerator
      extended by org.apache.activemq.openwire.tool.MultiSourceGenerator
Direct Known Subclasses:
CppClassesGenerator, CSharpClassesGenerator, JavaMarshallingGenerator, JavaTestsGenerator

public abstract class MultiSourceGenerator
extends OpenWireGenerator


Field Summary
protected  java.lang.String baseClass
           
protected  java.lang.StringBuffer buffer
           
protected  java.lang.String className
           
protected  java.io.File destDir
           
protected  java.io.File destFile
           
protected  org.codehaus.jam.JClass jclass
           
protected  java.util.Set<java.lang.String> manuallyMaintainedClasses
           
protected  java.lang.String simpleName
           
protected  org.codehaus.jam.JClass superclass
           
 
Fields inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
filePostFix, jam, openwireVersion
 
Constructor Summary
MultiSourceGenerator()
           
 
Method Summary
protected abstract  void generateFile(java.io.PrintWriter out)
           
 java.lang.String getAbstractClassText()
           
 java.lang.String getBaseClass()
           
protected  java.lang.String getBaseClassName(org.codehaus.jam.JClass jclass)
           
 java.lang.String getClassName()
           
protected  java.lang.String getClassName(org.codehaus.jam.JClass jclass)
           
 java.io.File getDestDir()
           
 java.io.File getDestFile()
           
 org.codehaus.jam.JClass getJclass()
           
 java.util.Set<java.lang.String> getManuallyMaintainedClasses()
           
 java.util.List<org.codehaus.jam.JProperty> getProperties()
          Returns all the valid properties available on the current class
 java.lang.String 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)
           
 java.lang.Object run()
           
 void setBaseClass(java.lang.String baseClass)
           
 void setClassName(java.lang.String className)
           
 void setDestDir(java.io.File destDir)
           
 void setDestFile(java.io.File destFile)
           
 void setJclass(org.codehaus.jam.JClass jclass)
           
 void setManuallyMaintainedClasses(java.util.Set<java.lang.String> manuallyMaintainedClasses)
           
 void setSimpleName(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manuallyMaintainedClasses

protected java.util.Set<java.lang.String> manuallyMaintainedClasses

destDir

protected java.io.File destDir

destFile

protected java.io.File destFile

jclass

protected org.codehaus.jam.JClass jclass

superclass

protected org.codehaus.jam.JClass superclass

simpleName

protected java.lang.String simpleName

className

protected java.lang.String className

baseClass

protected java.lang.String baseClass

buffer

protected java.lang.StringBuffer buffer
Constructor Detail

MultiSourceGenerator

public MultiSourceGenerator()
Method Detail

run

public java.lang.Object run()

getProperties

public java.util.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(java.io.PrintWriter out)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getBaseClassName

protected java.lang.String getBaseClassName(org.codehaus.jam.JClass jclass)

getClassName

protected java.lang.String getClassName(org.codehaus.jam.JClass jclass)

isAbstractClass

public boolean isAbstractClass()

getAbstractClassText

public java.lang.String getAbstractClassText()

isMarshallerAware

public boolean isMarshallerAware()

initialiseManuallyMaintainedClasses

protected void initialiseManuallyMaintainedClasses()

getBaseClass

public java.lang.String getBaseClass()

setBaseClass

public void setBaseClass(java.lang.String baseClass)

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String className)

getDestDir

public java.io.File getDestDir()

setDestDir

public void setDestDir(java.io.File destDir)

getDestFile

public java.io.File getDestFile()

setDestFile

public void setDestFile(java.io.File destFile)

getJclass

public org.codehaus.jam.JClass getJclass()

setJclass

public void setJclass(org.codehaus.jam.JClass jclass)

getManuallyMaintainedClasses

public java.util.Set<java.lang.String> getManuallyMaintainedClasses()

setManuallyMaintainedClasses

public void setManuallyMaintainedClasses(java.util.Set<java.lang.String> manuallyMaintainedClasses)

getSimpleName

public java.lang.String getSimpleName()

setSimpleName

public void setSimpleName(java.lang.String simpleName)

getSuperclass

public org.codehaus.jam.JClass getSuperclass()

setSuperclass

public void setSuperclass(org.codehaus.jam.JClass superclass)


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.