Skip to content

Commit

Permalink
regenerated ChoicesWithMinMax
Browse files Browse the repository at this point in the history
  • Loading branch information
krasa committed Jul 19, 2014
1 parent 1fecb5e commit e654800
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 65 deletions.
82 changes: 35 additions & 47 deletions cxf-xjc-plugin/src/generated/a/ChoicesWithMinMax.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package a;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;


/**
Expand All @@ -16,7 +16,7 @@
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice>
* <choice maxOccurs="2">
* <element name="Tea" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Coffee" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </choice>
Expand All @@ -28,54 +28,42 @@
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ChoicesWithMinMax", propOrder = {
"tea",
"coffee"
"teaOrCoffee"
})
public class ChoicesWithMinMax {

@XmlElement(name = "Tea")
protected String tea;
@XmlElement(name = "Coffee")
protected String coffee;
@XmlElementRefs({
@XmlElementRef(name = "Tea", namespace = "a", type = JAXBElement.class),
@XmlElementRef(name = "Coffee", namespace = "a", type = JAXBElement.class)
})
protected List<JAXBElement<String>> teaOrCoffee;

/**
* Gets the value of the tea property.
*
* @return possible object is
* {@link String }
* Gets the value of the teaOrCoffee property.
* <p/>
* <p/>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the teaOrCoffee property.
* <p/>
* <p/>
* For example, to add a new item, do as follows:
* <pre>
* getTeaOrCoffee().add(newItem);
* </pre>
* <p/>
* <p/>
* <p/>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link String }{@code >}
* {@link JAXBElement }{@code <}{@link String }{@code >}
*/
public String getTea() {
return tea;
}

/**
* Sets the value of the tea property.
*
* @param value allowed object is
* {@link String }
*/
public void setTea(String value) {
this.tea = value;
}

/**
* Gets the value of the coffee property.
*
* @return possible object is
* {@link String }
*/
public String getCoffee() {
return coffee;
}

/**
* Sets the value of the coffee property.
*
* @param value allowed object is
* {@link String }
*/
public void setCoffee(String value) {
this.coffee = value;
public List<JAXBElement<String>> getTeaOrCoffee() {
if (teaOrCoffee == null) {
teaOrCoffee = new ArrayList<JAXBElement<String>>();
}
return this.teaOrCoffee;
}

}
54 changes: 36 additions & 18 deletions cxf-xjc-plugin/src/generated/a/ObjectFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
public class ObjectFactory {

private final static QName _Main_QNAME = new QName("a", "main");
private final static QName _ChoicesWithMinMaxTea_QNAME = new QName("a", "Tea");
private final static QName _ChoicesWithMinMaxCoffee_QNAME = new QName("a", "Coffee");

/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: a
Expand All @@ -31,10 +33,10 @@ public ObjectFactory() {
}

/**
* Create an instance of {@link ChoicesWithMinMax }
* Create an instance of {@link Numbers }
*/
public ChoicesWithMinMax createChoicesWithMinMax() {
return new ChoicesWithMinMax();
public Numbers createNumbers() {
return new Numbers();
}

/**
Expand All @@ -45,24 +47,24 @@ public Enumerations createEnumerations() {
}

/**
* Create an instance of {@link Main }
* Create an instance of {@link Choices }
*/
public Main createMain() {
return new Main();
public Choices createChoices() {
return new Choices();
}

/**
* Create an instance of {@link NumberWithCode }
* Create an instance of {@link Dates }
*/
public NumberWithCode createNumberWithCode() {
return new NumberWithCode();
public Dates createDates() {
return new Dates();
}

/**
* Create an instance of {@link Numbers }
* Create an instance of {@link ChoicesWithMinMax }
*/
public Numbers createNumbers() {
return new Numbers();
public ChoicesWithMinMax createChoicesWithMinMax() {
return new ChoicesWithMinMax();
}

/**
Expand All @@ -73,10 +75,10 @@ public Strings createStrings() {
}

/**
* Create an instance of {@link Dates }
* Create an instance of {@link Main }
*/
public Dates createDates() {
return new Dates();
public Main createMain() {
return new Main();
}

/**
Expand All @@ -87,10 +89,10 @@ public Enumeration createEnumeration() {
}

/**
* Create an instance of {@link Choices }
* Create an instance of {@link NumberWithCode }
*/
public Choices createChoices() {
return new Choices();
public NumberWithCode createNumberWithCode() {
return new NumberWithCode();
}

/**
Expand All @@ -101,4 +103,20 @@ public JAXBElement<Main> createMain(Main value) {
return new JAXBElement<Main>(_Main_QNAME, Main.class, null, value);
}

/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
*/
@XmlElementDecl(namespace = "a", name = "Tea", scope = ChoicesWithMinMax.class)
public JAXBElement<String> createChoicesWithMinMaxTea(String value) {
return new JAXBElement<String>(_ChoicesWithMinMaxTea_QNAME, String.class, ChoicesWithMinMax.class, value);
}

/**
* Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
*/
@XmlElementDecl(namespace = "a", name = "Coffee", scope = ChoicesWithMinMax.class)
public JAXBElement<String> createChoicesWithMinMaxCoffee(String value) {
return new JAXBElement<String>(_ChoicesWithMinMaxCoffee_QNAME, String.class, ChoicesWithMinMax.class, value);
}

}

0 comments on commit e654800

Please sign in to comment.