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

io.github.oliviercailloux.xmcda_2_2_1_jaxb.X2CriteriaSet Maven / Gradle / Ivy

Go to download

Java source for (un)marshalling XMCDA-2.2.1 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: 2016.11.10 at 09:49:41 PM CET 
//


package io.github.oliviercailloux.xmcda_2_2_1_jaxb;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlType;


/**
 * A "valued", possibly ordered, set of criteria. 
 * 
 * 

Java class for criteriaSet complex type. * *

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

 * <complexType name="criteriaSet">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="description" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}description" minOccurs="0"/>
 *         <element name="element" maxOccurs="unbounded" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="description" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}description" minOccurs="0"/>
 *                   <element name="criterionID" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   <choice maxOccurs="unbounded" minOccurs="0">
 *                     <element name="rank" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}value"/>
 *                     <element name="value" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}value"/>
 *                     <element name="values" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}values"/>
 *                   </choice>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <element name="value" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}value"/>
 *           <element name="values" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}values"/>
 *         </choice>
 *       </sequence>
 *       <attGroup ref="{http://www.decision-deck.org/2012/XMCDA-2.2.1}defaultAttributes"/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "criteriaSet", propOrder = { "description", "element", "valueOrValues" }) public class X2CriteriaSet { protected X2Description description; protected List element; @XmlElements({ @XmlElement(name = "value", type = X2Value.class), @XmlElement(name = "values", type = X2Values.class) }) protected List valueOrValues; @XmlAttribute(name = "id") protected String id; @XmlAttribute(name = "name") protected String name; @XmlAttribute(name = "mcdaConcept") protected String mcdaConcept; /** * Gets the value of the description property. * * @return * possible object is * {@link X2Description } * */ public X2Description getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link X2Description } * */ public void setDescription(X2Description value) { this.description = value; } /** * Gets the value of the element 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 element property. * *

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

     *    getElement().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link X2CriteriaSet.Element } * * */ public List getElement() { if (element == null) { element = new ArrayList(); } return this.element; } /** * Gets the value of the valueOrValues 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 valueOrValues property. * *

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

     *    getValueOrValues().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link X2Value } * {@link X2Values } * * */ public List getValueOrValues() { if (valueOrValues == null) { valueOrValues = new ArrayList(); } return this.valueOrValues; } /** * 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 name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the mcdaConcept property. * * @return * possible object is * {@link String } * */ public String getMcdaConcept() { return mcdaConcept; } /** * Sets the value of the mcdaConcept property. * * @param value * allowed object is * {@link String } * */ public void setMcdaConcept(String value) { this.mcdaConcept = value; } /** *

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="description" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}description" minOccurs="0"/>
     *         <element name="criterionID" type="{http://www.w3.org/2001/XMLSchema}string"/>
     *         <choice maxOccurs="unbounded" minOccurs="0">
     *           <element name="rank" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}value"/>
     *           <element name="value" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}value"/>
     *           <element name="values" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}values"/>
     *         </choice>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "description", "criterionID", "rankOrValueOrValues" }) public static class Element { protected X2Description description; @XmlElement(required = true) protected String criterionID; @XmlElementRefs({ @XmlElementRef(name = "value", type = JAXBElement.class, required = false), @XmlElementRef(name = "rank", type = JAXBElement.class, required = false), @XmlElementRef(name = "values", type = JAXBElement.class, required = false) }) protected List> rankOrValueOrValues; /** * Gets the value of the description property. * * @return * possible object is * {@link X2Description } * */ public X2Description getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link X2Description } * */ public void setDescription(X2Description value) { this.description = value; } /** * Gets the value of the criterionID property. * * @return * possible object is * {@link String } * */ public String getCriterionID() { return criterionID; } /** * Sets the value of the criterionID property. * * @param value * allowed object is * {@link String } * */ public void setCriterionID(String value) { this.criterionID = value; } /** * Gets the value of the rankOrValueOrValues 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 rankOrValueOrValues property. * *

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

         *    getRankOrValueOrValues().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link X2Value }{@code >} * {@link JAXBElement }{@code <}{@link X2Value }{@code >} * {@link JAXBElement }{@code <}{@link X2Values }{@code >} * * */ public List> getRankOrValueOrValues() { if (rankOrValueOrValues == null) { rankOrValueOrValues = new ArrayList>(); } return this.rankOrValueOrValues; } } }