JAXBModel implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Model | model
All the known classes. |
| pack-priv final Outline |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public JCodeModel | generateCode(Plugin[] extensions, ErrorListener errorListener)
Implements com. Generates artifacts. |
| public Mapping | get(QName elementName)
Implements com. Gets a |
| public List | getAllObjectFactories()
Implements com. Gets all the |
| public List | getClassList()
Implements com. Returns a list of fully-qualified class names, which should
be used at the runtime to create a new |
| public TypeAndAnnotation | getJavaType(QName xmlTypeName)
Implements com. Returns the fully-qualified name of the Java type that is bound to the specified XML type. |
| public Collection | getMappings()
Implements com. Gets a read-only view of all the |
| byXmlName | back to summary |
|---|---|
| private final Map<QName, Mapping> byXmlName | |
| model | back to summary |
|---|---|
| private final Model model All the known classes. | |
| outline | back to summary |
|---|---|
| pack-priv final Outline outline | |
| JAXBModelImpl | back to summary |
|---|---|
| pack-priv JAXBModelImpl(Outline outline) | |
| generateCode | back to summary |
|---|---|
| public JCodeModel generateCode(Plugin[] extensions, ErrorListener errorListener) Implements com. Doc from com. Generates artifacts. 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.
| |
| get | back to summary |
|---|---|
| public Mapping get(QName elementName) Implements com. Doc from com. Gets a
| |
| getAllObjectFactories | back to summary |
|---|---|
| public List Implements com. Doc from com. Gets all the
This should be used for generating
| |
| getClassList | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list of fully-qualified class names, which should
be used at the runtime to create a new
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
| |
| getJavaType | back to summary |
|---|---|
| public TypeAndAnnotation getJavaType(QName xmlTypeName) Implements com. Doc from com. Returns the fully-qualified name of the Java type that is bound to the specified XML type.
| |
| getMappings | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Gets a read-only view of all the
| |