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

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

There is a newer version: 1.6.7
Show newest version

package org.dmg.pmml;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jpmml.schema.Removed;
import org.jpmml.schema.Version;


/**
 * 

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}DerivedField" maxOccurs="unbounded"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "derivedFields" }) @XmlRootElement(name = "CenterFields", namespace = "http://www.dmg.org/PMML-4_2") @Removed(Version.PMML_3_2) public class CenterFields extends org.dmg.pmml.PMMLObject { @XmlElement(name = "DerivedField", namespace = "http://www.dmg.org/PMML-4_2", required = true) private List derivedFields; public CenterFields() { super(); } public CenterFields(final List derivedFields) { super(); this.derivedFields = derivedFields; } /** * Gets the value of the derivedFields 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 derivedFields property. * *

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

     *    getDerivedFields().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DerivedField } * * */ public List getDerivedFields() { if (derivedFields == null) { derivedFields = new ArrayList(); } return this.derivedFields; } public boolean hasDerivedFields() { return ((this.derivedFields!= null)&&(this.derivedFields.size()> 0)); } public CenterFields addDerivedFields(DerivedField... derivedFields) { getDerivedFields().addAll(Arrays.asList(derivedFields)); return this; } @Override public VisitorAction accept(Visitor visitor) { VisitorAction status = visitor.visit(this); visitor.pushParent(this); if ((status == VisitorAction.CONTINUE)&&hasDerivedFields()) { status = org.dmg.pmml.PMMLObject.traverse(visitor, getDerivedFields()); } visitor.popParent(); if (status == VisitorAction.TERMINATE) { return VisitorAction.TERMINATE; } return VisitorAction.CONTINUE; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy