Java class for anonymous complex type. + * + *
The following schema fragment specifies the expected content contained within this class. + * + *
+ * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nazwa_waluty" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="przelicznik" type="{http://www.w3.org/2001/XMLSchema}integer"/> + * <element name="kod_waluty" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="kurs_sredni" type="{http://www.w3.org/2001/XMLSchema}float"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "currencyName", + "przelicznik", + "currencySymbol", + "value" +}) +public class ExchangeRate { + + @XmlElement(name = "nazwa_waluty", required = true) + protected String currencyName; + @XmlElement(required = true) + protected BigInteger przelicznik; + @XmlElement(name = "kod_waluty", required = true) + protected String currencySymbol; + @XmlElement(name = "kurs_sredni", required = true, type = String.class) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "float") + protected BigDecimal value; + + /** + * Gets the value of the currencyName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCurrencyName() { + return currencyName; + } + + /** + * Sets the value of the currencyName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCurrencyName(String value) { + this.currencyName = value; + } + + /** + * Gets the value of the przelicznik property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getPrzelicznik() { + return przelicznik; + } + + /** + * Sets the value of the przelicznik property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setPrzelicznik(BigInteger value) { + this.przelicznik = value; + } + + /** + * Gets the value of the currencySymbol property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCurrencySymbol() { + return currencySymbol; + } + + /** + * Sets the value of the currencySymbol property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCurrencySymbol(String value) { + this.currencySymbol = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public BigDecimal getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(BigDecimal value) { + this.value = value; + } + +} diff --git b/src/main/java/pl/labno/bernard/nbp/exchangerate/rest/generated/ExchangeRateTable.java a/src/main/java/pl/labno/bernard/nbp/exchangerate/rest/generated/ExchangeRateTable.java new file mode 100644 index 0000000..bb3a3d3 --- /dev/null +++ a/src/main/java/pl/labno/bernard/nbp/exchangerate/rest/generated/ExchangeRateTable.java @@ -0,0 +1,149 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2010.12.16 at 02:23:57 PM GMT +// + + +package pl.labno.bernard.nbp.exchangerate.rest.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; + + +/** + *
Java class for tabela_kursow element declaration. + * + *
The following schema fragment specifies the expected content contained within this class. + * + *
+ * <element name="tabela_kursow"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="numer_tabeli" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="data_publikacji" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="pozycja" maxOccurs="unbounded" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="nazwa_waluty" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="przelicznik" type="{http://www.w3.org/2001/XMLSchema}integer"/> + * <element name="kod_waluty" type="{http://www.w3.org/2001/XMLSchema}string"/> + * <element name="kurs_sredni" type="{http://www.w3.org/2001/XMLSchema}float"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "number", + "publicationDate", + "items" +}) +@XmlRootElement(name = "tabela_kursow") +public class ExchangeRateTable { + + @XmlElement(name = "numer_tabeli", required = true) + protected String number; + @XmlElement(name = "data_publikacji", required = true) + protected String publicationDate; + @XmlElement(name = "pozycja") + protected List
+ * 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 set
method for the items property.
+ *
+ *
+ * For example, to add a new item, do as follows: + *
+ * getItems().add(newItem); + *+ * + * + *
+ * Objects of the following type(s) are allowed in the list
+ * {@link ExchangeRate }
+ *
+ *
+ */
+ public List 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: pl.labno.bernard.nbp.exchangerate.rest.generated
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link ExchangeRateTable }
+ *
+ */
+ public ExchangeRateTable createExchangeRateTable() {
+ return new ExchangeRateTable();
+ }
+
+ /**
+ * Create an instance of {@link ExchangeRate }
+ *
+ */
+ public ExchangeRate createExchangeRate() {
+ return new ExchangeRate();
+ }
+
+}
diff --git b/src/main/xjb/bindings.xjb a/src/main/xjb/bindings.xjb
new file mode 100644
index 0000000..a14f844
--- /dev/null
+++ a/src/main/xjb/bindings.xjb
@@ -0,0 +1,48 @@
+