Package com.sun.tools.xjc.generator.bean
Class PackageOutlineImpl
- java.lang.Object
-
- com.sun.tools.xjc.generator.bean.PackageOutlineImpl
-
- All Implemented Interfaces:
PackageOutline
public final class PackageOutlineImpl extends Object implements PackageOutline
PackageOutlineenhanced with schema2java specific information.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com), Martin Grebac (martin.grebac@oracle.com)
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPackageOutlineImpl(BeanGenerator outline, Model model, JPackage _pkg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JPackage_package()The exposed package this context is representing.voidcalcDefaultValues()Compute the most common namespace URI in this package (to put intoXmlSchema.namespace()and what value we should put intoXmlSchema.elementFormDefault().XmlNsFormgetAttributeFormDefault()The attribute form default for this package.Set<ClassOutlineImpl>getClasses()GetsClassOutlines whoseClassOutline._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.
-
-
-
Constructor Detail
-
PackageOutlineImpl
protected PackageOutlineImpl(BeanGenerator outline, Model model, JPackage _pkg)
-
-
Method Detail
-
getMostUsedNamespaceURI
public String 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:
calcDefaultValues()
-
getAttributeFormDefault
public XmlNsForm 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
public XmlNsForm 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
public JPackage _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
public ObjectFactoryGenerator objectFactoryGenerator()
Description copied from interface:PackageOutlineGenerates an ObjectFactory class for this package.- Specified by:
objectFactoryGeneratorin interfacePackageOutline
-
getClasses
public Set<ClassOutlineImpl> getClasses()
Description copied from interface:PackageOutlineGetsClassOutlines whoseClassOutline._package()points to this object.- Specified by:
getClassesin interfacePackageOutline- Returns:
- can be empty but never null.
-
objectFactory
public JDefinedClass 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.
-
-