Class CpoClassSourceGenerator
java.lang.Object
org.synchronoss.cpo.core.exporter.AbstractMetaVisitor
org.synchronoss.cpo.core.exporter.CpoClassSourceGenerator
- All Implemented Interfaces:
MetaVisitor
- Direct Known Subclasses:
CpoLegacyClassSourceGenerator
The CpoClassSourceGenerator generates java source code to define the cpo classes.
- Since:
- 4/17/12
- Author:
- Michael Bellomo
-
Constructor Summary
ConstructorsConstructorDescriptionCpoClassSourceGenerator(CpoMetaDescriptor metaDescriptor) Constructs a generator for the given meta descriptor. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the last class generated.Gets the full generated Java source for the class last visited.voidvisit(CpoAttribute cpoAttribute) Visits an attribute node in the meta model.voidVisits a class node in the meta model.Methods inherited from class org.synchronoss.cpo.core.exporter.AbstractMetaVisitor
visit, visit, visit
-
Constructor Details
-
CpoClassSourceGenerator
Constructs a generator for the given meta descriptor.- Parameters:
metaDescriptor- the meta descriptor whose classes will be visited and generated as Java bean source
-
-
Method Details
-
getClassName
Gets the name of the last class generated.- Returns:
- the name of the last class generated by
visit(CpoClass), ornullif none has been visited yet
-
getSourceCode
Gets the full generated Java source for the class last visited.- Returns:
- the full generated Java source for the class last visited by
visit(CpoClass)
-
visit
Description copied from interface:MetaVisitorVisits a class node in the meta model.- Parameters:
cpoClass- the class to be visited
-
visit
Description copied from interface:MetaVisitorVisits an attribute node in the meta model.- Parameters:
cpoAttribute- the attribute to be visited
-