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  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
MultiSourceGenerator()
           
 
Method Summary
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 class
 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)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manuallyMaintainedClasses

protected Set<String> manuallyMaintainedClasses

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
Constructor Detail

MultiSourceGenerator

public MultiSourceGenerator()
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)

getManuallyMaintainedClasses

public Set<String> getManuallyMaintainedClasses()

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)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.