|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.generator.bean.PackageOutlineImpl
final class PackageOutlineImpl
PackageOutline
enhanced with schema2java specific
information.
Field Summary | |
---|---|
(package private) Set<ClassOutlineImpl> |
classes
|
Constructor Summary | |
---|---|
protected |
PackageOutlineImpl(BeanGenerator outline,
Model model,
com.sun.codemodel.JPackage _pkg)
|
Method Summary | |
---|---|
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() . |
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. |
com.sun.codemodel.JDefinedClass |
objectFactory()
Generated ObjectFactory from package. |
ObjectFactoryGenerator |
objectFactoryGenerator()
Generates an ObjectFactory class for this package. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final Set<ClassOutlineImpl> classes
Constructor Detail |
---|
protected PackageOutlineImpl(BeanGenerator outline, Model model, com.sun.codemodel.JPackage _pkg)
Method Detail |
---|
public String getMostUsedNamespaceURI()
XmlSchema.namespace()
.
Null if no default
getMostUsedNamespaceURI
in interface PackageOutline
calcDefaultValues().
public 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 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |