org.apache.activemq.openwire.tool
Class CSharpMarshallingGenerator

java.lang.Object
  extended by org.apache.activemq.openwire.tool.OpenWireGenerator
      extended by org.apache.activemq.openwire.tool.MultiSourceGenerator
          extended by org.apache.activemq.openwire.tool.JavaMarshallingGenerator
              extended by org.apache.activemq.openwire.tool.CSharpMarshallingGenerator

public class CSharpMarshallingGenerator
extends JavaMarshallingGenerator


Field Summary
protected  String targetDir
           
 
Fields inherited from class org.apache.activemq.openwire.tool.JavaMarshallingGenerator
concreteClasses, factoryFile, factoryFileName, indent
 
Fields inherited from class org.apache.activemq.openwire.tool.MultiSourceGenerator
baseClass, buffer, className, destDir, destFile, jclass, manuallyMaintainedClasses, simpleName, superclass
 
Fields inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
filePostFix, jam, openwireVersion
 
Constructor Summary
CSharpMarshallingGenerator()
           
 
Method Summary
 void generateFactory(PrintWriter out)
           
protected  void generateFile(PrintWriter out)
           
protected  void generateLooseMarshalBody(PrintWriter out)
           
protected  void generateLooseUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
           
protected  void generateLooseUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
           
protected  int generateTightMarshal1Body(PrintWriter out)
           
protected  void generateTightMarshal2Body(PrintWriter out)
           
protected  void generateTightUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
           
protected  void generateTightUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
           
 String getTargetDir()
           
 Object run()
           
 void setTargetDir(String targetDir)
           
 
Methods inherited from class org.apache.activemq.openwire.tool.JavaMarshallingGenerator
generateLooseUnmarshalBody, generateTightUnmarshalBody, getBaseClassName, getClassName, getConcreteClasses, getFactoryFile, getFactoryFileName, getIndent, getMandatoryFlag, initialiseManuallyMaintainedClasses, processClass, processFactory, setConcreteClasses, setFactoryFile, setFactoryFileName, setIndent
 
Methods inherited from class org.apache.activemq.openwire.tool.MultiSourceGenerator
getAbstractClassText, getBaseClass, getClassName, getDestDir, getDestFile, getJclass, getManuallyMaintainedClasses, getProperties, getSimpleName, getSuperclass, isAbstractClass, isMarshallerAware, isValidClass, setBaseClass, setClassName, setDestDir, setDestFile, setJclass, setManuallyMaintainedClasses, setSimpleName, setSuperclass
 
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

targetDir

protected String targetDir
Constructor Detail

CSharpMarshallingGenerator

public CSharpMarshallingGenerator()
Method Detail

run

public Object run()
Overrides:
run in class JavaMarshallingGenerator

generateTightUnmarshalBodyForProperty

protected void generateTightUnmarshalBodyForProperty(PrintWriter out,
                                                     org.codehaus.jam.JProperty property,
                                                     org.codehaus.jam.JAnnotationValue size)
Overrides:
generateTightUnmarshalBodyForProperty in class JavaMarshallingGenerator

generateTightUnmarshalBodyForArrayProperty

protected void generateTightUnmarshalBodyForArrayProperty(PrintWriter out,
                                                          org.codehaus.jam.JProperty property,
                                                          org.codehaus.jam.JAnnotationValue size)
Overrides:
generateTightUnmarshalBodyForArrayProperty in class JavaMarshallingGenerator

generateTightMarshal1Body

protected int generateTightMarshal1Body(PrintWriter out)
Overrides:
generateTightMarshal1Body in class JavaMarshallingGenerator

generateTightMarshal2Body

protected void generateTightMarshal2Body(PrintWriter out)
Overrides:
generateTightMarshal2Body in class JavaMarshallingGenerator

generateLooseUnmarshalBodyForProperty

protected void generateLooseUnmarshalBodyForProperty(PrintWriter out,
                                                     org.codehaus.jam.JProperty property,
                                                     org.codehaus.jam.JAnnotationValue size)
Overrides:
generateLooseUnmarshalBodyForProperty in class JavaMarshallingGenerator

generateLooseUnmarshalBodyForArrayProperty

protected void generateLooseUnmarshalBodyForArrayProperty(PrintWriter out,
                                                          org.codehaus.jam.JProperty property,
                                                          org.codehaus.jam.JAnnotationValue size)
Overrides:
generateLooseUnmarshalBodyForArrayProperty in class JavaMarshallingGenerator

generateLooseMarshalBody

protected void generateLooseMarshalBody(PrintWriter out)
Overrides:
generateLooseMarshalBody in class JavaMarshallingGenerator

getTargetDir

public String getTargetDir()
Overrides:
getTargetDir in class JavaMarshallingGenerator

setTargetDir

public void setTargetDir(String targetDir)
Overrides:
setTargetDir in class JavaMarshallingGenerator

generateFile

protected void generateFile(PrintWriter out)
                     throws Exception
Overrides:
generateFile in class JavaMarshallingGenerator
Throws:
Exception

generateFactory

public void generateFactory(PrintWriter out)
Overrides:
generateFactory in class JavaMarshallingGenerator


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