Top Description Fields Constructors Methods
com.sun.tools.xjc.generator.bean

public final Class DualObjectFactoryGenerator

extends ObjectFactoryGenerator
Class Inheritance
Imports
com.sun.codemodel.JDefinedClass, .JExpr, .JMod, .JPackage, com.sun.tools.xjc.model.CElementInfo, .Model

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.

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
public final ObjectFactoryGenerator
public final ObjectFactoryGenerator

Constructor Summary

AccessConstructor and Description
pack-priv
DualObjectFactoryGenerator(BeanGenerator outline, Model model, JPackage targetPackage)

Method Summary

Modifier and TypeMethod and Description
public JDefinedClass
getObjectFactory()

Implements abstract com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator.getObjectFactory.

Returns the private version (which is what gets used at runtime.)

pack-priv void
populate(CElementInfo ei)

Implements abstract com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator.populate.

Adds code for the given CElementInfo to ObjectFactory.

pack-priv void
populate(ClassOutlineImpl cc)

Implements abstract com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator.populate.

Adds code that is relevant to a given ClassOutlineImpl to ObjectFactory.

Field Detail

privateOFGback to summary
public final ObjectFactoryGenerator privateOFG
publicOFGback to summary
public final ObjectFactoryGenerator publicOFG

Constructor Detail

DualObjectFactoryGeneratorback to summary
pack-priv DualObjectFactoryGenerator(BeanGenerator outline, Model model, JPackage targetPackage)

Method Detail

getObjectFactoryback to summary
public JDefinedClass getObjectFactory()

Implements abstract com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator.getObjectFactory.

Returns the private version (which is what gets used at runtime.)

Annotations
@Override
populateback to summary
pack-priv void populate(CElementInfo ei)

Implements abstract com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator.populate.

Doc from com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator.populate.

Adds code for the given CElementInfo to ObjectFactory.

Annotations
@Override
populateback to summary
pack-priv void populate(ClassOutlineImpl cc)

Implements abstract com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator.populate.

Doc from com.sun.tools.xjc.generator.bean.ObjectFactoryGenerator.populate.

Adds code that is relevant to a given ClassOutlineImpl to ObjectFactory.

Annotations
@Override