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

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

There is a newer version: 1.6.5
Show newest version

package org.dmg.pmml;

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.XmlSchemaType;
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.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>
 *         <group ref="{http://www.dmg.org/PMML-4_2}INT-ARRAY" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="length" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
 *       <attribute name="type" type="{http://www.dmg.org/PMML-4_2}VALID-TIME-SPEC" />
 *       <attribute name="displayName" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "array" }) @XmlRootElement(name = "TimeCycle") @Added(Version.PMML_4_0) public class TimeCycle extends PMMLObject implements Locatable { @XmlElement(name = "Array") protected Array array; @XmlAttribute(name = "length") protected Integer length; @XmlAttribute(name = "type") protected ValidTimeSpecType type; @XmlAttribute(name = "displayName") @XmlSchemaType(name = "anySimpleType") protected String displayName; @XmlLocation @XmlTransient protected Locator locator; /** * Gets the value of the array property. * * @return * possible object is * {@link Array } * */ public Array getArray() { return array; } /** * Sets the value of the array property. * * @param value * allowed object is * {@link Array } * */ public void setArray(Array value) { this.array = value; } /** * Gets the value of the length property. * * @return * possible object is * {@link Integer } * */ public Integer getLength() { return length; } /** * Sets the value of the length property. * * @param value * allowed object is * {@link Integer } * */ public void setLength(Integer value) { this.length = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link ValidTimeSpecType } * */ public ValidTimeSpecType getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link ValidTimeSpecType } * */ public void setType(ValidTimeSpecType value) { this.type = value; } /** * Gets the value of the displayName property. * * @return * possible object is * {@link String } * */ public String getDisplayName() { return displayName; } /** * Sets the value of the displayName property. * * @param value * allowed object is * {@link String } * */ public void setDisplayName(String value) { this.displayName = value; } public TimeCycle withArray(Array value) { setArray(value); return this; } public TimeCycle withLength(Integer value) { setLength(value); return this; } public TimeCycle withType(ValidTimeSpecType value) { setType(value); return this; } public TimeCycle withDisplayName(String value) { setDisplayName(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); if ((status == VisitorAction.CONTINUE)&&(this.array!= null)) { status = this.array.accept(visitor); } if (status == VisitorAction.TERMINATE) { return VisitorAction.TERMINATE; } return VisitorAction.CONTINUE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy