Class CpoLegacyClassSourceGenerator
java.lang.Object
org.synchronoss.cpo.core.exporter.AbstractMetaVisitor
org.synchronoss.cpo.core.exporter.CpoClassSourceGenerator
org.synchronoss.cpo.core.exporter.CpoLegacyClassSourceGenerator
- All Implemented Interfaces:
MetaVisitor
The CpoClassSourceGenerator generates java source code to define the cpo classes.
This implemenation will generate only a class, without extending an interface. It is available to support existing systems that aren't able/willing to change to the interface model.
- Since:
- 4/17/12
- Author:
- Michael Bellomo
-
Constructor Summary
ConstructorsConstructorDescriptionCpoLegacyClassSourceGenerator(CpoMetaDescriptor metaDescriptor) Constructs a generator for the given meta descriptor. -
Method Summary
Modifier and TypeMethodDescriptionGets the full generated Java source for the class last visited.voidVisits a class node in the meta model.Methods inherited from class org.synchronoss.cpo.core.exporter.CpoClassSourceGenerator
getClassName, visitMethods inherited from class org.synchronoss.cpo.core.exporter.AbstractMetaVisitor
visit, visit, visit
-
Constructor Details
-
CpoLegacyClassSourceGenerator
Constructs a generator for the given meta descriptor.- Parameters:
metaDescriptor- the meta descriptor whose classes will be visited and generated as legacy (non-interface-implementing) Java class source
-
-
Method Details
-
getSourceCode
Description copied from class:CpoClassSourceGeneratorGets the full generated Java source for the class last visited.- Overrides:
getSourceCodein classCpoClassSourceGenerator- Returns:
- the full generated Java source for the class last visited by
CpoClassSourceGenerator.visit(CpoClass)
-
visit
Description copied from interface:MetaVisitorVisits a class node in the meta model.- Specified by:
visitin interfaceMetaVisitor- Overrides:
visitin classCpoClassSourceGenerator- Parameters:
cpoClass- the class to be visited
-