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

org.dmg.pmml.BayesInput 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 javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.sun.xml.bind.Locatable;
import com.sun.xml.bind.annotation.XmlLocation;
import org.jpmml.schema.Added;
import org.jpmml.schema.Version;
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"/>
 *         <choice>
 *           <element ref="{http://www.dmg.org/PMML-4_2}TargetValueStats"/>
 *           <sequence>
 *             <element ref="{http://www.dmg.org/PMML-4_2}DerivedField" minOccurs="0"/>
 *             <element ref="{http://www.dmg.org/PMML-4_2}PairCounts" maxOccurs="unbounded"/>
 *           </sequence>
 *         </choice>
 *       </sequence>
 *       <attribute name="fieldName" use="required" type="{http://www.dmg.org/PMML-4_2}FIELD-NAME" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "extensions", "targetValueStats", "derivedField", "pairCounts" }) @XmlRootElement(name = "BayesInput") public class BayesInput extends PMMLObject implements Locatable, HasExtensions { @XmlElement(name = "Extension") protected List extensions; @XmlElement(name = "TargetValueStats") @Added(Version.PMML_4_2) protected TargetValueStats targetValueStats; @XmlElement(name = "DerivedField") protected DerivedField derivedField; @XmlElement(name = "PairCounts") protected List pairCounts; @XmlAttribute(name = "fieldName", required = true) @XmlJavaTypeAdapter(FieldNameAdapter.class) protected FieldName fieldName; @XmlLocation @XmlTransient protected Locator locator; public BayesInput() { super(); } public BayesInput(final FieldName fieldName) { super(); this.fieldName = fieldName; } /** * 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 targetValueStats property. * * @return * possible object is * {@link TargetValueStats } * */ public TargetValueStats getTargetValueStats() { return targetValueStats; } /** * Sets the value of the targetValueStats property. * * @param value * allowed object is * {@link TargetValueStats } * */ public void setTargetValueStats(TargetValueStats value) { this.targetValueStats = value; } /** * Gets the value of the derivedField property. * * @return * possible object is * {@link DerivedField } * */ public DerivedField getDerivedField() { return derivedField; } /** * Sets the value of the derivedField property. * * @param value * allowed object is * {@link DerivedField } * */ public void setDerivedField(DerivedField value) { this.derivedField = value; } /** * Gets the value of the pairCounts 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 pairCounts property. * *

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

     *    getPairCounts().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link PairCounts } * * */ public List getPairCounts() { if (pairCounts == null) { pairCounts = new ArrayList(); } return this.pairCounts; } /** * Gets the value of the fieldName property. * * @return * possible object is * {@link String } * */ public FieldName getFieldName() { return fieldName; } /** * Sets the value of the fieldName property. * * @param value * allowed object is * {@link String } * */ public void setFieldName(FieldName value) { this.fieldName = value; } public BayesInput withExtensions(Extension... values) { if (values!= null) { for (Extension value: values) { getExtensions().add(value); } } return this; } public BayesInput withExtensions(Collection values) { if (values!= null) { getExtensions().addAll(values); } return this; } public BayesInput withTargetValueStats(TargetValueStats value) { setTargetValueStats(value); return this; } public BayesInput withDerivedField(DerivedField value) { setDerivedField(value); return this; } public BayesInput withPairCounts(PairCounts... values) { if (values!= null) { for (PairCounts value: values) { getPairCounts().add(value); } } return this; } public BayesInput withPairCounts(Collection values) { if (values!= null) { getPairCounts().addAll(values); } return this; } public BayesInput withFieldName(FieldName value) { setFieldName(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