
org.dmg.pmml.time_series.TimeCycle Maven / Gradle / Ivy
package org.dmg.pmml.time_series;
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.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.dmg.pmml.Array;
import org.dmg.pmml.Visitor;
import org.dmg.pmml.VisitorAction;
import org.jpmml.schema.Added;
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>
* <group ref="{http://www.dmg.org/PMML-4_3}INT-ARRAY" minOccurs="0"/>
* </sequence>
* <attribute name="length" type="{http://www.dmg.org/PMML-4_3}INT-NUMBER" />
* <attribute name="type">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="includeAll"/>
* <enumeration value="includeFromTo"/>
* <enumeration value="excludeFromTo"/>
* <enumeration value="includeSet"/>
* <enumeration value="excludeSet"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="displayName" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"array"
})
@XmlRootElement(name = "TimeCycle", namespace = "http://www.dmg.org/PMML-4_3")
@Added(Version.PMML_4_0)
public class TimeCycle
extends org.dmg.pmml.PMMLObject
{
@XmlAttribute(name = "length")
private Integer length;
@XmlAttribute(name = "type")
private TimeCycle.Type type;
@XmlAttribute(name = "displayName")
@XmlSchemaType(name = "anySimpleType")
private String displayName;
@XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_3")
private Array array;
/**
* 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 length
* allowed object is
* {@link Integer }
*
*/
public TimeCycle setLength(Integer length) {
this.length = length;
return this;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link TimeCycle.Type }
*
*/
public TimeCycle.Type getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param type
* allowed object is
* {@link TimeCycle.Type }
*
*/
public TimeCycle setType(TimeCycle.Type type) {
this.type = type;
return this;
}
/**
* 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 displayName
* allowed object is
* {@link String }
*
*/
public TimeCycle setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* 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 array
* allowed object is
* {@link Array }
*
*/
public TimeCycle setArray(Array array) {
this.array = array;
return this;
}
@Override
public VisitorAction accept(Visitor visitor) {
VisitorAction status = visitor.visit(this);
if (status == VisitorAction.CONTINUE) {
visitor.pushParent(this);
if (status == VisitorAction.CONTINUE) {
status = org.dmg.pmml.PMMLObject.traverse(visitor, getArray());
}
visitor.popParent();
}
if (status == VisitorAction.TERMINATE) {
return VisitorAction.TERMINATE;
}
return VisitorAction.CONTINUE;
}
/**
* Java class for null.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="includeAll"/>
* <enumeration value="includeFromTo"/>
* <enumeration value="excludeFromTo"/>
* <enumeration value="includeSet"/>
* <enumeration value="excludeSet"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "")
@XmlEnum
@Added(Version.PMML_4_0)
public enum Type {
@XmlEnumValue("includeAll")
INCLUDE_ALL("includeAll"),
@XmlEnumValue("includeFromTo")
INCLUDE_FROM_TO("includeFromTo"),
@XmlEnumValue("excludeFromTo")
EXCLUDE_FROM_TO("excludeFromTo"),
@XmlEnumValue("includeSet")
INCLUDE_SET("includeSet"),
@XmlEnumValue("excludeSet")
EXCLUDE_SET("excludeSet");
private final String value;
Type(String v) {
value = v;
}
public String value() {
return value;
}
public static TimeCycle.Type fromValue(String v) {
for (TimeCycle.Type c: TimeCycle.Type.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy