Class CpoInterfaceSourceGenerator
java.lang.Object
org.synchronoss.cpo.core.exporter.AbstractMetaVisitor
org.synchronoss.cpo.core.exporter.CpoInterfaceSourceGenerator
- All Implemented Interfaces:
MetaVisitor
The CpoInterfaceSourceGenerator generates java source code to define the cpo interfaces.
- Since:
- 4/17/12
- Author:
- Michael Bellomo
-
Constructor Summary
ConstructorsConstructorDescriptionCpoInterfaceSourceGenerator(CpoMetaDescriptor metaDescriptor) Constructs a generator for the given meta descriptor. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the last interface generated.Gets the full generated Java source for the interface 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
-
CpoInterfaceSourceGenerator
Constructs a generator for the given meta descriptor.- Parameters:
metaDescriptor- the meta descriptor whose classes will be visited and generated as Java interface source
-
-
Method Details
-
getInterfaceName
Gets the name of the last interface generated.- Returns:
- the name of the last interface generated by
visit(CpoClass), ornullif none has been visited yet
-
getSourceCode
Gets the full generated Java source for the interface last visited.- Returns:
- the full generated Java source for the interface 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
-