public final class PackageOutlineImpl extends Object implements PackageOutline
PackageOutline enhanced with schema2java specific
information.| Modifier | Constructor and Description |
|---|---|
protected |
PackageOutlineImpl(BeanGenerator outline,
Model model,
JPackage _pkg) |
| Modifier and Type | Method and Description |
|---|---|
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(). |
XmlNsForm |
getAttributeFormDefault()
The attribute form default for this package.
|
Set<ClassOutlineImpl> |
getClasses()
Gets
ClassOutlines whose ClassOutline._package()
points to this object. |
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.
|
protected PackageOutlineImpl(BeanGenerator outline, Model model, JPackage _pkg)
public String getMostUsedNamespaceURI()
XmlSchema.namespace().
Null if no default
getMostUsedNamespaceURI in interface PackageOutlinecalcDefaultValues()public XmlNsForm getAttributeFormDefault()
The value is computed by examining what would yield the smallest generated code.
getAttributeFormDefault in interface PackageOutlinepublic XmlNsForm getElementFormDefault()
The value is computed by examining what would yield the smallest generated code.
getElementFormDefault in interface PackageOutlinepublic JPackage _package()
PackageOutlineAn 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 PackageOutlinepublic ObjectFactoryGenerator objectFactoryGenerator()
PackageOutlineobjectFactoryGenerator in interface PackageOutlinepublic Set<ClassOutlineImpl> getClasses()
PackageOutlineClassOutlines whose ClassOutline._package()
points to this object.getClasses in interface PackageOutlinepublic JDefinedClass objectFactory()
PackageOutlineobjectFactory in interface PackageOutlinepublic void calcDefaultValues()
XmlSchema.namespace() and what value
we should put into XmlSchema.elementFormDefault().
This method is called after classes field is filled up.Copyright © 2018 JBoss by Red Hat. All rights reserved.