com.sun.tools.xjc.outline

Interface PackageOutline

public interface PackageOutline

Outline object that provides per-package information. This interface is accessible from Outline.
Method Summary
Set<? extends ClassOutline>getClasses()
Gets ClassOutlines whose _package points to this object.
XmlNsFormgetElementFormDefault()
The element form default for this package.
StringgetMostUsedNamespaceURI()
The namespace URI most commonly used in classes in this package.
JDefinedClassobjectFactory()
Generated ObjectFactory from package.
ObjectFactoryGeneratorobjectFactoryGenerator()
Generates an ObjectFactory class for this package.
JPackage_package()
The exposed package this context is representing.

Method Detail

getClasses

public Set<? extends ClassOutline> getClasses()
Gets ClassOutlines whose _package points to this object.

Returns: can be empty but never null.

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

objectFactory

public JDefinedClass objectFactory()
Generated ObjectFactory from package. This method allows a caller to obtain a reference to such ObjectFactory from its package. Must not be null.

objectFactoryGenerator

public ObjectFactoryGenerator objectFactoryGenerator()
Generates an ObjectFactory class for this package.

_package

public JPackage _package()
The exposed package this context is representing.

An exposed package is a package visible to users, a package supposed to be used by client applications. Sometime we have another parallel package that's not visible to users.