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
ClassOutline s 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 PackageOutline
calcDefaultValues().
public XmlNsForm getAttributeFormDefault()
The value is computed by examining what would yield the smallest generated code.
getAttributeFormDefault
in interface PackageOutline
public XmlNsForm getElementFormDefault()
The value is computed by examining what would yield the smallest generated code.
getElementFormDefault
in interface PackageOutline
public 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 Set<ClassOutlineImpl> getClasses()
PackageOutline
ClassOutline
s whose ClassOutline._package()
points to this object.getClasses
in interface PackageOutline
public 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.Copyright © 2017 JBoss by Red Hat. All rights reserved.