com.sun.tools.xjc.generator.bean

Class PackageOutlineImpl

public final class PackageOutlineImpl extends Object implements PackageOutline

PackageOutline enhanced with schema2java specific information.
Field Summary
Set<ClassOutlineImpl>classes
Constructor Summary
protected PackageOutlineImpl(BeanGenerator outline, Model model, JPackage _pkg)
Method Summary
voidcalcDefaultValues()
Compute the most common namespace URI in this package (to put into XmlSchema#namespace() and what value we should put into XmlSchema#elementFormDefault().
Set<ClassOutlineImpl>getClasses()
XmlNsFormgetElementFormDefault()
The element form default for this package.
StringgetMostUsedNamespaceURI()
The namespace URI most commonly used in classes in this package.
JDefinedClassobjectFactory()
ObjectFactoryGeneratorobjectFactoryGenerator()
JPackage_package()

Field Detail

classes

final Set<ClassOutlineImpl> classes

Constructor Detail

PackageOutlineImpl

protected PackageOutlineImpl(BeanGenerator outline, Model model, JPackage _pkg)

Method Detail

calcDefaultValues

public void calcDefaultValues()
Compute the most common namespace URI in this package (to put into XmlSchema#namespace() and what value we should put into XmlSchema#elementFormDefault(). This method is called after classes field is filled up.

getClasses

public Set<ClassOutlineImpl> getClasses()

getElementFormDefault

public XmlNsForm getElementFormDefault()
The element form default for this package.

The value is computed by examining what would yield the smallest generated code.

getMostUsedNamespaceURI

public String getMostUsedNamespaceURI()
The namespace URI most commonly used in classes in this package. This should be used as the namespace URI for XmlSchema#namespace().

Null if no default

See Also: .

objectFactory

public JDefinedClass objectFactory()

objectFactoryGenerator

public ObjectFactoryGenerator objectFactoryGenerator()

_package

public JPackage _package()