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
PackageOutline
enhanced with schema2java specific information.- Author:
- Kohsuke Kawaguchi ([email protected]), Martin Grebac ([email protected])
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PackageOutlineImpl(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.void
calcDefaultValues()
Compute the most common namespace URI in this package (to put intoXmlSchema.namespace()
and what value we should put intoXmlSchema.elementFormDefault()
.jakarta.xml.bind.annotation.XmlNsForm
getAttributeFormDefault()
The attribute form default for this package.Set<ClassOutlineImpl>
getClasses()
GetsClassOutline
s whoseClassOutline._package()
points to this object.jakarta.xml.bind.annotation.XmlNsForm
getElementFormDefault()
The element form default for this package.String
getMostUsedNamespaceURI()
The namespace URI most commonly used in classes in this package.JDefinedClass
objectFactory()
Generated ObjectFactory from package.ObjectFactoryGenerator
objectFactoryGenerator()
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:
getMostUsedNamespaceURI
in interfacePackageOutline
- See Also:
calcDefaultValues()
-
getAttributeFormDefault
public jakarta.xml.bind.annotation.XmlNsForm 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
public jakarta.xml.bind.annotation.XmlNsForm 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
public JPackage _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
public ObjectFactoryGenerator objectFactoryGenerator()
Description copied from interface:PackageOutline
Generates an ObjectFactory class for this package.- Specified by:
objectFactoryGenerator
in interfacePackageOutline
-
getClasses
public Set<ClassOutlineImpl> 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
public JDefinedClass 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.
-
-