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
ConstructorsModifierConstructorDescriptionprotectedPackageOutlineImpl(BeanGenerator outline, Model model, JPackage _pkg) -
Method Summary
Modifier and TypeMethodDescription_package()The exposed package this context is representing.voidCompute 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.GetsClassOutlines 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:
getMostUsedNamespaceURIin 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:
getAttributeFormDefaultin interfacePackageOutline
-
getElementFormDefault
The element form default for this package.The value is computed by examining what would yield the smallest generated code.
- Specified by:
getElementFormDefaultin interfacePackageOutline
-
_package
Description copied from interface:PackageOutlineThe 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:
_packagein interfacePackageOutline
-
objectFactoryGenerator
Description copied from interface:PackageOutlineGenerates an ObjectFactory class for this package.- Specified by:
objectFactoryGeneratorin interfacePackageOutline
-
getClasses
Description copied from interface:PackageOutlineGetsClassOutlines whoseClassOutline._package()points to this object.- Specified by:
getClassesin interfacePackageOutline- Returns:
- can be empty but never null.
-
objectFactory
Description copied from interface:PackageOutlineGenerated ObjectFactory from package. This method allows a caller to obtain a reference to such ObjectFactory from its package. Must not be null.- Specified by:
objectFactoryin 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 afterclassesfield is filled up.
-