com.caucho.amber.gen
Class EmbeddableComponent

java.lang.Object
  extended by com.caucho.java.gen.ClassComponent
      extended by com.caucho.amber.gen.EmbeddableComponent

public class EmbeddableComponent
extends ClassComponent

Generates the Java code for the wrapped object.


Constructor Summary
EmbeddableComponent()
           
 
Method Summary
 void generate(JavaWriter out)
          Starts generation of the Java code
 java.lang.String getBaseClassName()
          Gets the base class name
 java.lang.String getBeanClassName()
          Get bean class name.
 java.lang.String getClassName()
          Sets the ext class name
 void setBaseClassName(java.lang.String baseClassName)
          Sets the base class name
 void setEmbeddableType(EmbeddableType embeddableType)
          Sets the bean info for the generator
 void setExtClassName(java.lang.String extClassName)
          Sets the ext class name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddableComponent

public EmbeddableComponent()
Method Detail

setEmbeddableType

public void setEmbeddableType(EmbeddableType embeddableType)
Sets the bean info for the generator


setBaseClassName

public void setBaseClassName(java.lang.String baseClassName)
Sets the base class name


getBaseClassName

public java.lang.String getBaseClassName()
Gets the base class name


setExtClassName

public void setExtClassName(java.lang.String extClassName)
Sets the ext class name


getClassName

public java.lang.String getClassName()
Sets the ext class name


getBeanClassName

public java.lang.String getBeanClassName()
Get bean class name.


generate

public void generate(JavaWriter out)
              throws java.io.IOException
Starts generation of the Java code

Overrides:
generate in class ClassComponent
Parameters:
out - the writer to the output stream.
Throws:
java.io.IOException