JAXB2 @XmlElementWrapper Plugin

When generating XML schema from Java source code using the schemagen tool a common approach is to use the @XmlElementWrapper and @XmlElement annotations to handle schema generation for collections. However, when generating Java source from a schema using the xjc tool the resulting code is not created with these annotations. Instead, the generated Java source contains "injected" inner classes to accommodate the collection of elements contained within an element.

License

License

Apache License
GroupId

GroupId

org.andromda.thirdparty.jaxb2_commons
ArtifactId

ArtifactId

xml-element-wrapper
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

JAXB2 @XmlElementWrapper Plugin
When generating XML schema from Java source code using the schemagen tool a common approach is to use the @XmlElementWrapper and @XmlElement annotations to handle schema generation for collections. However, when generating Java source from a schema using the xjc tool the resulting code is not created with these annotations. Instead, the generated Java source contains "injected" inner classes to accommodate the collection of elements contained within an element.
Project Organization

Project Organization

Sun Microsystems

Download xml-element-wrapper

How to add to project

<!-- https://jarcasting.com/artifacts/org.andromda.thirdparty.jaxb2_commons/xml-element-wrapper/ -->
<dependency>
    <groupId>org.andromda.thirdparty.jaxb2_commons</groupId>
    <artifactId>xml-element-wrapper</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.andromda.thirdparty.jaxb2_commons/xml-element-wrapper/
implementation 'org.andromda.thirdparty.jaxb2_commons:xml-element-wrapper:1.0'
// https://jarcasting.com/artifacts/org.andromda.thirdparty.jaxb2_commons/xml-element-wrapper/
implementation ("org.andromda.thirdparty.jaxb2_commons:xml-element-wrapper:1.0")
'org.andromda.thirdparty.jaxb2_commons:xml-element-wrapper:jar:1.0'
<dependency org="org.andromda.thirdparty.jaxb2_commons" name="xml-element-wrapper" rev="1.0">
  <artifact name="xml-element-wrapper" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.andromda.thirdparty.jaxb2_commons', module='xml-element-wrapper', version='1.0')
)
libraryDependencies += "org.andromda.thirdparty.jaxb2_commons" % "xml-element-wrapper" % "1.0"
[org.andromda.thirdparty.jaxb2_commons/xml-element-wrapper "1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.sun.xml.bind : jaxb-impl jar 2.1.10
com.sun.xml.bind : jaxb-xjc jar 2.1.10

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

Versions

Version
1.0