|
||||||||||
| 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(javax.xml.namespace.QName elementName)
Gets a Mapping object for the given global element. |
java.util.List<com.sun.codemodel.JClass> |
getAllObjectFactories()
Gets all the ObjectFactory classes generated by the compilation. |
java.util.List<java.lang.String> |
getClassList()
Returns a list of fully-qualified class names, which should be used at the runtime to create a new JAXBContext. |
TypeAndAnnotation |
getJavaType(javax.xml.namespace.QName xmlTypeName)
Returns the fully-qualified name of the Java type that is bound to the specified XML type. |
java.util.Collection<? extends Mapping> |
getMappings()
Gets a read-only view of all the Mappings. |
| 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)
S2JJAXBModelTODO: 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 S2JJAXBModelextensions - 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 java.util.List<com.sun.codemodel.JClass> getAllObjectFactories()
S2JJAXBModel
This should be used for generating XmlSeeAlso on the SEI.
getAllObjectFactories in interface S2JJAXBModelpublic final Mapping get(javax.xml.namespace.QName elementName)
S2JJAXBModelMapping object for the given global element.
get in interface S2JJAXBModelpublic final java.util.Collection<? extends Mapping> getMappings()
S2JJAXBModelMappings.
getMappings in interface S2JJAXBModelpublic TypeAndAnnotation getJavaType(javax.xml.namespace.QName xmlTypeName)
S2JJAXBModel
getJavaType in interface S2JJAXBModelxmlTypeName - must not be null.
public final java.util.List<java.lang.String> getClassList()
JAXBModelJAXBContext.
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 | |||||||||