Class CpoInterfaceSourceGenerator

java.lang.Object
org.synchronoss.cpo.core.exporter.AbstractMetaVisitor
org.synchronoss.cpo.core.exporter.CpoInterfaceSourceGenerator
All Implemented Interfaces:
MetaVisitor

public class CpoInterfaceSourceGenerator extends AbstractMetaVisitor
The CpoInterfaceSourceGenerator generates java source code to define the cpo interfaces.
Since:
4/17/12
Author:
Michael Bellomo
  • Constructor Details

    • CpoInterfaceSourceGenerator

      public CpoInterfaceSourceGenerator(CpoMetaDescriptor metaDescriptor)
      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

      public String getInterfaceName()
      Gets the name of the last interface generated.
      Returns:
      the name of the last interface generated by visit(CpoClass), or null if none has been visited yet
    • getSourceCode

      public String 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

      public void visit(CpoClass cpoClass)
      Description copied from interface: MetaVisitor
      Visits a class node in the meta model.
      Parameters:
      cpoClass - the class to be visited
    • visit

      public void visit(CpoAttribute cpoAttribute)
      Description copied from interface: MetaVisitor
      Visits an attribute node in the meta model.
      Parameters:
      cpoAttribute - the attribute to be visited