public final class PackageOutlineImpl extends java.lang.Object implements PackageOutline
PackageOutline
enhanced with schema2java specific
information.Modifier | Constructor and Description |
---|---|
protected |
PackageOutlineImpl(BeanGenerator outline,
Model model,
com.sun.codemodel.JPackage _pkg) |
Modifier and Type | Method and Description |
---|---|
com.sun.codemodel.JPackage |
_package()
The exposed package this context is representing.
|
void |
calcDefaultValues()
Compute the most common namespace URI in this package
(to put into
XmlSchema.namespace() and what value
we should put into XmlSchema.elementFormDefault() . |
javax.xml.bind.annotation.XmlNsForm |
getAttributeFormDefault()
The attribute form default for this package.
|
java.util.Set<ClassOutlineImpl> |
getClasses()
Gets
ClassOutline s whose ClassOutline._package()
points to this object. |
javax.xml.bind.annotation.XmlNsForm |
getElementFormDefault()
The element form default for this package.
|
java.lang.String |
getMostUsedNamespaceURI()
The namespace URI most commonly used in classes in this package.
|
com.sun.codemodel.JDefinedClass |
objectFactory()
Generated ObjectFactory from package.
|
ObjectFactoryGenerator |
objectFactoryGenerator()
Generates an ObjectFactory class for this package.
|
protected PackageOutlineImpl(BeanGenerator outline, Model model, com.sun.codemodel.JPackage _pkg)
public java.lang.String getMostUsedNamespaceURI()
XmlSchema.namespace()
.
Null if no default
getMostUsedNamespaceURI
in interface PackageOutline
calcDefaultValues().
public javax.xml.bind.annotation.XmlNsForm getAttributeFormDefault()
The value is computed by examining what would yield the smallest generated code.
getAttributeFormDefault
in interface PackageOutline
public javax.xml.bind.annotation.XmlNsForm getElementFormDefault()
The value is computed by examining what would yield the smallest generated code.
getElementFormDefault
in interface PackageOutline
public com.sun.codemodel.JPackage _package()
PackageOutline
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.
_package
in interface PackageOutline
public ObjectFactoryGenerator objectFactoryGenerator()
PackageOutline
objectFactoryGenerator
in interface PackageOutline
public java.util.Set<ClassOutlineImpl> getClasses()
PackageOutline
ClassOutline
s whose ClassOutline._package()
points to this object.getClasses
in interface PackageOutline
public com.sun.codemodel.JDefinedClass objectFactory()
PackageOutline
objectFactory
in interface PackageOutline
public void calcDefaultValues()
XmlSchema.namespace()
and what value
we should put into XmlSchema.elementFormDefault()
.
This method is called after classes
field is filled up.