com.sun.tools.xjc.generator.bean
Class DualObjectFactoryGenerator

java.lang.Object
  extended by com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator
      extended by com.sun.tools.xjc.generator.bean.DualObjectFactoryGenerator

public final class DualObjectFactoryGenerator
extends ObjectFactoryGenerator

ObjectFactoryGenerator used when we generate interfaces and implementations in separate packages.

publicOFG and privateOFG gives you access to ObjectFactorys in both packages, if you need to.


Field Summary
 ObjectFactoryGenerator privateOFG
           
 ObjectFactoryGenerator publicOFG
           
 
Constructor Summary
DualObjectFactoryGenerator(BeanGenerator outline, Model model, com.sun.codemodel.JPackage targetPackage)
           
 
Method Summary
 com.sun.codemodel.JDefinedClass getObjectFactory()
          Returns the private version (which is what gets used at runtime.)
(package private)  void populate(CElementInfo ei)
          Adds code for the given CElementInfo to ObjectFactory.
(package private)  void populate(ClassOutlineImpl cc)
          Adds code that is relevant to a given ClassOutlineImpl to ObjectFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

publicOFG

public final ObjectFactoryGenerator publicOFG

privateOFG

public final ObjectFactoryGenerator privateOFG
Constructor Detail

DualObjectFactoryGenerator

DualObjectFactoryGenerator(BeanGenerator outline,
                           Model model,
                           com.sun.codemodel.JPackage targetPackage)
Method Detail

populate

void populate(CElementInfo ei)
Description copied from class: ObjectFactoryGenerator
Adds code for the given CElementInfo to ObjectFactory.

Specified by:
populate in class ObjectFactoryGenerator

populate

void populate(ClassOutlineImpl cc)
Description copied from class: ObjectFactoryGenerator
Adds code that is relevant to a given ClassOutlineImpl to ObjectFactory.

Specified by:
populate in class ObjectFactoryGenerator

getObjectFactory

public com.sun.codemodel.JDefinedClass getObjectFactory()
Returns the private version (which is what gets used at runtime.)

Specified by:
getObjectFactory in class ObjectFactoryGenerator