|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.api.impl.s2j.JAXBModelImpl
final class JAXBModelImpl
JAXBModel
implementation.
Field Summary | |
---|---|
(package private) Outline |
outline
|
Constructor Summary | |
---|---|
JAXBModelImpl(Outline outline)
|
Method Summary | |
---|---|
com.sun.codemodel.JCodeModel |
generateCode(Plugin[] extensions,
ErrorListener errorListener)
Generates artifacts. |
Mapping |
get(QName elementName)
Gets a Mapping object for the given global element. |
List<com.sun.codemodel.JClass> |
getAllObjectFactories()
Gets all the ObjectFactory classes generated by the compilation. |
List<String> |
getClassList()
Returns a list of fully-qualified class names, which should be used at the runtime to create a new JAXBContext . |
TypeAndAnnotation |
getJavaType(QName xmlTypeName)
Returns the fully-qualified name of the Java type that is bound to the specified XML type. |
Collection<? extends Mapping> |
getMappings()
Gets a read-only view of all the Mapping s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final Outline outline
Constructor Detail |
---|
JAXBModelImpl(Outline outline)
Method Detail |
---|
public com.sun.codemodel.JCodeModel generateCode(Plugin[] extensions, ErrorListener errorListener)
S2JJAXBModel
TODO: if JAXB supports various modes of code generations (such as public interface only or implementation only or etc), we should define bit flags to control those.
This operation is only supported for a model built from a schema.
generateCode
in interface S2JJAXBModel
extensions
- The JAXB RI extensions to run. This can be null or empty
array if the caller wishes not to run any extension.
Plugin.parseArgument(Options, String[], int)
.
JCodeModel.build(CodeWriter)
to write them
to a disk.public List<com.sun.codemodel.JClass> getAllObjectFactories()
S2JJAXBModel
This should be used for generating XmlSeeAlso
on the SEI.
getAllObjectFactories
in interface S2JJAXBModel
public final Mapping get(QName elementName)
S2JJAXBModel
Mapping
object for the given global element.
get
in interface S2JJAXBModel
public final Collection<? extends Mapping> getMappings()
S2JJAXBModel
Mapping
s.
getMappings
in interface S2JJAXBModel
public TypeAndAnnotation getJavaType(QName xmlTypeName)
S2JJAXBModel
getJavaType
in interface S2JJAXBModel
xmlTypeName
- must not be null.
public final List<String> getClassList()
JAXBModel
JAXBContext
.
Until the JAXB team fixes the bootstrapping issue, we have
two bootstrapping methods. This one is to use a list of class names
to call JAXBContext.newInstance(Class[])
method. If
this method returns non-null, the caller is expected to use
that method. This is meant to be a temporary workaround.
getClassList
in interface JAXBModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |