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

io.github.xmcda_modular.y2017.jaxb.NominalToCardinal Maven / Gradle / Ivy

Go to download

Java source for (un)marshalling xmcda-modular files, JAXB-generated from the schema.

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2017.09.30 at 07:31:34 PM CEST 
//


package io.github.xmcda_modular.y2017.jaxb;

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.XmlElements;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for nominalToCardinal complex type. * *

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

 * <complexType name="nominalToCardinal">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="nominalFrom" type="{http://xmcda-modular.github.io/2017/xsd}attribute"/>
 *         <element name="cardinalTo" type="{http://xmcda-modular.github.io/2017/xsd}attribute"/>
 *         <sequence maxOccurs="unbounded">
 *           <element name="category" type="{http://xmcda-modular.github.io/2017/xsd}category"/>
 *           <element name="value" type="{http://www.w3.org/2001/XMLSchema}double"/>
 *         </sequence>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "nominalToCardinal", propOrder = { "nominalFrom", "cardinalTo", "categoryAndValue" }) public class NominalToCardinal { @XmlElement(required = true) protected Attribute nominalFrom; @XmlElement(required = true) protected Attribute cardinalTo; @XmlElements({ @XmlElement(name = "category", required = true, type = Category.class), @XmlElement(name = "value", required = true, type = Double.class) }) protected List categoryAndValue; /** * Gets the value of the nominalFrom property. * * @return * possible object is * {@link Attribute } * */ public Attribute getNominalFrom() { return nominalFrom; } /** * Sets the value of the nominalFrom property. * * @param value * allowed object is * {@link Attribute } * */ public void setNominalFrom(Attribute value) { this.nominalFrom = value; } /** * Gets the value of the cardinalTo property. * * @return * possible object is * {@link Attribute } * */ public Attribute getCardinalTo() { return cardinalTo; } /** * Sets the value of the cardinalTo property. * * @param value * allowed object is * {@link Attribute } * */ public void setCardinalTo(Attribute value) { this.cardinalTo = value; } /** * Gets the value of the categoryAndValue 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 categoryAndValue property. * *

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

     *    getCategoryAndValue().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Category } * {@link Double } * * */ public List getCategoryAndValue() { if (categoryAndValue == null) { categoryAndValue = new ArrayList(); } return this.categoryAndValue; } }