weka.core.pmml.jaxbbindings.REALSparseArray Maven / Gradle / Ivy
Show all versions of weka-dev Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.12.20 at 12:48:21 PM GMT
//
package weka.core.pmml.jaxbbindings;
import java.math.BigInteger;
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.XmlElement;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for REAL-SparseArray element declaration.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <element name="REAL-SparseArray">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.dmg.org/PMML-4_1}Indices" minOccurs="0"/>
* <element ref="{http://www.dmg.org/PMML-4_1}REAL-Entries" minOccurs="0"/>
* </sequence>
* <attribute name="defaultValue" type="{http://www.dmg.org/PMML-4_1}REAL-NUMBER" default="0" />
* <attribute name="n" type="{http://www.dmg.org/PMML-4_1}INT-NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"indices",
"realEntries"
})
@XmlRootElement(name = "REAL-SparseArray")
public class REALSparseArray {
@XmlList
@XmlElement(name = "Indices", namespace = "http://www.dmg.org/PMML-4_1", type = Integer.class)
protected List indices;
@XmlList
@XmlElement(name = "REAL-Entries", namespace = "http://www.dmg.org/PMML-4_1", type = Double.class)
protected List realEntries;
@XmlAttribute
protected Double defaultValue;
@XmlAttribute
protected BigInteger n;
/**
* Gets the value of the indices 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 indices property.
*
*
* For example, to add a new item, do as follows:
*
* getIndices().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Integer }
*
*
*/
public List getIndices() {
if (indices == null) {
indices = new ArrayList();
}
return this.indices;
}
/**
* Gets the value of the realEntries 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 realEntries property.
*
*
* For example, to add a new item, do as follows:
*
* getREALEntries().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Double }
*
*
*/
public List getREALEntries() {
if (realEntries == null) {
realEntries = new ArrayList();
}
return this.realEntries;
}
/**
* Gets the value of the defaultValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
public double getDefaultValue() {
if (defaultValue == null) {
return 0.0D;
} else {
return defaultValue;
}
}
/**
* Sets the value of the defaultValue property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setDefaultValue(Double value) {
this.defaultValue = value;
}
/**
* Gets the value of the n property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getN() {
return n;
}
/**
* Sets the value of the n property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setN(BigInteger value) {
this.n = value;
}
}