org.apache.tuscany.sdo.codegen
Class JavaInterfaceGenerator

java.lang.Object
  extended by org.apache.tuscany.sdo.codegen.JavaInterfaceGenerator
All Implemented Interfaces:
SDOTypeVisitor

public class JavaInterfaceGenerator
extends Object
implements SDOTypeVisitor

Implementation of a generator that will output the source code for a Java interface that corresponds to the SDO Type's static properties.


Constructor Summary
JavaInterfaceGenerator(PrintWriter writer)
          Constructor providing the Writer to output the source to.
 
Method Summary
 void visitEnd()
          Visit after all properties.
 void visitProperty(Property property)
          Visit a property definition.
 void visitType(Type type)
          Visit a type definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaInterfaceGenerator

public JavaInterfaceGenerator(PrintWriter writer)
Constructor providing the Writer to output the source to.

Parameters:
writer - where the generated source code will be written to
Method Detail

visitType

public void visitType(Type type)
Description copied from interface: SDOTypeVisitor
Visit a type definition.

Specified by:
visitType in interface SDOTypeVisitor
Parameters:
type - the type to visit

visitProperty

public void visitProperty(Property property)
Description copied from interface: SDOTypeVisitor
Visit a property definition.

Specified by:
visitProperty in interface SDOTypeVisitor
Parameters:
property - the property to visit

visitEnd

public void visitEnd()
Description copied from interface: SDOTypeVisitor
Visit after all properties.

Specified by:
visitEnd in interface SDOTypeVisitor


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.