Class CSharpMarshallingGenerator
- java.lang.Object
-
- org.apache.activemq.openwire.tool.OpenWireGenerator
-
- org.apache.activemq.openwire.tool.MultiSourceGenerator
-
- org.apache.activemq.openwire.tool.JavaMarshallingGenerator
-
- org.apache.activemq.openwire.tool.CSharpMarshallingGenerator
-
public class CSharpMarshallingGenerator extends JavaMarshallingGenerator
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description CSharpMarshallingGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Field Detail
-
targetDir
protected String targetDir
-
-
Method Detail
-
run
public Object run()
- Overrides:
run
in classJavaMarshallingGenerator
-
generateTightUnmarshalBodyForProperty
protected void generateTightUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
- Overrides:
generateTightUnmarshalBodyForProperty
in classJavaMarshallingGenerator
-
generateTightUnmarshalBodyForArrayProperty
protected void generateTightUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
- Overrides:
generateTightUnmarshalBodyForArrayProperty
in classJavaMarshallingGenerator
-
generateTightMarshal1Body
protected int generateTightMarshal1Body(PrintWriter out)
- Overrides:
generateTightMarshal1Body
in classJavaMarshallingGenerator
-
generateTightMarshal2Body
protected void generateTightMarshal2Body(PrintWriter out)
- Overrides:
generateTightMarshal2Body
in classJavaMarshallingGenerator
-
generateLooseUnmarshalBodyForProperty
protected void generateLooseUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
- Overrides:
generateLooseUnmarshalBodyForProperty
in classJavaMarshallingGenerator
-
generateLooseUnmarshalBodyForArrayProperty
protected void generateLooseUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
- Overrides:
generateLooseUnmarshalBodyForArrayProperty
in classJavaMarshallingGenerator
-
generateLooseMarshalBody
protected void generateLooseMarshalBody(PrintWriter out)
- Overrides:
generateLooseMarshalBody
in classJavaMarshallingGenerator
-
getTargetDir
public String getTargetDir()
- Overrides:
getTargetDir
in classJavaMarshallingGenerator
-
setTargetDir
public void setTargetDir(String targetDir)
- Overrides:
setTargetDir
in classJavaMarshallingGenerator
-
generateFile
protected void generateFile(PrintWriter out) throws Exception
- Overrides:
generateFile
in classJavaMarshallingGenerator
- Throws:
Exception
-
generateFactory
public void generateFactory(PrintWriter out)
- Overrides:
generateFactory
in classJavaMarshallingGenerator
-
-