public class JavaMarshallingGenerator extends MultiSourceGenerator
Modifier and Type | Field and Description |
---|---|
protected List<org.codehaus.jam.JClass> |
concreteClasses |
protected File |
factoryFile |
protected String |
factoryFileName |
protected String |
indent |
protected String |
targetDir |
baseClass, buffer, className, destDir, destFile, jclass, manuallyMaintainedClasses, simpleName, superclass
filePostFix, jam, openwireVersion
Constructor and Description |
---|
JavaMarshallingGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
generateFactory(PrintWriter out) |
protected void |
generateFile(PrintWriter out) |
protected void |
generateLooseMarshalBody(PrintWriter out) |
protected void |
generateLooseUnmarshalBody(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 |
generateTightUnmarshalBody(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) |
protected String |
getBaseClassName(org.codehaus.jam.JClass jclass) |
protected String |
getClassName(org.codehaus.jam.JClass jclass) |
List<org.codehaus.jam.JClass> |
getConcreteClasses() |
File |
getFactoryFile() |
String |
getFactoryFileName() |
String |
getIndent() |
protected String |
getMandatoryFlag(org.codehaus.jam.JAnnotation annotation)
Returns whether or not the given annotation has a mandatory flag on it or
not
|
String |
getTargetDir() |
protected void |
initialiseManuallyMaintainedClasses() |
protected void |
processClass(org.codehaus.jam.JClass jclass) |
protected void |
processFactory() |
Object |
run() |
void |
setConcreteClasses(List<org.codehaus.jam.JClass> concreteClasses) |
void |
setFactoryFile(File factoryFile) |
void |
setFactoryFileName(String factoryFileName) |
void |
setIndent(String indent) |
void |
setTargetDir(String sourceDir) |
getAbstractClassText, getBaseClass, getClassName, getDestDir, getDestFile, getJclass, getManuallyMaintainedClasses, getProperties, getSimpleName, getSuperclass, isAbstractClass, isMarshallerAware, isValidClass, setBaseClass, setClassName, setDestDir, setDestFile, setJclass, setManuallyMaintainedClasses, setSimpleName, setSuperclass
capitalize, decapitalize, getClasses, getJam, getOpenWireOpCode, getOpenwireVersion, isAbstract, isCachedProperty, isMarshallAware, isThrowable, isValidProperty, setJam, setOpenwireVersion, stringValue, stringValue, toCSharpType
protected List<org.codehaus.jam.JClass> concreteClasses
protected File factoryFile
protected String factoryFileName
public JavaMarshallingGenerator()
public Object run()
run
in class MultiSourceGenerator
protected void generateFile(PrintWriter out) throws Exception
generateFile
in class MultiSourceGenerator
Exception
protected void processFactory()
protected void generateFactory(PrintWriter out)
protected void processClass(org.codehaus.jam.JClass jclass)
processClass
in class MultiSourceGenerator
protected String getClassName(org.codehaus.jam.JClass jclass)
getClassName
in class MultiSourceGenerator
protected String getBaseClassName(org.codehaus.jam.JClass jclass)
getBaseClassName
in class MultiSourceGenerator
protected void initialiseManuallyMaintainedClasses()
initialiseManuallyMaintainedClasses
in class MultiSourceGenerator
protected void generateTightUnmarshalBody(PrintWriter out)
protected void generateTightUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
protected void generateTightUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
protected int generateTightMarshal1Body(PrintWriter out)
protected void generateTightMarshal2Body(PrintWriter out)
protected void generateLooseMarshalBody(PrintWriter out)
protected void generateLooseUnmarshalBody(PrintWriter out)
protected void generateLooseUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
protected void generateLooseUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size)
protected String getMandatoryFlag(org.codehaus.jam.JAnnotation annotation)
public List<org.codehaus.jam.JClass> getConcreteClasses()
public void setConcreteClasses(List<org.codehaus.jam.JClass> concreteClasses)
public File getFactoryFile()
public void setFactoryFile(File factoryFile)
public String getFactoryFileName()
public void setFactoryFileName(String factoryFileName)
public String getTargetDir()
public void setTargetDir(String sourceDir)
Copyright © 2005–2019 FuseSource, Corp.. All rights reserved.