![JAR search and dependency download from the Maven repository](/logo.png)
io.github.oliviercailloux.xmcda_2_2_1_jaxb.X2Alternative Maven / Gradle / Ivy
Show all versions of xmcda-2.2.1-jaxb Show documentation
//
// 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.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlType;
/**
* A detailed description of an alternative instance.
*
* Java class for alternative complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="alternative">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="description" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}description" minOccurs="0"/>
* <element name="type" type="{http://www.decision-deck.org/2012/XMCDA-2.2.1}alternativeType" minOccurs="0"/>
* <element name="active" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="reference" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* </choice>
* <attGroup ref="{http://www.decision-deck.org/2012/XMCDA-2.2.1}defaultAttributesIDRequired"/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "alternative", propOrder = {
"descriptionOrTypeOrActive"
})
public class X2Alternative {
@XmlElementRefs({
@XmlElementRef(name = "type", type = JAXBElement.class, required = false),
@XmlElementRef(name = "description", type = JAXBElement.class, required = false),
@XmlElementRef(name = "active", type = JAXBElement.class, required = false),
@XmlElementRef(name = "reference", type = JAXBElement.class, required = false)
})
protected List> descriptionOrTypeOrActive;
@XmlAttribute(name = "id", required = true)
protected String id;
@XmlAttribute(name = "name")
protected String name;
@XmlAttribute(name = "mcdaConcept")
protected String mcdaConcept;
/**
* Gets the value of the descriptionOrTypeOrActive 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 descriptionOrTypeOrActive property.
*
*
* For example, to add a new item, do as follows:
*
* getDescriptionOrTypeOrActive().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link X2Description }{@code >}
* {@link JAXBElement }{@code <}{@link Boolean }{@code >}
* {@link JAXBElement }{@code <}{@link Boolean }{@code >}
* {@link JAXBElement }{@code <}{@link X2AlternativeType }{@code >}
*
*
*/
public List> getDescriptionOrTypeOrActive() {
if (descriptionOrTypeOrActive == null) {
descriptionOrTypeOrActive = new ArrayList>();
}
return this.descriptionOrTypeOrActive;
}
/**
* 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;
}
}