All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.iata.ndc.schema.CurrCode Maven / Gradle / Ivy

The newest version!

package org.iata.ndc.schema;

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.XmlAttribute;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <simpleContent>
 *     <extension base="<http://www.iata.org/IATA/EDIST>CurrencySimpleType">
 *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
 *       <attribute name="metadata" type="{http://www.iata.org/IATA/EDIST}InstanceClassRefSimpleType" />
 *       <attribute name="refs" type="{http://www.iata.org/IATA/EDIST}InstanceClassRefSimpleType" />
 *       <attribute name="application" type="{http://www.iata.org/IATA/EDIST}CurrencyAppSimpleType" />
 *     </extension>
 *   </simpleContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value" }) @XmlRootElement(name = "CurrCode") public class CurrCode { @XmlValue protected String value; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; @XmlAttribute(name = "metadata") @XmlIDREF protected List metadata; @XmlAttribute(name = "refs") @XmlIDREF protected List refs; @XmlAttribute(name = "application") protected String application; /** * A data type for Currency Code encoding constraint: ISO 4217 (three alpha character) Currency Code * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the metadata property. * *

* 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 metadata property. * *

* For example, to add a new item, do as follows: *

     *    getMetadata().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getMetadata() { if (metadata == null) { metadata = new ArrayList(); } return this.metadata; } /** * Gets the value of the refs property. * *

* 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 refs property. * *

* For example, to add a new item, do as follows: *

     *    getRefs().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getRefs() { if (refs == null) { refs = new ArrayList(); } return this.refs; } /** * Gets the value of the application property. * * @return * possible object is * {@link String } * */ public String getApplication() { return application; } /** * Sets the value of the application property. * * @param value * allowed object is * {@link String } * */ public void setApplication(String value) { this.application = value; } }