File tree Expand file tree Collapse file tree 4 files changed +92
-0
lines changed Expand file tree Collapse file tree 4 files changed +92
-0
lines changed Original file line number Diff line number Diff line change 1+ .settings
2+ .classpath
3+ .project
4+ /target
Original file line number Diff line number Diff line change 1+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
2+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+ <parent >
6+ <groupId >org.jvnet.jaxb2_commons</groupId >
7+ <artifactId >jaxb2-basics-tests</artifactId >
8+ <version >0.9.1-SNAPSHOT</version >
9+ <relativePath >../pom.xml</relativePath >
10+ </parent >
11+ <artifactId >jaxb2-basics-test-simplify-01</artifactId >
12+ <packaging >jar</packaging >
13+ <name >JAXB2 Basics - Test [simplify-01]</name >
14+ <dependencies >
15+ <dependency >
16+ <groupId >org.jvnet.jaxb2.maven2</groupId >
17+ <artifactId >maven-jaxb2-plugin-testing</artifactId >
18+ <scope >test</scope >
19+ </dependency >
20+ <dependency >
21+ <groupId >org.jvnet.jaxb2_commons</groupId >
22+ <artifactId >jaxb2-basics</artifactId >
23+ </dependency >
24+ </dependencies >
25+ <build >
26+ <defaultGoal >test</defaultGoal >
27+ <plugins >
28+ <plugin >
29+ <groupId >org.jvnet.jaxb2.maven2</groupId >
30+ <artifactId >maven-jaxb2-plugin</artifactId >
31+ <configuration >
32+ <extension >true</extension >
33+ <args >
34+ <arg >-Xsimplify</arg >
35+ </args >
36+ <plugins >
37+ <plugin >
38+ <groupId >org.jvnet.jaxb2_commons</groupId >
39+ <artifactId >jaxb2-basics</artifactId >
40+ </plugin >
41+ </plugins >
42+ </configuration >
43+ </plugin >
44+ </plugins >
45+ </build >
46+ </project >
Original file line number Diff line number Diff line change 1+ <jaxb:bindings
2+ xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
3+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4+ xmlns:simplify="http://jaxb2-commons.dev.java.net/basic/simplify"
5+ jaxb:extensionBindingPrefixes="simplify"
6+ jaxb:version="2.1">
7+
8+ <jaxb:globalBindings choiceContentProperty="true"/>
9+
10+ <jaxb:bindings schemaLocation="schema.xsd" node="/xs:schema">
11+ <jaxb:schemaBindings>
12+ <jaxb:package name="org.jvnet.jaxb2_commons.plugin.simplify.tests01"/>
13+ </jaxb:schemaBindings>
14+ <jaxb:bindings node="xs:complexType[@name='ParentsType']/xs:sequence/xs:element/xs:complexType/xs:sequence/xs:choice/xs:element[@name='type2']">
15+ <simplify:as-element-property />
16+ </jaxb:bindings>
17+ </jaxb:bindings>
18+
19+ </jaxb:bindings>
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <xs : schema xmlns : xs =" http://www.w3.org/2001/XMLSchema" elementFormDefault =" qualified" attributeFormDefault =" unqualified"
3+ xmlns =" urn:test" targetNamespace =" urn:test" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd"
5+ xmlns : simplify =" http://jaxb2-commons.dev.java.net/basic/simplify" xmlns : jaxb =" http://java.sun.com/xml/ns/jaxb"
6+ jaxb : extensionBindingPrefixes =" simplify" >
7+ <xs : complexType name =" ParentsType" >
8+ <xs : sequence >
9+ <xs : element name =" parent" minOccurs =" 0" maxOccurs =" 50" >
10+ <xs : complexType >
11+ <xs : sequence >
12+ <xs : element name =" type1" type =" xs:string" minOccurs =" 1" maxOccurs =" 1" />
13+ <xs : choice minOccurs =" 1" maxOccurs =" 1" >
14+ <xs : element name =" type2" type =" xs:dateTime" minOccurs =" 1" maxOccurs =" 1" >
15+ </xs : element >
16+ <xs : element name =" type3" type =" xs:duration" minOccurs =" 1" maxOccurs =" 1" />
17+ </xs : choice >
18+ </xs : sequence >
19+ </xs : complexType >
20+ </xs : element >
21+ </xs : sequence >
22+ </xs : complexType >
23+ </xs : schema >
You can’t perform that action at this time.
0 commit comments