Package com.sun.tools.xjc.generator.bean
Class PackageOutlineImpl
java.lang.Object
com.sun.tools.xjc.generator.bean.PackageOutlineImpl
- All Implemented Interfaces:
PackageOutline
PackageOutline
enhanced with schema2java specific
information.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com), Martin Grebac (martin.grebac@oracle.com)
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PackageOutlineImpl
(BeanGenerator outline, Model model, JPackage _pkg) -
Method Summary
Modifier and TypeMethodDescription_package()
The exposed package this context is representing.void
Compute the most common namespace URI in this package (to put intoXmlSchema.namespace()
and what value we should put intoXmlSchema.elementFormDefault()
.The attribute form default for this package.GetsClassOutline
s whoseClassOutline._package()
points to this object.The element form default for this package.The namespace URI most commonly used in classes in this package.Generated ObjectFactory from package.Generates an ObjectFactory class for this package.
-
Constructor Details
-
PackageOutlineImpl
-
-
Method Details
-
getMostUsedNamespaceURI
The namespace URI most commonly used in classes in this package. This should be used as the namespace URI forXmlSchema.namespace()
.Null if no default
- Specified by:
getMostUsedNamespaceURI
in interfacePackageOutline
- See Also:
-
getAttributeFormDefault
The attribute form default for this package.The value is computed by examining what would yield the smallest generated code.
- Specified by:
getAttributeFormDefault
in interfacePackageOutline
-
getElementFormDefault
The element form default for this package.The value is computed by examining what would yield the smallest generated code.
- Specified by:
getElementFormDefault
in interfacePackageOutline
-
_package
Description copied from interface:PackageOutline
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.
- Specified by:
_package
in interfacePackageOutline
-
objectFactoryGenerator
Description copied from interface:PackageOutline
Generates an ObjectFactory class for this package.- Specified by:
objectFactoryGenerator
in interfacePackageOutline
-
getClasses
Description copied from interface:PackageOutline
GetsClassOutline
s whoseClassOutline._package()
points to this object.- Specified by:
getClasses
in interfacePackageOutline
- Returns:
- can be empty but never null.
-
objectFactory
Description copied from interface:PackageOutline
Generated ObjectFactory from package. This method allows a caller to obtain a reference to such ObjectFactory from its package. Must not be null.- Specified by:
objectFactory
in interfacePackageOutline
-
calcDefaultValues
public void calcDefaultValues()Compute the most common namespace URI in this package (to put intoXmlSchema.namespace()
and what value we should put intoXmlSchema.elementFormDefault()
. This method is called afterclasses
field is filled up.
-