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

org.dmg.pmml.ContStats Maven / Gradle / Ivy

There is a newer version: 1.6.5
Show newest version

package org.dmg.pmml;

import java.util.ArrayList;
import java.util.Collection;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import com.sun.xml.bind.Locatable;
import com.sun.xml.bind.annotation.XmlLocation;
import org.xml.sax.Locator;


/**
 * 

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 ref="{http://www.dmg.org/PMML-4_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{http://www.dmg.org/PMML-4_2}Interval" maxOccurs="unbounded" minOccurs="0"/>
 *         <group ref="{http://www.dmg.org/PMML-4_2}FrequenciesType" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="totalValuesSum" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
 *       <attribute name="totalSquaresSum" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "extensions", "intervals", "arrays" }) @XmlRootElement(name = "ContStats") public class ContStats extends PMMLObject implements Locatable, HasExtensions { @XmlElement(name = "Extension") protected List extensions; @XmlElement(name = "Interval") protected List intervals; @XmlElement(name = "Array") protected List arrays; @XmlAttribute(name = "totalValuesSum") protected Double totalValuesSum; @XmlAttribute(name = "totalSquaresSum") protected Double totalSquaresSum; @XmlLocation @XmlTransient protected Locator locator; /** * Gets the value of the extensions 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 extensions property. * *

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

     *    getExtensions().add(newItem);
     * 
* * *

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

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

     *    getIntervals().add(newItem);
     * 
* * *

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

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

     *    getArrays().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Array } * * */ public List getArrays() { if (arrays == null) { arrays = new ArrayList(); } return this.arrays; } /** * Gets the value of the totalValuesSum property. * * @return * possible object is * {@link Double } * */ public Double getTotalValuesSum() { return totalValuesSum; } /** * Sets the value of the totalValuesSum property. * * @param value * allowed object is * {@link Double } * */ public void setTotalValuesSum(Double value) { this.totalValuesSum = value; } /** * Gets the value of the totalSquaresSum property. * * @return * possible object is * {@link Double } * */ public Double getTotalSquaresSum() { return totalSquaresSum; } /** * Sets the value of the totalSquaresSum property. * * @param value * allowed object is * {@link Double } * */ public void setTotalSquaresSum(Double value) { this.totalSquaresSum = value; } public ContStats withExtensions(Extension... values) { if (values!= null) { for (Extension value: values) { getExtensions().add(value); } } return this; } public ContStats withExtensions(Collection values) { if (values!= null) { getExtensions().addAll(values); } return this; } public ContStats withIntervals(Interval... values) { if (values!= null) { for (Interval value: values) { getIntervals().add(value); } } return this; } public ContStats withIntervals(Collection values) { if (values!= null) { getIntervals().addAll(values); } return this; } public ContStats withArrays(Array... values) { if (values!= null) { for (Array value: values) { getArrays().add(value); } } return this; } public ContStats withArrays(Collection values) { if (values!= null) { getArrays().addAll(values); } return this; } public ContStats withTotalValuesSum(Double value) { setTotalValuesSum(value); return this; } public ContStats withTotalSquaresSum(Double value) { setTotalSquaresSum(value); return this; } public Locator sourceLocation() { return locator; } public void setSourceLocation(Locator newLocator) { locator = newLocator; } @Override public VisitorAction accept(Visitor visitor) { VisitorAction status = visitor.visit(this); for (int i = 0; (((status == VisitorAction.CONTINUE)&&(this.extensions!= null))&&(i





© 2015 - 2024 Weber Informatics LLC | Privacy Policy