Skip to content

Commit

Permalink
Added test resources (issue #40).
Browse files Browse the repository at this point in the history
  • Loading branch information
dmak committed Mar 6, 2015
1 parent ea699ee commit e04ef86
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ Note: `maven-jaxb2-plugin` prior to v0.8.0 was compiled against JAXB XJC API whi

#### jaxb2-maven-plugin

Note: `jaxb2-maven-plugin` v1.5 was compiled against JAXB XJC API v2.1.13 which is not compatible with this plugin, thus additional dependency is needed to be added to **plugin classpath**.
Note: `jaxb2-maven-plugin` v1.5 was compiled against JAXB XJC API v2.1.13 which is not compatible with this plugin, thus additional dependency is needed to be added to **plugin classpath**. The same apples to v1.6 of the plugin.

<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down
40 changes: 40 additions & 0 deletions src/test/generated_resources/unqualified/ObjectFactory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

package unqualified;

import javax.xml.bind.annotation.XmlRegistry;


/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the unqualified package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {


/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: unqualified
*
*/
public ObjectFactory() {
}

/**
* Create an instance of {@link RootElement }
*
*/
public RootElement createRootElement() {
return new RootElement();
}

}
52 changes: 52 additions & 0 deletions src/test/generated_resources/unqualified/RootElement.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

package unqualified;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="stringList" type="{testNamespace}StringListType"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"stringList"
})
@XmlRootElement(name = "rootElement")
public class RootElement {

@XmlElementWrapper(required = true)
@XmlElement(name = "listItem")
protected List<String> stringList = new ArrayList<String>();

public List<String> getStringList() {
return stringList;
}

public void setStringList(List<String> stringList) {
this.stringList = stringList;
}

}
2 changes: 2 additions & 0 deletions src/test/generated_resources/unqualified/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace = "testNamespace")
package unqualified;

0 comments on commit e04ef86

Please sign in to comment.