Class JavaMarshallingGenerator
java.lang.Object
org.apache.activemq.openwire.tool.OpenWireGenerator
org.apache.activemq.openwire.tool.MultiSourceGenerator
org.apache.activemq.openwire.tool.JavaMarshallingGenerator
- Direct Known Subclasses:
CppMarshallingHeadersGenerator,CSharpMarshallingGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.codehaus.jam.JClass>protected Fileprotected Stringprotected Stringprotected StringFields inherited from class org.apache.activemq.openwire.tool.MultiSourceGenerator
baseClass, buffer, className, destDir, destFile, jclass, manuallyMaintainedClasses, simpleName, superclassFields inherited from class org.apache.activemq.openwire.tool.OpenWireGenerator
filePostFix, jam, openwireVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidgenerateFile(PrintWriter out) protected voidprotected voidprotected voidgenerateLooseUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size) protected voidgenerateLooseUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size) protected intprotected voidprotected voidprotected voidgenerateTightUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size) protected voidgenerateTightUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size) protected StringgetBaseClassName(org.codehaus.jam.JClass jclass) protected StringgetClassName(org.codehaus.jam.JClass jclass) List<org.codehaus.jam.JClass>protected StringgetMandatoryFlag(org.codehaus.jam.JAnnotation annotation) Returns whether or not the given annotation has a mandatory flag on it or notprotected voidprotected voidprocessClass(org.codehaus.jam.JClass jclass) protected voidrun()voidsetConcreteClasses(List<org.codehaus.jam.JClass> concreteClasses) voidsetFactoryFile(File factoryFile) voidsetFactoryFileName(String factoryFileName) voidvoidsetTargetDir(String sourceDir) 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, setSuperclassMethods 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 Details
-
concreteClasses
-
factoryFile
-
factoryFileName
-
indent
-
targetDir
-
-
Constructor Details
-
JavaMarshallingGenerator
public JavaMarshallingGenerator()
-
-
Method Details
-
run
- Overrides:
runin classMultiSourceGenerator
-
generateFile
- Specified by:
generateFilein classMultiSourceGenerator- Throws:
Exception
-
processFactory
protected void processFactory() -
generateFactory
-
processClass
protected void processClass(org.codehaus.jam.JClass jclass) - Overrides:
processClassin classMultiSourceGenerator
-
getClassName
- Overrides:
getClassNamein classMultiSourceGenerator
-
getBaseClassName
- Overrides:
getBaseClassNamein classMultiSourceGenerator
-
initialiseManuallyMaintainedClasses
protected void initialiseManuallyMaintainedClasses()- Overrides:
initialiseManuallyMaintainedClassesin classMultiSourceGenerator
-
generateTightUnmarshalBody
-
generateTightUnmarshalBodyForProperty
protected void generateTightUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size) -
generateTightUnmarshalBodyForArrayProperty
protected void generateTightUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size) -
generateTightMarshal1Body
-
generateTightMarshal2Body
-
generateLooseMarshalBody
-
generateLooseUnmarshalBody
-
generateLooseUnmarshalBodyForProperty
protected void generateLooseUnmarshalBodyForProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size) -
generateLooseUnmarshalBodyForArrayProperty
protected void generateLooseUnmarshalBodyForArrayProperty(PrintWriter out, org.codehaus.jam.JProperty property, org.codehaus.jam.JAnnotationValue size) -
getMandatoryFlag
Returns whether or not the given annotation has a mandatory flag on it or not -
getConcreteClasses
-
setConcreteClasses
-
getFactoryFile
-
setFactoryFile
-
getFactoryFileName
-
setFactoryFileName
-
getIndent
-
setIndent
-
getTargetDir
-
setTargetDir
-